Update the relationships between ledgers and service orders with cost centers.
put
https://api.mercadoe.com/v1/cost-centers/{clientCostCenterId}/relationships
Based on the cost center, remove existing relationships and add new ones according to the received payload.
Request
Headers
X-ME-CORRELATION-ID
string
Internal client code to be identified in the webhook. It can be, for example, a product code in your ERP, an order number, etc.
Path Parameters
clientCostCenterId
string
required
The cost center Id in the ERP
Body
application/json
relationships
array of object | null
Relationships with ledgers and service orders
Responses
202
400
404
Accepted
Body
application/json
correlationId
string