Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Cost per item

Cost per item

silviuciocianu
Tourist
5 0 3

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

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 523

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

STICKR
Visitor
1 0 0

it seems you have misunderstood the question, as they were asking about the cost and not the price which are two different things.