I’m working on syncing products to our platform using the GraphQL API. I’ve noticed that professional accounts have access to vendor and wholesale cost fields for product variations.
However, I haven’t been able to find any documentation that explains how to retrieve these values (vendor and wholesale cost) through the API.
My questions are:
- Is it possible to get the wholesale cost and vendor information for product variations using the catalogItems API?
- If not is this data available through the REST API?
Any help or documentation references would be greatly appreciated
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Monitor Sold-out Item Variations or Modifiers
Square Developer
Catalog API
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
Currently, the Square Catalog API does not support retrieving vendor and wholesale cost information for product variations. These fields are not exposed in the API and there is no direct way to access this data programmatically. This applies to both the GraphQL API and the REST API.
This answer was reviewed by @josh-square.