Skip to content

Update a ledger based on the contract Id

put
https://api.mercadoe.com/v1/ledgers/{code}

Change the specified fields 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
description
string | null
Ledger account description
isActive
boolean | null
Identifies if the ledger account is active (True/False).
isBlocked
boolean | null
Identifies if the ledger account is blocked (True/False).
isDeactivated
boolean | null
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
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

202
400
404
Accepted

Body

application/json
correlationId
string