Inbound Inventory and Unit Costs

Bucephalus
Shopify Partner
3 0 0

Hi!

 

im trying to find where I can get historical inbound/received shipments for a merchant. For example, when a purchase order they placed arrives within their fulfillment center and is sellable. I wasn’t sure which API endpoint to look for. 

im also interested in finding the unit cost for a given variant. I’ve noticed a few costs fields in orders and products, but they seem empty.

 

can anyone help me with these two issues?

Replies 4 (4)

ShopifyDevSup
Shopify Staff
1363 228 476

Hey @Bucephalus, when it comes to purchase order endpoints, this is not functionality we currently offer through the Shopify API. That said, are the values you're looking for ones that are supplied through the Stocky app (attached to the merchant's POS Pro Subscription)? If so, we might be able to help you out with this. 

You would have to reach out to partner support to ask them to assist with helping out with access to the API that enables this itself and have a POS Pro demo store/Stocky installed if you wanted to go this route. There is a possibility that we can help out with this pending on use case, but because we do have to deal with sensitive information (account info, etc.), you'd have to get in touch with us directly.  

If you're working with a merchant, the merchant would have to get in touch with us to assist with Stocky-related API questions, but we can help facilitate this through our merchant support channels too. 

Going through Stocky to get access to the right endpoints is the only option available at the moment for pulling purchase order/inventory cost at the moment without having to build your own logic based on our other current API functionality. 

Hope this helps - let us know if we can clarify anything. 

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

Bucephalus
Shopify Partner
3 0 0

Thanks, but that doesn't answer the question. Stocky doesn't meet our needs.

 

In the Shopify admin panel, a merchant can add a product's cost. Which endpoint in the REST API is this field stored?

 

ShopifyDevSup
Shopify Staff
1363 228 476

Hey @Bucephalus, thanks for sharing additional context.

In this case the data you described would be in the Inventory Item object. This represents a physical good in a 1:1 relationship with a product variant, and the a cost value is stored in the InventoryItem.cost field

While there isn't always perfect parity between shop features and Admin APIs, if you need to attach other business contextual data beyond what the Admin/API currently offers, consider utilizing metafields on available resources.

Cheers!

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

Bucephalus
Shopify Partner
3 0 0

Hmm... Thanks I can see the cost field, but it looks like it's always returning null. 

 

I know it's populated in the admin panel. When I update the cost field under products in the admin panel, I can see cost update in another app. Not sure how they're able to access it...