Skip to content

Update an Invoice status based on the invoiceId

put
https://api.mercadoe.com/v1/invoices/{invoiceId}/status

Change the specified fields of an invoice with the provided values by informing the invoiceId.

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.

Path Parameters

invoiceId
int32
required
The invoice Id in the ERP

Body

application/json
clientOrderId
string
Order ID in the client’s ERP
clientInvoiceId
string
required
Invoice number
status
string
required
allowed values: InApprovalReturnedCanceledAcceptedLauchedIntegrated
clientSupplierId
string
required
Supplier code in the client’s ERP
note
string
Invoice notes
invoiceSerialNumber
string
required
Invoice series
expectedPaymentDate
date-time | null
Estimated payment date
paymentStatus
string
Payment status
paymentDate
date-time | null
Date the payment was made

Responses

202
400
404
Accepted

Body

application/json
correlationId
string