EntityApproval Policy

Update

POST
Update an invoice approval policy associated with an entity

Path parameters

entityIdstringRequired
policyIdstringRequired

Request

This endpoint expects an object.
trigger
list of unionsOptional
rule
unionOptional
upstreamPolicyId
stringOptional

Response

This endpoint returns an object
id
string
trigger
list of unions
rule
union
upstreamPolicyId
string
POST
1curl -X POST https://api.mercoa.com/entity/:entityId/approval-policy/:policyId \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "id": "string",
3 "trigger": [
4 {
5 "type": "amount",
6 "amount": 1,
7 "currency": "AED"
8 }
9 ],
10 "rule": {
11 "type": "approver",
12 "identifierList": {
13 "type": "rolesList",
14 "value": [
15 "string"
16 ]
17 },
18 "numApprovers": 0
19 },
20 "upstreamPolicyId": "string"
21}