Mark only specific items ready for pickup with GraphQL fulfillmentOrderLineItemsPreparedForPickup

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?

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

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:

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.