For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
We are building a try before you buy app and would like to run order risk analysis before fulfillment of the order. We received advice from Shopify that we can hold the fulfillment of the order by setting the SellingPlan's delivery_policy: { fulfillment_trigger: UNKNOWN }, run our risk analysis, and then release the holded (held?) fulfillment in the order if the risk is acceptable. What I am struggling to figure out is how to release the fulfillment? How can we tell if an order has a fulfillment that is held? What mutations do we need to call to release the fulfillment? Thank you for your help!
Solved! Go to the solution
This is an accepted solution.
Hi BlackCart,
To create/ release a fulfilment you'd typically use the fulfillmentCreateV2 mutation. To tell if an order has a fulfillment that is held, you should be able to query the order and check for the `displayFulfillmentStatus` field which has a possible value for `ON_HOLD`. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
This is an accepted solution.
Hi BlackCart,
To create/ release a fulfilment you'd typically use the fulfillmentCreateV2 mutation. To tell if an order has a fulfillment that is held, you should be able to query the order and check for the `displayFulfillmentStatus` field which has a possible value for `ON_HOLD`. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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