Commerce
Post v1publicstorefronts bookingwaitlist
POST
/
v1
/
public
/
storefronts
/
{slug}
/
booking
/
waitlist
cURL
curl --request POST \
--url https://api.wazapin.com/v1/public/storefronts/{slug}/booking/waitlist \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"phone": "<string>",
"product_id": "<string>",
"date": "<string>",
"slot": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone: '<string>', product_id: '<string>', date: '<string>', slot: '<string>'})
};
fetch('https://api.wazapin.com/v1/public/storefronts/{slug}/booking/waitlist', 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}/booking/waitlist"
payload = {
"phone": "<string>",
"product_id": "<string>",
"date": "<string>",
"slot": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ContactID": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"Date": "<string>",
"ID": "<string>",
"Phone": "<string>",
"ProductID": "<string>",
"Slot": "<string>",
"Status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Authorizations
Path Parameters
⌘I
cURL
curl --request POST \
--url https://api.wazapin.com/v1/public/storefronts/{slug}/booking/waitlist \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"phone": "<string>",
"product_id": "<string>",
"date": "<string>",
"slot": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone: '<string>', product_id: '<string>', date: '<string>', slot: '<string>'})
};
fetch('https://api.wazapin.com/v1/public/storefronts/{slug}/booking/waitlist', 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}/booking/waitlist"
payload = {
"phone": "<string>",
"product_id": "<string>",
"date": "<string>",
"slot": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ContactID": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"Date": "<string>",
"ID": "<string>",
"Phone": "<string>",
"ProductID": "<string>",
"Slot": "<string>",
"Status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}