Commerce
Get v1publicstorefronts collections 1
GET
/
v1
/
public
/
storefronts
/
{slug}
/
collections
/
{collectionSlug}
cURL
curl --request GET \
--url https://api.wazapin.com/v1/public/storefronts/{slug}/collections/{collectionSlug} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.wazapin.com/v1/public/storefronts/{slug}/collections/{collectionSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/public/storefronts/{slug}/collections/{collectionSlug}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"active": true,
"id": "<string>",
"slug": "<string>",
"sort_order": 123,
"title": "<string>",
"description": "<string>",
"image_url": "<string>",
"organization_id": "<string>",
"product_count": 123,
"products": [
{
"active": true,
"id": "<string>",
"organization_id": "<string>",
"price_amount": 123,
"title": "<string>",
"category": "<string>",
"category_id": "<string>",
"compare_at_price_amount": 123,
"currency": "<string>",
"description": "<string>",
"image_url": "<string>",
"option_dimensions": [
{
"title": "<string>",
"values": [
"<string>"
]
}
],
"options": [
{
"id": "<string>",
"name": "<string>",
"option_type": "<string>",
"price_delta_amount": 123,
"product_id": "<string>",
"required": true,
"choices": [
"<string>"
]
}
],
"product_images": [
"<string>"
],
"product_type": "<string>",
"remaining_quota": 123,
"retailer_id": "<string>",
"sales_closed_reason": "<string>",
"sales_ends_at": "<string>",
"sales_open": true,
"sku": "<string>",
"slug": "<string>",
"stock_policy": "<string>",
"stock_qty": 123,
"tags": [
"<string>"
],
"type_config": {
"booking_blackout_dates": [
"<string>"
],
"booking_buffer_minutes": 123,
"booking_capacity_per_slot": 123,
"booking_date_overrides": [
{
"date": "<string>",
"unavailable": true,
"windows": [
{
"close": "<string>",
"open": "<string>"
}
]
}
],
"booking_duration_minutes": 123,
"booking_lead_time_minutes": 123,
"booking_meeting_url": "<string>",
"booking_mode": "<string>",
"booking_schedule_enabled": true,
"booking_service_hours": [
{
"close": "<string>",
"open": "<string>",
"weekday": 123
}
],
"booking_session_starts": [
"<string>"
],
"booking_slot_interval_minutes": 123,
"booking_staff_ids": [
"<string>"
],
"booking_staff_required": true,
"booking_window_days": 123,
"digital_delivery_url": "<string>",
"max_sellable_qty": 123,
"prepaid_deliveries": 123,
"sales_end_at": "<string>",
"sales_start_at": "<string>",
"video_conference": "<string>",
"weight_grams": 123
},
"variants": [
{
"id": "<string>",
"price_delta_amount": 123,
"product_id": "<string>",
"stock_qty": 123,
"title": "<string>",
"digital_delivery_url": "<string>",
"image_url": "<string>",
"option_values": {},
"price_amount": 123,
"sku": "<string>"
}
],
"whatsapp_catalog_sync": {
"catalog_id": "<string>",
"channel_id": "<string>"
}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Authorizations
⌘I
cURL
curl --request GET \
--url https://api.wazapin.com/v1/public/storefronts/{slug}/collections/{collectionSlug} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.wazapin.com/v1/public/storefronts/{slug}/collections/{collectionSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/public/storefronts/{slug}/collections/{collectionSlug}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"active": true,
"id": "<string>",
"slug": "<string>",
"sort_order": 123,
"title": "<string>",
"description": "<string>",
"image_url": "<string>",
"organization_id": "<string>",
"product_count": 123,
"products": [
{
"active": true,
"id": "<string>",
"organization_id": "<string>",
"price_amount": 123,
"title": "<string>",
"category": "<string>",
"category_id": "<string>",
"compare_at_price_amount": 123,
"currency": "<string>",
"description": "<string>",
"image_url": "<string>",
"option_dimensions": [
{
"title": "<string>",
"values": [
"<string>"
]
}
],
"options": [
{
"id": "<string>",
"name": "<string>",
"option_type": "<string>",
"price_delta_amount": 123,
"product_id": "<string>",
"required": true,
"choices": [
"<string>"
]
}
],
"product_images": [
"<string>"
],
"product_type": "<string>",
"remaining_quota": 123,
"retailer_id": "<string>",
"sales_closed_reason": "<string>",
"sales_ends_at": "<string>",
"sales_open": true,
"sku": "<string>",
"slug": "<string>",
"stock_policy": "<string>",
"stock_qty": 123,
"tags": [
"<string>"
],
"type_config": {
"booking_blackout_dates": [
"<string>"
],
"booking_buffer_minutes": 123,
"booking_capacity_per_slot": 123,
"booking_date_overrides": [
{
"date": "<string>",
"unavailable": true,
"windows": [
{
"close": "<string>",
"open": "<string>"
}
]
}
],
"booking_duration_minutes": 123,
"booking_lead_time_minutes": 123,
"booking_meeting_url": "<string>",
"booking_mode": "<string>",
"booking_schedule_enabled": true,
"booking_service_hours": [
{
"close": "<string>",
"open": "<string>",
"weekday": 123
}
],
"booking_session_starts": [
"<string>"
],
"booking_slot_interval_minutes": 123,
"booking_staff_ids": [
"<string>"
],
"booking_staff_required": true,
"booking_window_days": 123,
"digital_delivery_url": "<string>",
"max_sellable_qty": 123,
"prepaid_deliveries": 123,
"sales_end_at": "<string>",
"sales_start_at": "<string>",
"video_conference": "<string>",
"weight_grams": 123
},
"variants": [
{
"id": "<string>",
"price_delta_amount": 123,
"product_id": "<string>",
"stock_qty": 123,
"title": "<string>",
"digital_delivery_url": "<string>",
"image_url": "<string>",
"option_values": {},
"price_amount": 123,
"sku": "<string>"
}
],
"whatsapp_catalog_sync": {
"catalog_id": "<string>",
"channel_id": "<string>"
}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}