EntityApproval Policy

Get All

GET
Retrieve all invoice approval policies associated with an entity

Path parameters

entityIdstringRequired

Response

This endpoint returns a list of objects
id
string
trigger
list of unions
rule
union
upstreamPolicyId
string
GET
1curl https://api.mercoa.com/entity/:entityId/approval-policies \
2 -H "Authorization: Bearer <token>"
200
Retrieved
1[
2 {
3 "id": "string",
4 "trigger": [
5 {
6 "type": "amount",
7 "amount": 1,
8 "currency": "AED"
9 }
10 ],
11 "rule": {
12 "type": "approver",
13 "identifierList": {
14 "type": "rolesList",
15 "value": [
16 "string"
17 ]
18 },
19 "numApprovers": 0
20 },
21 "upstreamPolicyId": "string"
22 }
23]