Don't see costs returned in the JSON from RetrieveCatalogObject or an option to include it. Price is there but I don't see a way to get item variation cost.
Hi @donz! I escalated this to our API Specialist team for you. It sounds like you're looking for the item cost? The item cost is only available with Square Retail. At this time it's not available with Square APIs.
RetrieveCatalogObject will return a CatalogObject. To drill down in this object and see the price, you would need to drill down into the following fields: item_variation_data > price_money > amount.
Let me know if you have any questions about this.
Thanks Helen,
Yes, we're Square for Retail customers.
We have lots of items with lots of variations, some with cost, some without.
What I'm looking for is a way to access the cost for an item variation via the API but it sounds like it's stored somewhere within Square but not available through the API, correct ?
- Don
That's correct @donz. I can understand how it would be useful to access this through the API and I've shared this request with the API team. If this becomes available in future we'll add it to the API documentation and we'll update this thread too!
Square Community