- v2
- v1
What is the Locations API?
The Locations API (v2) allows you to retrieve information about your organization’s locations (also known as cost centers or office sites). These locations can later be associated with users, transactions, cards, and policies.This API is typically used to:- Fetch a list of all available locations in your company
- Get detailed data for a specific location by UUID
- Integrate location metadata into internal tools or reporting systems
Available Endpoints
| Operation | Endpoint | Method |
|---|---|---|
| Retrieve all locations | /v2/locations | GET |
| Get location by UUID | /v2/locations/{uuid} | GET |
Retrieve all locations
Get a complete list of all locations associated with your company.Endpoint
GET /v2/locationscURL Request
cURL
Sample JSON Response
JSON
Retrieve Location by UUID
Fetch detailed information about a specific location using its UUID.Endpoint
GET /v2/locations/{uuid}cURL Request
cURL
Sample JSON Response
JSON
💡 Tip: Location UUIDs can be used when creating users, cards, or setting approval policies to associate activity with a specific office or department.⚠️ Note: Locations marked as INACTIVE are still returned, but should not be assigned to new resources.
Endpoint Reference
GET /api/v2/locations
Find all locationsParameters:| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | Zero-based page index (0..N) | |
size | query | integer | The size of the page to be returned |
GET /api/v2/locations/{uuid}
Find location by UUIDParameters:| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | ✅ | Location UUID |
