Commerce
Get v1commercecontacts commerce summary
GET
/
v1
/
commerce
/
contacts
/
{contactID}
/
commerce-summary
cURL
curl --request GET \
--url https://api.wazapin.com/v1/commerce/contacts/{contactID}/commerce-summaryconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/contacts/{contactID}/commerce-summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/contacts/{contactID}/commerce-summary"
response = requests.get(url)
print(response.text){
"bookings": [
{
"contact_object_id": "<string>",
"data": {},
"object_date": "<string>",
"order_id": "<string>",
"status": "<string>"
}
],
"contact_id": "<string>",
"links": {
"storefront_url": "<string>",
"studio_url": "<string>"
},
"orders": [
{
"currency": "<string>",
"has_booking": true,
"id": "<string>",
"order_no": "<string>",
"status": "<string>",
"total_amount": 123,
"created_at": "<string>",
"delivery_date": "<string>",
"payment_url": "<string>"
}
],
"open_cart": {
"cart_id": "<string>",
"item_count": 123,
"updated_at": "<string>"
},
"store_slug": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
cURL
curl --request GET \
--url https://api.wazapin.com/v1/commerce/contacts/{contactID}/commerce-summaryconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/contacts/{contactID}/commerce-summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/contacts/{contactID}/commerce-summary"
response = requests.get(url)
print(response.text){
"bookings": [
{
"contact_object_id": "<string>",
"data": {},
"object_date": "<string>",
"order_id": "<string>",
"status": "<string>"
}
],
"contact_id": "<string>",
"links": {
"storefront_url": "<string>",
"studio_url": "<string>"
},
"orders": [
{
"currency": "<string>",
"has_booking": true,
"id": "<string>",
"order_no": "<string>",
"status": "<string>",
"total_amount": 123,
"created_at": "<string>",
"delivery_date": "<string>",
"payment_url": "<string>"
}
],
"open_cart": {
"cart_id": "<string>",
"item_count": 123,
"updated_at": "<string>"
},
"store_slug": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}