App reviews, troubleshooting, and recommendations
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).
Solved! Go to the solution
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
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
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025