Listing your locations with Python – Square Corner Blog – Medium

Getting your location details should be the easiest part of your integration.

Listing your locations programmatically can be important for managing applications for large companies or even multiple companies. Here is how you can get a list of your locations using our Python SDK.


The first thing you’ll need to do is make sure that you have python working and install Square’s Python SDK. You can find the installation instructions here:–usage

The Code

You’ll have to replace the XXXXXXXXX with your access token from your Square Developer Portal. but then you should be able to save the above code to a file and then run the file with:


Then, your locations should print on on this screen:

Hope you find this post on listing locations useful! Remember that you can now also get your location ID’s from the Developer Portal.

Source link