InvoiceApproval

Add Approver

POST

Adds an approver to the invoice. Will select the first available approver slot that is not already filled and assign the approver to it. If no approver slots are available, an error will be returned. An explicit approver slot can be specified by setting the approverSlot field.

Path parameters

invoiceIdstringRequired

Request

This endpoint expects an object.
userId
stringRequired
approvalSlotId
stringOptional
The identifier for the approval slot this user is assigned to.
POST
1curl -X POST https://api.mercoa.com/invoice/:invoiceId/add-approver \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "userId": "string"
6}'