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.
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:
-
The user registers a service in Cortecloud. This action generates a unique ID for the service (
service_id). -
Ensure the service has been received in Cortecloud and that you have the corresponding
service_id.You can use the
GET /services/:service_idroute to validate the ID you will use. -
Register the service in your ERP and save the unique order code generated.
-
Send a request to the specified route, passing the
service_idof the service you wish to update in the route and the ERP’s unique order code as the newinternal_codein the request body. -
The service will be updated in Cortecloud with the new internal code associated with the ERP order.
-