Skip to main content

How to update a service

📢 Introduction

Whenever a service is received from a user in Cortecloud, the shop can register it as an order in your ERP. After registration, the order code generated in the ERP must be associated with the service’s internal_code in Cortecloud.

Currently, only the internal_code field can be updated using our API.

Tip

Use the request examples in the documentation for each route to streamline your integration.

🛠️ Updating a service

  • Objective: Register the service in your ERP and update the service’s internal code in Cortecloud with the order code generated by the ERP.
  • Route: PUT /services/:service_id
  • Steps:
    1. The user registers a service in Cortecloud. This action generates a unique ID for the service (service_id).

    2. Ensure the service has been received in Cortecloud and that you have the corresponding service_id.

      You can use the GET /services/:service_id route to validate the ID you will use.

    3. Register the service in your ERP and save the unique order code generated.

    4. Send a request to the specified route, passing the service_id of the service you wish to update in the route and the ERP’s unique order code as the new internal_code in the request body.

    5. The service will be updated in Cortecloud with the new internal code associated with the ERP order.