Delete a company address
DELETE/companies/:lookupKey/:lookupValue/addresses/:addressId
Safely delete a specific company address with proper validation and dependency checks.
Key Features
- Dynamic Lookup Keys: Access companies by
id
orsourceId
- Direct Address Deletion: Remove specific addresses by address ID
- Safety Validation: Prevents deletion of default addresses if they're the only address
- Clean Removal: Proper cleanup of address dependencies
- Error Handling: Clear error messages for invalid operations
Request
Responses
- 200
- 404
Delete a company address - 200
Delete a company address - 404 (company)