Deleting a corporation will remove all associated data. Ensure you have backed up any necessary information before proceeding.
string
required
Unique identifier of the corporation to delete.
curl --request DELETE \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/corporations/corp_123abc' \
--header 'Authorization: Bearer <token>'
const response = await fetch('https://transaction-tax.api.in.commenda.io/api/v1/corporations/corp_123abc', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer <token>'
}
});
const data = await response.json();
import requests
response = requests.delete(
'https://transaction-tax.api.in.commenda.io/api/v1/corporations/corp_123abc',
headers={'Authorization': 'Bearer <token>'}
)
data = response.json()
{
"message": "Corporation deleted successfully.",
"data": {
"id": "corp_123abc",
"deleted": true
}
}
{
"error": {
"code": "CORPORATION_NOT_FOUND",
"message": "Corporation with the specified ID was not found"
}
}
{
"error": {
"code": "CORPORATION_HAS_DEPENDENCIES",
"message": "Cannot delete corporation with active transactions or registrations"
}
}