EntityApproval Policy

Get

GET
Retrieve an invoice approval policy associated with an entity

Path parameters

entityIdstringRequired
policyIdstringRequired

Response

This endpoint returns an object
id
string
trigger
list of unions
rule
union
upstreamPolicyId
string
GET
1curl https://api.mercoa.com/entity/:entityId/approval-policy/:policyId \
2 -H "Authorization: Bearer <token>"
200
Retrieved
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}