customerApprovalHistory
Requires a customer (portal or buyer app) session.
Partner-wide approval history (all statuses), newest first. 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 CustomerApprovalHistory {
customerApprovalHistory {
items {
id
poNumber
requestNumber
resultingOrderNumber
companyName
decidedByName
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerApprovalHistory {\n customerApprovalHistory {\n items {\n id\n poNumber\n requestNumber\n resultingOrderNumber\n companyName\n decidedByName\n }\n }\n}"
}
EOF
Response:
{
"data": {
"customerApprovalHistory": {
"items": [
{
"id": "id",
"poNumber": "string",
"requestNumber": "string",
"resultingOrderNumber": "string",
"companyName": "string",
"decidedByName": "string"
}
]
}
}
}
customerApprovalHistory(
pagination: CustomerPaginationInput
): CustomerOrderApprovalConnection!
Arguments
customerApprovalHistory.pagination ● CustomerPaginationInput input
Which page to return, and optional search text.
Type
CustomerOrderApprovalConnection object
A page of order approval requests.