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:
- GraphQL
- cURL
query CustomerPendingApprovals {
customerPendingApprovals {
id
poNumber
requestNumber
resultingOrderNumber
companyName
decidedByName
lines {
uomCode
productName
uomName
variantName
baseUnitPrice
discountAmount
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerPendingApprovals {\n customerPendingApprovals {\n id\n poNumber\n requestNumber\n resultingOrderNumber\n companyName\n decidedByName\n lines {\n uomCode\n productName\n uomName\n variantName\n baseUnitPrice\n discountAmount\n }\n }\n}"
}
EOF
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.