curl --request DELETE \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901' \
--header 'Authorization: Bearer <your_token>'
(No content)
{
"error": {
"type": "LOCATION_NOT_FOUND",
"title": "Location not found.",
"detail": {
"description": "The location does not exist or you don't have access."
},
"status": 404,
"instance": "/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
}
Locations
Delete location
Archive a location
DELETE
/
api
/
v1
/
locations
/
{location_id}
curl --request DELETE \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901' \
--header 'Authorization: Bearer <your_token>'
(No content)
{
"error": {
"type": "LOCATION_NOT_FOUND",
"title": "Location not found.",
"detail": {
"description": "The location does not exist or you don't have access."
},
"status": 404,
"instance": "/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
}
Delete (archive) a location. The location is soft-deleted and will no longer appear in list results.
Path parameters
string
required
The unique identifier (UUID) of the location to delete.
curl --request DELETE \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901' \
--header 'Authorization: Bearer <your_token>'
(No content)
{
"error": {
"type": "LOCATION_NOT_FOUND",
"title": "Location not found.",
"detail": {
"description": "The location does not exist or you don't have access."
},
"status": 404,
"instance": "/api/v1/locations/b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
}
Was this page helpful?