Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi there!
I hope this message finds you well. I am writing to inquire about an issue I am experiencing with the new FulfillmentOrders API. Specifically, I am having trouble retrieving the digital product line item in the fulfillment order line items. When an order is created, I want to fulfill Shipping Insurance(Digital product) from that order. For that I'm fetching fulfillment order associated with that Shopify order and checking its line items but digital product is not there in the fulfillment order. I have tried accessing the relevant endpoints and methods, but I am still unable to retrieve this information. I'm attaching the code below.
Please let me know if there is any additional information or details that I can provide to help you better understand the issue. Thank you in advance for your help and support.
Hey @f_malik - would you be able to share an X-Request-ID from a Shopify API response header? You'll have to set that up in JS yourself (an easy way to do this is to us a standard cURL request and append '-i' at the end of it. With that, our team could take a closer look on our end to see what specific error may have caused the issue.
My recommendation here without extra information, would be to double check to confirm that the product is being added to the order using the order resource - if it is, no worries, just share an X-Request-ID with us and we'd be happy to take a further look into this with you.
Hope this helps - just reply here if we can help out further.
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