Edit in GitHubLog an issue
B2B feature. Learn more

placePurchaseOrder mutation

The placePurchaseOrder mutation places a purchase order using the specified cart_id. If the request is successful, the status of the purchase order is ORDER_PLACED.

Syntax

Copied to your clipboard
mutation {
placePurchaseOrder(
input: PlacePurchaseOrderInput!
) {
PlacePurchaseOrderOutput
}
}

Reference

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

Example usage

The following example places a purchase order.

Request:

Copied to your clipboard
mutation {
placePurchaseOrder(
input: {
cart_id: "hJUrIcPm77uCyYkSTBRGyjSvS40mw1Qd"
}
) {
purchase_order {
number
}
}
}

Response:

Copied to your clipboard
{
"data": {
"placePurchaseOrder": {
"purchase_order": {
"number": "000000002"
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.