unPLUGDevelopers

Program and catalog API

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.

Query parameters#

  • limitinteger
    1 to 100. Default 25.
    Min 1Max 100Default 25
  • cursorstring
    next_cursor from the previous page. See Pagination.

Response fields#

Returns 200 with list of Location

  • dataarray of Location
    Show attributesLocation
    • idstring (uuid)
      Send this as location_id on previews, redemptions and orders.
    • namestring
      For example South Congress.
    • addressAddress
      line1, line2 (or null), city, region, postal_code, country (ISO 3166-1 alpha-2).
      Show attributesAddress
      • line1string
      • line2stringNullable
      • citystring
      • regionstring
      • postal_codestring
      • countrystring
        ISO 3166-1 alpha-2.
    • time_zonestring
      IANA time zone. Reward times and visit days at this location use it.
    • posstring
      The location's point of sale. square.
      One of square
    • pos_location_idstring
      The Square location id. Match it against your own ordering system's location ids.
    • statusstring
      live or not_live. Only offer ordering at live locations.
      One of live, not_live
  • has_moreboolean
    True when another page exists.
  • next_cursorstringNullable
    Pass as cursor to 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.