Skip to main content

customerPendingApprovals

Requires a customer (portal or buyer app) session.

Approval requests awaiting THIS user's decision (approvers only). screen 14.

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:

query CustomerPendingApprovals {
customerPendingApprovals {
id
poNumber
requestNumber
resultingOrderNumber
companyName
decidedByName
lines {
uomCode
productName
uomName
variantName
baseUnitPrice
discountAmount
}
}
}

Response:

{
"data": {
"customerPendingApprovals": [
{
"id": "id",
"poNumber": "string",
"requestNumber": "string",
"resultingOrderNumber": "string",
"companyName": "string",
"decidedByName": "string",
"lines": [
{
"uomCode": "string",
"productName": "string",
"uomName": "string",
"variantName": "string",
"baseUnitPrice": 0,
"discountAmount": 0
}
]
}
]
}
}
customerPendingApprovals: [CustomerOrderApprovalView!]!

Type​

CustomerOrderApprovalView object​

screen 14: an over-limit portal checkout parked for approval. No order exists until an approver says yes; approval replays the snapshot through the canonical checkout path with a fresh reprice.