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

Approve

POST
https://api.mercoa.com/invoice/:invoiceId/approve
POST
/invoice/:invoiceId/approve
1curl -X POST https://api.mercoa.com/invoice/in_3d61faa9-1754-4b7b-9fcb-88ff97f368ff/approve \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "userId": "user_e24fc81c-c5ee-47e8-af42-4fe29d895506",
6 "text": "This is a reason for my action"
7}'
Try it
Was this page helpful?
Previous

Reject

Next
Built with
Reject

Authentication

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

Path parameters

invoiceIdstringRequired
Invoice ID or Invoice ForeignID

Request

This endpoint expects an object.
userIdstringRequired
The ID or the Foreign ID of the user
textstringOptional
Comment associated with this approval action.

Errors

Invoice ID or Invoice ForeignID

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