Store operations
Catalog V2 products
Options

Product Options

Options

Shared attributes that control value facets on a product.

⚠️

Deprecated

Avoid using this API operation if possible. It will be removed in a future version.

Options Object – Properties

NameTypeDescription
namestringRequired field. The option's name, as used internally. Must be unique.
display_namestringOptional field. The option's name, as displayed on the storefront. Defaults to same value as name. However, a custom value can be defined here, and can be reused among multiple options.
typestringOptional field. The type of option, which determines how it will display on the storefront. Acceptable values:
C: Checkbox;
D: Date field;
F: File upload field;
MT: Multi-line text field;
RB: Radio buttons;
RT: Rectangular boxes (for product sizes);
S: Select/drop-down list;
C: Numbers-only text field;
P: Product Pick list;
CS: Color/texture Swatch;
T: Text field.
valuesobjectOptional field. Object containing option values: a url and a resource.
product_idintegerOptional field; read-only. If null, this option can be reused with any product. If populated with a numeric ID, this option can be used exclusively with the corresponding product.

List Product Options

Gets the options associated with a product.

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

Filters

There are no filter parameters specific to product 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
  }
]

Get a Product Option

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
}
Did you find what you were looking for?