v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
🛒 Ecommerce

Delete address

The API endpoint allows a logged-in user to delete their own address based on the provided addressId in the URL.

When accessing this endpoint, the user can specify the addressId of the address they wish to delete.

This functionality ensures that users can manage their address book by removing unwanted or outdated addresses from their profile within the ecommerce application.

delete/ecommerce/addresses/{addressId}

Response

Delete address

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "deletedAddress": {
      "_id": "647af0eb7396af90865b0eb9",
      "addressLine1": "MG Road, D-123",
      "addressLine2": "Mumbai central",
      "city": "Mumbai",
      "country": "India",
      "createdAt": "2023-06-03T07:51:07.951Z",
      "owner": "6476e34ebe1cfb9cc08bd446",
      "pincode": "400509",
      "state": "Maharashtra",
      "updatedAt": "2023-06-03T07:51:07.951Z"
    }
  },
  "message": "Address deleted successfully",
  "statusCode": 200,
  "success": true
}