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
$curl -X POST https://api.mercoa.com/invoice/%3AinvoiceId/add-approver \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "userId": "string"
>}'