Product Variants API Routes
GET /store/product-variants#
List Product Variants
Retrieve a list of product variants. The product variants can be filtered by fields such as id. The product variants can also be sorted or paginated.
Authentication: none.
Header parameters
x-publishable-api-keystringx-medusa-localestringOptionalExample:
en-USQuery parameters
localestringOptionalExample:
en-USskustring | string[]Optionalmanage_inventorybooleanOptionalallow_backorderbooleanOptionalproduct_idstring | string[]OptionalqstringOptionalidstring | string[]OptionaloptionsobjectOptionalFilter by the product variant's options.
optionsobjectOptionalcreated_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[]OptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberestimate_countnumberOptionalvariantsobject[]The list of product variants.
variantsobject[]400, 401, 404, 409, 422, 500: an error response is returned.