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
- 200
- 401
- 403
- 404
Address successfully deleted
Response Headers
Unauthorized (invalid or missing JWT token)
Response Headers
NOT_ALLOWED - The address does not belong to this company
Response Headers
Address not found