v1

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

Get address by id

The API endpoint allows users to fetch an address based on the addressId provided in the URL path variable.

By accessing this endpoint and specifying a valid addressId in the URL, users will receive a response containing the details of the corresponding address.

User can only be able to fetch addresses if they are logged in and the address that they are fetching is added by them.

get/ecommerce/addresses/{addressId}

Response

Get address by id

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "_id": "649e792a64e7dba29b7266a7",
    "addressLine1": "63583 Heller Mill",
    "addressLine2": "Carole Path",
    "city": "North Jarvismouth",
    "country": "Cayman Islands",
    "createdAt": "2023-06-30T06:41:46.397Z",
    "owner": "649e792964e7dba29b72633e",
    "pincode": "448547",
    "state": "West Virginia",
    "updatedAt": "2023-06-30T06:41:46.397Z"
  },
  "message": "Address fetched successfully",
  "statusCode": 200,
  "success": true
}