🛒 Ecommerce
Create address
The API endpoint allows a logged-in user to create a new address in an e-commerce application.
By accessing this endpoint and providing the necessary information, the user can add a new address to their profile for shipping or billing purposes.
This functionality enables users to conveniently manage their address book within the e-commerce app, ensuring accurate and efficient order processing and delivery.
post/ecommerce/addresses
Request body
Example request
{
"addressLine1": "New lane central, D-203",
"addressLine2": "Opposite to central park (Optional)",
"city": "Mumbai",
"state": "Maharashtra",
"country": "India"
}Response
Create address
Example response
{
"data": {
"_id": "647af1257396af90865b0ec8",
"addressLine1": "New lane central, D-203",
"addressLine2": "Churchgate",
"city": "Mumbai",
"country": "India",
"createdAt": "2023-06-03T07:52:05.453Z",
"owner": "6476e34ebe1cfb9cc08bd446",
"pincode": "409209",
"state": "Maharashtra",
"updatedAt": "2023-06-03T07:52:05.453Z"
},
"message": "Address created successfully",
"statusCode": 200,
"success": true
}