Grab item barcode?

I’ve always been frustrated with the Create Labels functionality (having to pull up a PO and delete any item that I didn’t receive that day, then having to count how many so I can stop at increments of 30, inability to add other things like custom attributes, etc) so was going to see if I could code something on my own and while I could grab the SKU and use an external app to create the barcode, I thought I’d first find out if it’s available to pull from the API?

:wave: 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

Inventory API
Inventory API: How It Works
Inventory API Requirements

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.

Yes, you can retrieve the SKU of an item using the Catalog API. The SKU is a property of the CatalogItemVariation object. You can use the RetrieveCatalogObject or ListCatalog endpoint to get the CatalogItemVariation objects, which will include the SKU. However, the barcode itself is not directly available via the API. You would need to generate the barcode using the SKU with an external library or service.

This answer was reviewed by @Bryan-Square.