Update a Cost Center based on the cost center Id
put
https://api.mercadoe.com/v1/cost-centers/{clientCostCenterId}
Change the specified fields 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
description
string | null
Cost center description
isDeactivated
boolean | null
Flag for the deactivation of the cost center.
validSince
date-time | null
Beginning of the cost center’s validity.
DD/MM/YYYYYY format
DD/MM/YYYYYY format
validUntil
date-time | null
End of the cost center’s validity.
DD/MM/YYYYYY format
DD/MM/YYYYYY format
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