Delete Address
Permanently deletes a single company or customer address.
HTTP Request
- URL:
/address/{id} - Method:
DELETE - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_WRITE_COMPANY
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | The ID of the address to delete. |
cURL Example
curl --location --request DELETE '<BASE_URL>/address/66b9b3b166169eecd60e5baa' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The address was deleted successfully.
- 400 Bad Request: The access token is missing or invalid, or the address ID is not valid.
- 404 Not Found: No address matches the ID.
Sample JSON Response
{
"success": true,
"message": "Address deleted successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the request succeeded. |
message | String | Result message. |
Notes
- This action cannot be undone.