Delete the Service Order relationships based on the Service order code
post
https://api.mercadoe.com/v1/service-orders/{order}/relationships/delete
The Service Order has three relationships: Ledger Accounts, Cost Centers, and Business Organizations.
You can delete one or more relationships of a Service Order with the provided values by informing the service order code (order
field).
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
order
string
required
Service order code
Body
application/json
clientCategoryId
string
required
Client category code
areAllBusinessOrganizationsIncluded
boolean | null
Flag to identify if all business organizations are included
areAllCostCentersIncluded
boolean | null
Flag to identify if all cost centers are included
areAllLedgersIncluded
boolean | null
Flag to identify if all ledgers are included
costCenters
array of object | null
Cost centers is a list consisting of the
costCenter
field which is associated with that service order.ledgers
array of object | null
Ledgers is a list consisting of the ledger account code which is associated with that service order.
businessOrganizations
array of object
Business Organizations is a list consisting of the
Code
(company code) and the EntityType
fields.Responses
204
400
404
No Content
Body
application/json
correlationId
string