Commerce
Get v1publicstorefronts orders
GET
/
v1
/
public
/
storefronts
/
{slug}
/
orders
cURL
curl --request GET \
--url https://api.wazapin.com/v1/public/storefronts/{slug}/orders \
--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}/orders', 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}/orders"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"item_count": 123,
"order_no": "<string>",
"status": "<string>",
"total_amount": 123,
"customer_name": "<string>",
"payment_method": "<string>",
"preview_title": "<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/public/storefronts/{slug}/orders \
--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}/orders', 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}/orders"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"item_count": 123,
"order_no": "<string>",
"status": "<string>",
"total_amount": 123,
"customer_name": "<string>",
"payment_method": "<string>",
"preview_title": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}