Out now! Check out the Poll results: Do you have a Shopify store?
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.

Unable to get digital product in the fulfillment order line items via new FulfillmentOrders API

Unable to get digital product in the fulfillment order line items via new FulfillmentOrders API

f_malik
Shopify Partner
33 7 10

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. 

f_malik_0-1680090270920.png

 

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.

 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 522

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