Product Options

Deprecated

Product Options

This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.

TitleNameTypeDescription
idint
option_idint
display_namestring
sort_orderint
is_requiredboolean

Gets the options associated with a product.

GET /stores/{store_hash}/v2/products/{product_id}/options

Pagination

Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 product_options are returned by default.

ParameterTypeExample
pageint/api/v2/products/{product_id}/options?page={number}
limitint/api/v2/products/{product_id}/options?limit={count}

Response

Example JSON returned in the response:

[
{
"id": 13,
"option_id": 8,
"display_name": "iPod Capacities",
"sort_order": 0,
"is_required": true
},
{
"id": 14,
"option_id": 9,
"display_name": "Accessories",
"sort_order": 1,
"is_required": false
}
]

Gets an option associated with a product.

GET /stores/{store_hash}/v2/products/{product_id}/options/{id}

Response

Example JSON returned in the response:

{
"id": 14,
"option_id": 9,
"display_name": "Accessories",
"sort_order": 1,
"is_required": false
}