Edit in GitHubLog an issue
B2B feature. Learn more

approvePurchaseOrders mutation

The approvePurchaseOrders mutation approves one or more purchase orders. The specified purchase orders must have a status of PENDING.

Syntax

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

Reference

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

Example usage

The following example approves a purchase order.

Request:

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

Response:

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