Delete Address
This API allows you to delete a customer's address from the system. You have to pass the address_id in the request payload.
Endpoint:
api/customer/profile/addresses/remove/{id}
Method:
POST
Url Parameters:
id
: The unique identifier for the address.
ملاحظة
When an address is deleted, it is marked as soft-deleted in the system, and will no longer appear in the list of addresses for the customer. However, the address and its associated data will not be completely removed from the system, to preserve data integrity.
- Success Response:
Address Resource
You can check more details about Address Resource.
{
"code": 200,
"data": {
//..
"addresses": [
{
"id": 49130,
"name": "Home",
"address": "test changed",
"apartment": "10",
"building": "10",
"landmark": "test",
"primary": false,
"lat": "30.105444",
"lng": "31.369139",
"floor": "10",
"formatted_address_ar": "مبني 10, دور 10, شارع test changed, شقة 10مبني 10, دور 10, شارع test changed, شقة 10, test, مدينة 15 مايو, القاهرة",
"formatted_address_en": "building 10, floor 10, address test changed, apartment 10, test, 15th of May City, Cairo",
"area": {
"id": 334,
"name": "15th of May City",
//...
},
"city": {
"id": 10,
"name": "Cairo",
//...
},
"district": null,
//...
}
],
//...
}
}
معلومات
Check the following section to learn more about the Delete Address API Reference