Sign inBook a demo
HomeGuidesAPI ReferenceGlossary
HomeGuidesAPI ReferenceGlossary
  • API Reference
Logo
Sign inBook a demo
API ReferenceInvoiceBulk

PUT
https://api.mercoa.com/invoices
PUT
/invoices
1curl -X PUT https://api.mercoa.com/invoices \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "invoices": [
6 {
7 "invoiceId": "inv_21661ac1-a2a8-4465-a6c0-64474ba8181d",
8 "amount": 100,
9 "currency": "USD",
10 "dueDate": "2024-01-31T00:00:00Z",
11 "invoiceDate": "2024-01-01T00:00:00Z",
12 "invoiceNumber": "INV-001",
13 "lineItems": [
14 {
15 "amount": 50,
16 "description": "Item 1",
17 "quantity": 1
18 },
19 {
20 "amount": 50,
21 "description": "Item 2",
22 "quantity": 1
23 }
24 ],
25 "status": "NEW"
26 }
27 ]
28}'
Try it
200FromObjects
1{
2 "data": [
3 {
4 "id": "ent_21661ac1-a2a8-4465-a6c0-64474ba8181d",
5 "foreignId": "YOUR-INVOICE-ID"
6 },
7 {
8 "foreignId": "YOUR-SECOND-INVOICE-ID",
9 "error": "Invoice update failed"
10 }
11 ]
12}
Update multiple invoices in bulk. This endpoint will process synchronously and return a list of invoices that were updated or failed to update.
Was this page helpful?
Previous

Approve Bulk Invoices (Sync)

Next
Built with
Update multiple invoices in bulk. This endpoint will process synchronously and return a list of invoices that were updated or failed to update.

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Query parameters

emitWebhooksbooleanOptionalDefaults to false
If true, webhooks will be emitted for each invoice that is updated. By default, webhooks are not emitted.

Request

This endpoint expects an object.
invoiceslist of objectsRequired

Response

This endpoint returns an object.
datalist of objects

Errors

Approve Bulk Invoices (Sync)

Update Bulk Invoices (Sync)

Bearer authentication of the form Bearer <token>, where token is your auth token.