Edit in GitHubLog an issue
Adobe Commerce featureExclusive feature only in Adobe Commerce (Learn more)

rejectPurchaseOrders mutation

The rejectPurchaseOrders mutation rejects one or more purchase orders. The specified purchase orders must have a status of PENDING.

Syntax

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

Reference

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

Example usage

The following example rejects a purchase order.

Request:

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

Response:

Copied to your clipboard
{
"data": {
"rejectPurchaseOrders": {
"purchase_orders": [
{
"number": "000000010",
"uid": "MTA=",
"status": "REJECTED"
}
],
"errors": []
}
}
}
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.