customerOrderPdf
Requires a customer (portal or buyer app) session.
Base64 PDF of one of THIS partner's sales orders..
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 CustomerOrderPdf($orderId: ID!) {
customerOrderPdf(orderId: $orderId)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerOrderPdf($orderId: ID!) {\n customerOrderPdf(orderId: $orderId)\n}",
"variables": {
"orderId": "id"
}
}
EOF
Variables:
{
"orderId": "id"
}
Response:
{
"data": {
"customerOrderPdf": "string"
}
}
customerOrderPdf(
orderId: ID!
): String!
Arguments
customerOrderPdf.orderId ● ID! non-null scalar
The ID of the order.
Type
String scalar
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.