GET
/api/public/v1/locations/{locationId}Get a location
Retrieve a single location by ID.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | Required | Location ID. |
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/locations/{locationId}" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Location retrieved successfully!",
"content": {
"location": {
"id": "loc_abc123",
"reference": "Acme Corp",
"type": "SERVICES"
}
}
}