Skip to content

Create accounts payable

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

Create a new account payable by providing the payment condition, document type, due 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
price
double
Amount payable
documentNumber
string
required
Invoice number
clientSupplierCode
string
required
Supplier code
documentType
string
required
Document type
documentReference
string
required
Document number in the ERP
paymentCondition
string
Payment condition
clientObservation
string | null
Client notes
documentDate
date-time
Document date
deliveryPlace
string | null
Delivery place
clientOrderId
string
Client order number
dueDate
date-time
Due date
isConfirmed
boolean
Flag to indicate the payment confirmation (True/False).
receiptDate
date-time
Receipt date
expectedDate
date-time
Expected date
clientAccountingDocument
string
Accounting document number
paymentType
string
Payment type
deductions
double
Deductions
anticipationStatus
string | null
Anticipation status
status
string | null
Status
paymentAmount
double
Payment amount
anticipationDate
date-time | null
Anticipation date
anticipationTax
double | null
Anticipation tax
currency
string | null
Currency in alphabetic code.
For more information, please refer to: https://www.iso.org/iso-4217-currency-codes.html.
bank
string | null
Bank
anticipatedValue
double | null
Anticipated value
account
string | null
Bank account
agency
string | null
Bank branch
businessOrganizations
array of object | null
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