Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{user_id}/addresses \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"addresses": [
{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "123456789",
"business_name": "<string>",
"is_phone_verified": true,
"is_email_verified": true,
"is_default_billing": true,
"is_default_shipping": true
}
],
"pagination": {
"total_records": 252,
"total_pages": 26,
"previous_page": null,
"next_page": 2,
"limit": 10
}
}
}
Retrieve billing and shipping address of particular customer
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{user_id}/addresses \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"addresses": [
{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "123456789",
"business_name": "<string>",
"is_phone_verified": true,
"is_email_verified": true,
"is_default_billing": true,
"is_default_shipping": true
}
],
"pagination": {
"total_records": 252,
"total_pages": 26,
"previous_page": null,
"next_page": 2,
"limit": 10
}
}
}
Access token
User id
page number of pagination list
x >= 1
no of rows per page
x >= 1
OK
The response is of type object
.