Product Options API Routes
A product option is a way to define different options for a product, such as "Size" or "Color". Product options can be created globally and used by multiple products, or they can be exclusive to a specific product. These API routes allow customers to view product options.
GET /store/product-options#
List Product Options
Retrieve a list of product options. The product options can be filtered by fields such as id. The product options can also be sorted or paginated.
Authentication: none.
Header parameters
x-publishable-api-keystringx-medusa-localestringOptionalen-USQuery parameters
localestringOptionalen-USqstringOptionaltitlestring | string[]Optionalis_exclusivebooleanOptionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionallimitnumberOptionaloffsetnumberOptionalorderstringOptional-.with_deletedbooleanOptionalfieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. Without prefix it will replace the entire default fields.$andobject[]Optional$orobject[]Optionalidstring | string[]OptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberestimate_countnumberOptionalproduct_optionsobject[]The list of product options.
product_optionsobject[]400, 401, 404, 409, 422, 500: an error response is returned.
GET /store/product-options/{id}#
Get a Product Option
Retrieve a product option by its ID. You can expand the product option's relations or select the fields that should be returned.
Authentication: none.
Path parameters
idstringHeader parameters
x-publishable-api-keystringx-medusa-localestringOptionalen-USQuery parameters
localestringOptionalen-USfieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. Without prefix it will replace the entire default fields.Request examples
Responses
200 OK
product_optionobjectThe product option's details.
product_optionobject400, 401, 404, 409, 422, 500: an error response is returned.