Skip to main content

Delete Customer Address

Deletes an existing customer address.

HTTP Request

DELETE/api/customers/:customer_pk/addresses/:id

Authorization

Authorization

  • Required: Yes
  • Permission: Staff or Admin
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Path Parameters

ParameterTypeRequiredDescription
customer_pkIntegerYesUnique ID of the customer
idIntegerYesUnique ID of the address to delete

Example Requests

1import requests
2
3response = requests.delete('http://www.example.com/api/customers/123/addresses/456', 
4  headers={'Authorization': 'Token <your_api_key>'}
5)
6print(response.status_code)  # Should be 204 for successful deletion

Status Codes

CodeDescription
204Customer address deleted successfully
401Unauthorized — authentication required
403Forbidden — insufficient permissions
404Customer or address not found
500Internal server error

Response Fields

FieldTypeDescription
NoneNoneNo content returned on successful deletion