Skip to content

Create accounts receivable

post
https://api.mercadoe.com/v1/bills/accounts-receivable

Create a new accounts receivable by providing the payment condition, document type, due date, receipt date, 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
paymentType
string
Payment type
deductions
float
Deductions
currency
string
Currency in alphabetic code.
For more information, please refer to: https://www.iso.org/iso-4217-currency-codes.html.
clientSupplierCode
string
required
Supplier code
documentNumber
string
required
Invoice number
documentReference
string
required
Document number in the ERP
dueDate
date-time
Due date
compensationDate
date-time
required
Payment date (Clearing date)
documentDate
date-time
required
Document issue date
receiptDate
date-time
Receipt date
paymentCondition
string
Payment condition description
documentType
string
required
Document type
value
float
required
Total amount of the account payable
totalNetAmount
float
Total net amount
totalGrossAmount
float
Total gross amount (Invoice total value)
paymentAmount
float | null
Payment amount
orderId
int32 | null
Order Id
status
string
Status
totalTaxAmount
double | null
Total tax amount
clientObservation
string
Client notes
clientOrderId
string
Client order number
businessOrganizations
array of object
List with the business organizations, consisting of the following fields: code, description, virtualEntityField (delivery center code), virtualEntityDescription (delivery center description), and entityType.

Responses

202
400
Accepted

Body

application/json
correlationId
string