Commerce
Get v1commerceproducts options
GET
/
v1
/
commerce
/
products
/
{productID}
/
options
cURL
curl --request GET \
--url https://api.wazapin.com/v1/commerce/products/{productID}/optionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/products/{productID}/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/products/{productID}/options"
response = requests.get(url)
print(response.text){
"items": [
{
"id": "<string>",
"name": "<string>",
"option_type": "<string>",
"price_delta_amount": 123,
"product_id": "<string>",
"required": true,
"choices": [
"<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/products/{productID}/optionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/products/{productID}/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/products/{productID}/options"
response = requests.get(url)
print(response.text){
"items": [
{
"id": "<string>",
"name": "<string>",
"option_type": "<string>",
"price_delta_amount": 123,
"product_id": "<string>",
"required": true,
"choices": [
"<string>"
]
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}