Ecommerce Shopify WordPress Discussion

Shopify API issue to retieve cost of a list of product

I have a problem with the Shopify API, I would like to retrieve all the sales from a vendor, and then add up what all the products cost me for all the sales. The problem being that the "cost" of a product can only be recovered via the inventory API and therefore the time to recover all these costs is too long to then display that in my frontend. Is there another solution to my problem?
Just run a report in your store asking for the cost of goods sold. It is built in to Shopify. You can certainly do this per vendor. If not, I released an App nearly 10 years ago that does cost of goods sold per vendor reports. You're right that you are required to access the Inventory Item to get cost price, but that is not much work in an API call once you have the variant, as it is linked directly and using GraphQL you can have cost price and selling price and all discounts in the right currency using one API call.

January 27, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.