EntityApproval Policy

Get All

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

Retrieve all invoice approval policies associated with an entity

Path parameters

entityId
string

Response

This endpoint return a list of objects.
id
string
trigger
list of unions
rule
union
upstreamPolicyId
string
GET
/entity/:entityId/approval-policies
curl https://api.mercoa.com/entity/:entityId/approval-policies \
-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"
}
]