Skip to content

Create a Cost Center

post
https://api.mercadoe.com/v1/cost-centers

Create a new cost center by providing the cost center code, cost center description, and other details.

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.

Body

application/json
clientCostCenterId
string
required
Cost center code in the ERP
description
string
required
Cost center description
isDeactivated
boolean
Flag for the deactivation of the cost center.
status
boolean
Cost center status is blocked?
validSince
date-time | null
Beginning of the cost center’s validity.
DD/MM/YYYYYY format
validUntil
date-time | null
End of the cost center’s validity.
DD/MM/YYYYYY format
purchasingOrganization
string
Purchasing organization code in the ERP.
company
string
Company code in the ERP
center
string
Center code in the ERP
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
businessOrganizations
array of object | null
Business Organizations is a list consisting of the Company Code and the Entity type.
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 ClientOrderId and Category.

Responses

202
400
Accepted

Body

application/json
correlationId
string