Skip to main content

Delete address

DELETE 

/company/address/:id

Delete an existing company address.

Validations:

  • Verify the address belongs to the authenticated user's company
  • Does NOT validate the can_be_deleted field (any own address can be deleted)
  • Allows deletion of 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

Address successfully deleted

Response Headers