Delete an existing address for the authenticated user
cURL
curl --request DELETE \ --url https://api.example.com/api/address \ --header 'Content-Type: application/json' \ --data ' { "addressId": 123 } '
{ "statusCode": 200, "message": "Address deleted successfully" }
Authorization: Bearer <your_token>
curl -X DELETE https://api.example.com/api/address \ -H "Authorization: Bearer <your_token>" \ -H "Content-Type: application/json" \ -d '{ "addressId": 1 }'