Edit in GitHubLog an issue
B2B feature. 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": []
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.