EntityApproval Policy

Get

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

Retrieve an invoice approval policy associated with an entity

Path parameters

entityId
string
policyId
string

Response

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