List locations
GET/v1/locations
Returns every location in your brand, including ones that are not_live. Use it to fill a store picker and to map your own store ids to unPLUG location ids once, on your server.
Permissions: Secret key with program:read, or a member token.
Guide
Points and rewardsQuery parameters#
limitinteger1 to 100. Default 25.Min 1Max 100Default 25cursorstringnext_cursorfrom the previous page. See Pagination.
Response fields#
Returns 200 with list of Location
dataarray of LocationShow attributesLocation
idstring (uuid)Send this aslocation_idon previews, redemptions and orders.namestringFor exampleSouth Congress.addressAddressline1,line2(ornull),city,region,postal_code,country(ISO 3166-1 alpha-2).Show attributesAddress
line1stringline2stringNullablecitystringregionstringpostal_codestringcountrystringISO 3166-1 alpha-2.
time_zonestringIANA time zone. Reward times and visit days at this location use it.posstringThe location's point of sale.square.One ofsquarepos_location_idstringThe Square location id. Match it against your own ordering system's location ids.statusstringliveornot_live. Only offer ordering atlivelocations.One oflive,not_live
has_morebooleanTrue when another page exists.next_cursorstringNullablePass ascursorto get the next page.
Error descriptions#
400Bad request
invalid_param
limit is outside 1 to 100, or the cursor is not one we issued.
Any endpoint can also return the common errors.