Get all Product Variation Options
Get all Product Variation Options
GET
https://api.moltin.com/v2/variations/:id/options
This endpoint allows you to get free cakes.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the variation |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to get access to the API. |
{
"data": [
{
"type": "option",
"id": "13633d24-67bf-4736-b753-f093257d05cb",
"name": "Little",
"description": "Our smallest size.",
"relationships": {
"modifiers": {
"data": [
{
"name_prepend": "Little "
},
{
"slug_append": "-little"
},
{
"sku_append": "-LITTLE"
},
{
"price_decrement": [
{
"currency": "GBP",
"amount": 1500,
"includes_tax": true
},
{
"currency": "USD",
"amount": 2000,
"includes_tax": true
}
]
}
]
}
}
},
{
"type": "option",
"id": "fd1c0f24-2810-4d19-8fed-40be18f35bc3",
"name": "Regular",
"description": "Our regular size.",
"relationships": {
"modifiers": {
"data": [
{
"sku_append": "-REGULAR"
},
{
"slug_append": "-regular"
},
{
"name_prepend": "Regular "
}
]
}
}
},
{
"type": "option",
"id": "9ba2e929-1e95-4d20-a0c7-67c911d4e9c8",
"name": "Large",
"description": "Our large size.",
"relationships": {
"modifiers": {
"data": [
{
"name_prepend": "Large "
},
{
"sku_append": "-LARGE"
},
{
"slug_append": "-large"
},
{
"price_increment": [
{
"currency": "GBP",
"amount": 1500,
"includes_tax": true
},
{
"currency": "USD",
"amount": 2000,
"includes_tax": true
}
]
}
]
}
}
}
]
}
curl -X GET https://api.moltin.com/v2/variations/:id/options \
-H "Authorization: Bearer XXXX"
Last updated