Retrieve All Locations

Lists the locations accessible to a given user, returning a lightweight summary of each.

tions

Request Headers

HeaderRequiredDescription
AuthorizationYesBearer YOUR_ACCESS_TOKEN

Request Parameters

Query Parameters:

ParameterTypeRequiredDescription
user_idintegerYesThe current user id

cURL Example

curl --request GET \
  --url "https://sandbox-api.softpoint.io/interface/v1/locations?user_id=1" \
  --header "Authorization: Bearer YOUR_ACCESS_TOKEN"

Success Response

The response is an array of location summaries.

[
  {
    "location_id": 59237,
    "name": "Sunset Bistro",
    "status": 1,
    "location_id_external": "Rj82LgKq",
    "timezone_code": "America/Phoenix",
    "timezone_name": "(GMT-07:00) America, Phoenix"
  },
  {
    "location_id": 48734,
    "name": "Coastal Diner",
    "status": 1
  }
]

Response Fields

FieldTypeDescription
location_idintegerPlatform location identifier.
namestringLocation display name.
statusintegerLocation status.
location_id_externalstringYour external identifier, if set.
timezone_codestringIANA timezone code.
timezone_namestringHuman-readable timezone.

Error Responses

Unauthorized / Token Expired

{
  "error": {
    "code": 10759,
    "message": "Operation timed out. Please try again.",
    "details": { "Exception": "Token has expired" }
  }
}

Status Codes

CodeDescription
200Locations returned
401Token missing, expired, or invalid

Workflow Placement

A read operation used to discover which locations a user can act on before drilling into a specific one.

Notes

  • The response is a bare array, not a paginator.

  • Refresh the token if you receive 10759.

Common Mistakes

  • Omitting the required user_id query parameter.

  • Reusing an expired token (returns 10759).

Query Params
integer
Headers
string
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain