EntityApproval Policy

Update

POST
https://api.mercoa.com/entity/:entityId/approval-policy/:policyId

Update an invoice approval policy associated with an entity

Path parameters

entityId
string
policyId
string

Request

This endpoint expects an object.
trigger
optional list of unions
rule
optional union
upstreamPolicyId
optional string

Response

This endpoint return an object.
id
string
trigger
list of unions
rule
union
upstreamPolicyId
string
POST
/entity/:entityId/approval-policy/:policyId
curl -X POST https://api.mercoa.com/entity/:entityId/approval-policy/:policyId \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}'
Response
{
"id": "string",
"trigger": [
{
"type": "amount",
"amount": 1,
"currency": "AED"
}
],
"rule": {
"type": "approver",
"identifierList": {
"type": "rolesList",
"value": [
"string"
]
},
"numApprovers": 0
},
"upstreamPolicyId": "string"
}