curl --request GET \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations?corporation_id=550e8400-e29b-41d4-a716-446655440000&limit=20' \
--header 'Authorization: Bearer <your_token>'
{
"message": "Successfully fetched locations.",
"data": {
"locations": [
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"corporation_id": "550e8400-e29b-41d4-a716-446655440000",
"address": {
"address_line_1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"postal_code": "94105",
"country": "US"
},
"location_types": ["HEADQUARTERS", "REGISTERED_OFFICE"],
"is_primary": true,
"is_active": true,
"start_date": "2024-01-01",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
],
"cursor": "eyJpZCI6ImIyYzNkNGU1..."
}
}
{
"message": "Successfully fetched locations.",
"data": {
"locations": [],
"cursor": null
}
}
Locations
List locations
List locations for a corporation
GET
/
api
/
v1
/
locations
curl --request GET \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations?corporation_id=550e8400-e29b-41d4-a716-446655440000&limit=20' \
--header 'Authorization: Bearer <your_token>'
{
"message": "Successfully fetched locations.",
"data": {
"locations": [
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"corporation_id": "550e8400-e29b-41d4-a716-446655440000",
"address": {
"address_line_1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"postal_code": "94105",
"country": "US"
},
"location_types": ["HEADQUARTERS", "REGISTERED_OFFICE"],
"is_primary": true,
"is_active": true,
"start_date": "2024-01-01",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
],
"cursor": "eyJpZCI6ImIyYzNkNGU1..."
}
}
{
"message": "Successfully fetched locations.",
"data": {
"locations": [],
"cursor": null
}
}
Retrieve all locations associated with a corporation. Supports cursor-based pagination and optional filtering by jurisdiction.
Query parameters
string
required
The unique identifier (UUID) for the corporation.
integer
Number of results per page. Default:
10, maximum: 100.string
Pagination cursor from a previous response.
string
Comma-separated list of jurisdiction IDs to filter by.Example:
JUR_US_STATE_CA,JUR_US_STATE_TXcurl --request GET \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations?corporation_id=550e8400-e29b-41d4-a716-446655440000&limit=20' \
--header 'Authorization: Bearer <your_token>'
{
"message": "Successfully fetched locations.",
"data": {
"locations": [
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"corporation_id": "550e8400-e29b-41d4-a716-446655440000",
"address": {
"address_line_1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"postal_code": "94105",
"country": "US"
},
"location_types": ["HEADQUARTERS", "REGISTERED_OFFICE"],
"is_primary": true,
"is_active": true,
"start_date": "2024-01-01",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
],
"cursor": "eyJpZCI6ImIyYzNkNGU1..."
}
}
{
"message": "Successfully fetched locations.",
"data": {
"locations": [],
"cursor": null
}
}
Was this page helpful?
⌘I