Delete the Cost Center relationships based on the cost center Id
post
https://api.mercadoe.com/v1/cost-centers/{clientCostCenterId}/relationships/delete
The Cost Center has three relationships: Ledger Accounts, Service Orders, and Business Organizations.
You can delete one or more relationships of a Cost Center with the provided values by informing the clientCostCenterId
.
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
areAllBusinessOrganizationsIncluded
boolean | null
Flag to identify if all business organizations are included
areAllLedgersIncluded
boolean | null
Flag to identify if all ledgers are included
areAllServiceOrdersIncluded
boolean | null
Flag to identify if all service orders are included
ledgerAccounts
array of object | null
List of ledger accounts (
LedgerCode
field) associated with the cost center.serviceOrders
array of object | null
List of service orders associated with the cost center.
This list is composed of the fields
This list is composed of the fields
ClientOrderId
and Category
.businessOrganizations
array of object | null
Business Organizations is a list consisting of the Company Code and the Entity type.
Responses
202
400
404
Accepted
Body
application/json
correlationId
string