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.

Mark only specific items ready for pickup with GraphQL fulfillmentOrderLineItemsPreparedForPickup

Solved

Mark only specific items ready for pickup with GraphQL fulfillmentOrderLineItemsPreparedForPickup

jeremiahscanlon
Shopify Partner
5 0 1

Do I understand the documentation correctly that we can only mark all items ready for pickup? There does not appear to be an option to specify a certain line or change the quantity.

 

fulfillmentOrderLineItemsPreparedForPickup

 

Am I missing something?

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 527

This is an accepted solution.

Hey @jeremiahscanlon - this is a good question - the new fulfillment API can be a little tricky in terms of understanding functionality since it's fairly multilayered. At the moment, if the inventory quantity for a fulfillment has to be adjusted, this would require for the initial fulfillment to be cancelled and then re-requested with the correct inventory amount by the merchant or their inventory management app. If you're building a fulfillment service app, there's a good run down of how the process works from that perspective here in the dev docs. 

Hope this helps!

 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 527

This is an accepted solution.

Hey @jeremiahscanlon - this is a good question - the new fulfillment API can be a little tricky in terms of understanding functionality since it's fairly multilayered. At the moment, if the inventory quantity for a fulfillment has to be adjusted, this would require for the initial fulfillment to be cancelled and then re-requested with the correct inventory amount by the merchant or their inventory management app. If you're building a fulfillment service app, there's a good run down of how the process works from that perspective here in the dev docs. 

Hope this helps!

 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

jeremiahscanlon
Shopify Partner
5 0 1

Thank you for your response; it makes sense. I'm working on behalf of the merchant, and in this scenario, they wouldn't know the proper quantity to request. But we do. Do I understand correctly that we can use the graphQL API to edit the quantities on the existing order via https://shopify.dev/docs/apps/fulfillment/order-management-apps/order-editing?

 

Would this be an accurate process:

- Receive initial FulfillmentOrder.

- Recognize that we can't fulfill said FulfillmentOrder at the requested quantities.

- Cancel FulfillmentOrder via fulfillmentCancel.

- Edit quantity of existing order via orderEditBeginorderEditSetQuantityorderEditCommit.

- Receive new FulfillmentOrder (which will have the adjusted quantities).

ShopifyDevSup
Shopify Staff
1453 238 527

Hey again @jeremiahscanlon - as long as your app has the required scopes for both orders and fulfillment Admin API resources on the shop, this is definitely a feasible process. Following the edit guide you linked will create new fulfillment orders with up to date details including quantities.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog