Delete address
DELETE/api/address/:id
Deletes an existing address associated with the company.
Functionality:
- Permanently deletes the specified address
- Removes the address reference from the company's address list
- Validates that the address belongs to the authenticated company
Restrictions:
- Only addresses belonging to the authenticated company can be deleted
- The address ID must be valid and exist
- An address currently being used in active operations cannot be deleted
Usage Example:
curl -X DELETE 'https://api.demo.cargoffer.com/api/address/507f1f77bcf86cd799439011' \
-H 'X-API-KEY: your_api_key'
Request
Responses
- 200
- 400
- 401
Address successfully deleted.
Request error
Unauthorized