x

Is there a way to access item variation cost through the Catalog API ?

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.

788 Views
Message 1 of 4
Report
3 REPLIES 3
Admin

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.

️ Helen
Seller Community Manager

Did you find help in the Seller Community? Mark a Best Answer to help others.
771 Views
Message 2 of 4
Report

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

765 Views
Message 3 of 4
Report
Admin

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! 

️ Helen
Seller Community Manager

Did you find help in the Seller Community? Mark a Best Answer to help others.
750 Views
Message 4 of 4
Report