Delete address
DELETE/company/address/:id
Remove an existing address from the company.
Validations:
- Verify that the address belongs to the authenticated user's company
- Does NOT validate the can_be_deleted field (any own address can be deleted)
- Allows deleting the company's last address
Example of successful response:
{
_id: 507f1f77bcf86cd799439011
}
Notes:
- Irreversible operation
- Requires a valid JWT token
- Only own company addresses can be deleted
Request
Responses
- 200
- 401
- 403
- 404
Endereço excluído com sucesso
Response Headers
Não autorizado (token JWT inválido ou ausente)
Response Headers
NÃO_PERMITIDO - O endereço não pertence a esta empresa
Response Headers
Endereço não encontrado