Locations

Prev Next
Get
/public/v1/core/locations

Retrieves a list of locations

Security

The requesting user must have the following permission to retrieve locations:

  • Administration → Locations → View Locations

Location access: location access is separate from permissions — the endpoint returns data only for locations assigned to the requesting API user. A user with the correct permission but no assigned locations receives no records.

Security
HTTP
Type Bearer
Header parameters
x-r365-context-tenant-id
stringRequired

Identifies the R365 tenant the request applies to. Required on every request.

Query parameters
modifiedOnStart
string (date-time)

Starting datetime of the 'modifiedOn' range (inclusive). May be supplied alone, in which case the range is open-ended at the upper bound.

modifiedOnEnd
string (date-time)

Ending datetime of the 'modifiedOn' range (inclusive). May be supplied alone, in which case the range is open-ended at the lower bound.

locationNumbers
string

Filter by location number. Accepts a comma-separated list, e.g. 314,3030.

pageSize
integer (int32)

Maximum number of top-level objects to return in one page.

Minimum1.0
Maximum250.0
Default250
continuationToken
string

Continuation token for pagination. Use the nextLink value from a previous response to fetch the next page.

Responses
200

list of location entities

Expand All
object

Paginated response containing locations.

items
Array of object | null

Locations for the current page.

object

A location.

id
string (uuid)

Unique identifier of the location.

name
string | null

Display name of the location.

number
string | null

Location number.

timeZone
string | null

Windows time-zone identifier for the location, e.g. "Pacific Standard Time".

addresses
Array of object | null

Addresses for the location.

object

A location address.

addressLine1
string | null
addressLine2
string | null
addressLine3
string | null
city
string | null
stateOrProvince
string | null

State or province code.

postalCode
string | null
nextLink
string | null

URL of the next page, or null on the last page.

400

Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range.

401

Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant.

403

Forbidden — the caller lacks the permission required for this operation.

404

Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired.

409

Conflict — the request conflicts with the current state of the resource and cannot be applied.

422

Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid.

429

Too Many Requests — the caller has exceeded the rate limit; retry after a short delay.

500

Internal Server Error — an unexpected error occurred while processing the request.