๐ What is the Locations API?
The Locations API v1 allows you to retrieve the list of physical or organizational locations configured in your Clara account. Locations often represent cost centers, departments, office branches, or teams, and are used to organize users and expenses.
This API can be used to:
- Display location options when assigning users or filtering data
- Map transactions or cards to specific business units
- Support reporting or internal structure alignment
๐ Note: This is a read-only version. To manage or create locations, use Locations API v2.
๐ Available Endpoints
Operation | Endpoint | Method |
---|---|---|
List all locations | /v1/locations | GET |
Get location by UUID | /v1/locations/{uuid} | GET |
1๏ธโฃ Find all locations
Use this endpoint to retrieve the full list of locations configured in your organization. Each location includes metadata such as name, code, and status.
๐ Endpoint
GET /v1/locations
๐ค cURL Request
curl -X GET \
"https://public-api.mx.clara.com/api/v1/locations" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
๐ฅ Sample JSON Response
[
{
"uuid": "loc-001",
"name": "Headquarters - CDMX",
"code": "CDMX-HQ",
"status": "ACTIVE"
},
{
"uuid": "loc-002",
"name": "Warehouse - Monterrey",
"code": "MTY-WHS",
"status": "INACTIVE"
}
]
2๏ธโฃ Find Location by UUID
Use this endpoint to get detailed information about a specific location using its unique identifier (uuid).
๐ Endpoint
GET /v1/locations/{uuid}
๐ค cURL Request
curl -X GET \
"https://public-api.mx.clara.com/api/v1/locations/loc-001" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
๐ฅ Sample JSON Response
{
"uuid": "loc-001",
"name": "Headquarters - CDMX",
"code": "CDMX-HQ",
"status": "ACTIVE"
}
๐ก Tip: Use the code field to link internal systems (e.g., ERP or HR) with Clara locations for consistency in reporting.
โ ๏ธ Note: This version of the API does not support creating or updating locations โ only retrieval is available.