Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Get PO Number for B2B Order from the API

Solved

Get PO Number for B2B Order from the API

maxezcsv
Shopify Partner
3 1 2

Shopify has added the option to add a PO Number to Orders and Draft orders:
https://changelog.shopify.com/posts/enter-po-numbers-on-b2b-orders

We don't see any details on how to get this field for an Order from the REST or GraphQL API when getting a specific order or list of orders. Is there a way to get the PO Number for an order via API call?

 

Screen Shot 2023-04-24 at 2.17.06 PM.png

Accepted Solution (1)

maxezcsv
Shopify Partner
3 1 2

This is an accepted solution.

Just going to post my own reply. It's currently in the Unstable version of the REST API on the Order object: https://shopify.dev/docs/api/admin-rest/unstable/resources/order#resource-object

View solution in original post

Replies 2 (2)

maxezcsv
Shopify Partner
3 1 2

This is an accepted solution.

Just going to post my own reply. It's currently in the Unstable version of the REST API on the Order object: https://shopify.dev/docs/api/admin-rest/unstable/resources/order#resource-object

jaacse
Shopify Partner
3 0 2

What about in graphql?