Pular para o conteúdo principal

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

Endereço excluído com sucesso

Response Headers