Skip to main content
GET
/
locations
/
{id}
Get Location
curl --request GET \
  --url https://api.loopreturns.com/api/v1/locations/{id} \
  --header 'X-Authorization: <api-key>'
{
  "id": 123,
  "external_id": "<string>",
  "channel": "<string>",
  "name": "<string>",
  "status": "active",
  "address": {
    "address1": "<string>",
    "city": "<string>",
    "country_code": "<string>",
    "name": "<string>",
    "company": "<string>",
    "address2": "<string>",
    "region": "<string>",
    "postal_code": "<string>"
  }
}

Authorizations

X-Authorization
string
header
required

API Scope: "Locations (read)"

Path Parameters

id
integer
required

The location's unique identifier.

Response

Success

id
integer<int64>

The unique integer identifier for the location, created by Loop.

Example:

9007199254740991

external_id
string | null

The identifier used by an external source to identify the location.

Example:

"62291d16-9b61-4fbb-b868-21c2d32dc155"

channel
string | null

The name of the channel.

Example:

"shopify"

name
string | null

The name of the location.

Maximum string length: 100
Example:

"Main Warehouse"

status
enum<string> | null

The status of the location.

Available options:
active,
inactive
address
object

The address of the location.