Skip to main content
DELETE
/
api
/
address
Delete Address
curl --request DELETE \
  --url https://api.example.com/api/address \
  --header 'Content-Type: application/json' \
  --data '
{
  "addressId": 123
}
'
{
  "statusCode": 200,
  "message": "Address deleted successfully"
}

Authentication

This endpoint requires JWT authentication. Include your bearer token in the Authorization header.
Authorization: Bearer <your_token>

Request Body

addressId
number
required
The ID of the address to delete. Must belong to the authenticated user.

Response

statusCode
number
HTTP status code of the response
message
string
Response message

Example Request

curl -X DELETE https://api.example.com/api/address \
  -H "Authorization: Bearer <your_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "addressId": 1
  }'

Example Response

{
  "statusCode": 200,
  "message": "Address deleted successfully"
}

Notes

  • Only the address owner can delete their own addresses
  • The operation is permanent and cannot be undone
  • If the address doesn’t exist or doesn’t belong to the user, the operation still returns success

Build docs developers (and LLMs) love