Solved

Cannot get cost per item through the admin api

JesperHoff
Shopify Partner
2 0 3

Hi, I'm trying to build an app for my own overview's sake, that can display the actual income of previously processed orders, but I seem to be unable to obtain the cost per item from the admin api. Even the example data does not contain the cost per item - but it's the admin api and not storefront, so I see no reason to omit it:

https://shopify.dev/docs/api/admin-rest/2023-07/resources/product-variant

 

How do I obtain the cost per item through the admin API? (or any other way, useable in a Shopify admin app).

Accepted Solution (1)

webmech
Shopify Partner
1 1 0

This is an accepted solution.

Reply 1 (1)

webmech
Shopify Partner
1 1 0

This is an accepted solution.

Looks like it is on the InventoryItem as cost. 

https://shopify.dev/docs/api/admin-rest/2023-01/resources/inventoryitem