Skip to content

Create a ledger

post
https://api.mercadoe.com/v1/ledgers

Create a new ledger account to register your transaction by providing the code, description, and other details, if applicable.

Request

Body

application/json
code
string
required
Ledger account code
description
string
required
Ledger account description
isActive
boolean
required
Identifies if the ledger account is active (True/False).
isBlocked
boolean
required
Identifies if the ledger account is blocked (True/False).
isDeactivated
boolean
required
Identifies if the ledger account is deactivated (True/False).
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
businessOrganizations
array of object | null
Business Organizations is a list consisting of the company code and the entity type fields.
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.

Responses

202
400
Accepted

Body

application/json
correlationId
string