Edit in GitHubLog an issue
B2B feature. Learn more

cancelPurchaseOrders mutation

The cancelPurchaseOrders mutation cancels the specified purchase orders. If the request is successful, the status of each purchase order is CANCELED.

Syntax

Copied to your clipboard
mutation {
cancelPurchaseOrders(
input: PurchaseOrdersActionInput!
) {
PurchaseOrdersActionOutput
}
}

Reference

The cancelPurchaseOrders reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example cancels purchase orders.

Request:

Copied to your clipboard
mutation {
cancelPurchaseOrders(
input: {
purchase_order_uids: ["NQ=="]
}
) {
purchase_orders {
number
status
}
errors {
message
type
}
}
}

Response:

Copied to your clipboard
{
"data": {
"cancelPurchaseOrders": {
"purchase_orders": [
{
"number": "000000005",
"status": "CANCELED"
}
],
"errors": []
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.