Retrieve the e-commerce profile of the logged-in user using this API endpoint. Upon accessing it, you will receive a response containing basic details such as the user's name, email address, phone number, and other relevant information associated with their e-commerce profile.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"data": {
"__v": 0,
"_id": "649e795264e7dba29b72693b",
"countryCode": "+91",
"createdAt": "2023-06-30T06:42:26.237Z",
"firstName": "John",
"lastName": "Doe",
"owner": "649e795264e7dba29b726936",
"phoneNumber": "9893894838",
"updatedAt": "2023-06-30T06:47:27.835Z"
},
"message": "User profile fetched successfully",
"statusCode": 200,
"success": true
}
Access all available products in an e-commerce application through this API endpoint. When invoked, it fetches and returns the complete list of products offered by the platform. The response includes details like product name, description, price, stock availability, and other relevant information. This API facilitates browsing and purchasing decisions within the e-commerce platform.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"statusCode": 200,
"data": {
"products": [],
"totalProducts": 0,
"limit": 10,
"page": 1,
"totalPages": 1,
"serialNumberStartFrom": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
},
"message": "Products fetched successfully",
"success": true
}
Retrieve detailed information about a specific product using its unique productId with this API endpoint. By providing the productId as a path variable in the URL, the API fetches and returns attributes such as product name, price, description, stock availability, images, and other relevant details associated with the product.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"statusCode": 200,
"data": {
"products": [],
"totalProducts": 0,
"limit": 10,
"page": 1,
"totalPages": 1,
"serialNumberStartFrom": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
},
"message": "Products fetched successfully",
"success": true
}