Skip to main content

How to Retrieve Services

πŸ“’ Introduction​

Services in Cortecloud correspond to orders in your ERP. Once a quote is created in Cortecloud, it becomes available for your ERP to fetch.

tip

Use the request examples in each endpoint's documentation to simplify integration.

πŸ“‹ Services List​

  • Objective: Retrieve a list of services
  • Route: GET /services
  • Steps:
    1. Send a request to the specified route, applying any necessary filters. It is highly recommended to include limit and offset parameters to control page size and pagination.
    2. You will receive a list of available services.
    3. To fetch the next page, set offset to the value of meta.next from the previous response.

      For example, if the previous response has { "meta": { "next": 10 } }, use offset=10 in your next request.

    4. When meta.next returns null, no more items are available.
    5. Integrate the returned data into your ERP system.

πŸ” Service Details​

  • Objective: Get details of a specific service
  • Route: GET /services/:service_id
  • Steps:
    1. Send a request to the specified route, including the service_id path parameter.
    2. Review the response and use the data as needed.

      The response format is documented in the endpoint reference.

    3. If the service is not found, a 404 error is returned.