Skip to content

Delete the Ledger relationships based on the contract Id

post
https://api.mercadoe.com/v1/ledgers/{code}/relationships/delete

The Ledger Account has three relationships: Service Orders, Cost Centers, and Business Organizations.
You can delete one or more relationships of a Ledger Account with the provided values by informing the contract id (code field).

Request

Path Parameters

code
string
required
the contract id

Body

application/json
areAllBusinessOrganizationsIncluded
boolean | null
Flag to identify if all business organizations are included
areAllCostCentersIncluded
boolean | null
Flag to identify if all cost centers are included
areAllServiceOrdersIncluded
boolean | null
Flag to identify if all service orders are included
costCenters
array of object | null
Cost centers is a list consisting of the costCenter field which is associated with that ledger account.
serviceOrders
array of object | null
Service orders is a list consisting of the service order fields (clientOrderId and orderCategory) which is associated with that ledger account.
businessOrganizations
array of object | null
Business Organizations is a list consisting of the company code and the entity type fields.

Responses

204
400
404
No Content

Body

application/json
correlationId
string