A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
Could anyone help me understand which object should I use to display the Cost per item (acquisition cost) in the 3rd party fulfillment notification?
Thank you very much
Hey @silviuciocianu - thanks for getting in touch. I just want to clarify - are you referring to the fulfillment notifications that are sent out via Shopify so that a fulfillment service can either accept or reject the request (documentation on this here). If so, at the moment, it's not possible to get the line item pricing until the fulfillment request is accepted. However, once that's done you can pull the per-item cost from the line_items array that's in the JSON payload of the API call once the fulfillment request is accepted:
If you were wanting to create your own notification that's triggered in addition to the notifications supported by the Shopify API, you can pull this info directly from the product variants in an order via the line items connection on the Order object if needed. Hope this Helps - let us know if we can clarify anything on our end.
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
it seems you have misunderstood the question, as they were asking about the cost and not the price which are two different things.