controlApprovalDelegations
Requires at least one of the permissions approvals:bills:approve, approvals:credit:approve, approvals:credit_notes:approve, approvals:delegation:manage, approvals:discounts:approve, approvals:large_orders:approve, approvals:order_changes:approve, approvals:payments:verify, approvals:stock_adjustments:approve, approvals:supplier_payments:approve or purchase:purchase_order:approve.
Approval covers, newest start first (up to 200): MINE lists the ones you gave or were given, ALL every cover (needs approvals:delegation:manage).
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query ControlApprovalDelegations($scope: ControlApprovalDelegationScope!) {
controlApprovalDelegations(scope: $scope) {
id
createdAt
endsAt
enteredBy
fromUserId
isActive
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query ControlApprovalDelegations($scope: ControlApprovalDelegationScope!) {\n controlApprovalDelegations(scope: $scope) {\n id\n createdAt\n endsAt\n enteredBy\n fromUserId\n isActive\n }\n}",
"variables": {
"scope": "ALL"
}
}
EOF
Variables:
{
"scope": "ALL"
}
Response:
{
"data": {
"controlApprovalDelegations": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"endsAt": "2025-01-15T00:00:00Z",
"enteredBy": "string",
"fromUserId": "string",
"isActive": true
}
]
}
}
controlApprovalDelegations(
scope: ControlApprovalDelegationScope! = MINE
): [ControlApprovalDelegation!]!
Arguments
controlApprovalDelegations.scope ● ControlApprovalDelegationScope! non-null enum
MINE (default) or ALL.
Type
ControlApprovalDelegation object
A cover: for a date range, one person may decide approval requests needing the listed permissions on behalf of another, never beyond what that person still holds.