curl --request POST \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901' \
--header 'Authorization: Bearer <your_token>' \
--header 'Content-Type: application/json' \
--data '{
"location_types": ["HEADQUARTERS", "REGISTERED_OFFICE", "WAREHOUSE"],
"notes": "Added warehouse function"
}'
{
"message": "Successfully updated location.",
"data": {
"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", "WAREHOUSE"],
"is_primary": true,
"is_active": true,
"start_date": "2024-01-01",
"notes": "Added warehouse function",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-03-01T09:00:00Z"
}
}
Update a location’s details
curl --request POST \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901' \
--header 'Authorization: Bearer <your_token>' \
--header 'Content-Type: application/json' \
--data '{
"location_types": ["HEADQUARTERS", "REGISTERED_OFFICE", "WAREHOUSE"],
"notes": "Added warehouse function"
}'
{
"message": "Successfully updated location.",
"data": {
"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", "WAREHOUSE"],
"is_primary": true,
"is_active": true,
"start_date": "2024-01-01",
"notes": "Added warehouse function",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-03-01T09:00:00Z"
}
}
country is required within the address object.Show Address fields
curl --request POST \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901' \
--header 'Authorization: Bearer <your_token>' \
--header 'Content-Type: application/json' \
--data '{
"location_types": ["HEADQUARTERS", "REGISTERED_OFFICE", "WAREHOUSE"],
"notes": "Added warehouse function"
}'
{
"message": "Successfully updated location.",
"data": {
"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", "WAREHOUSE"],
"is_primary": true,
"is_active": true,
"start_date": "2024-01-01",
"notes": "Added warehouse function",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-03-01T09:00:00Z"
}
}
Was this page helpful?