Product Types API Routes
GET /store/product-types#
List Product Types
Retrieve a list of product types. The product types can be filtered by fields such as id. The product types can also be sorted or paginated.
Authentication: none.
Header parameters
x-publishable-api-keystringx-medusa-localestringOptionalExample:
en-USQuery parameters
fieldsstringOptional+ 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.offsetnumberOptionallimitnumberOptionalorderstringOptional-.$andobject[]Optional$orobject[]OptionalqstringOptionalidstring | string[]Optionalvaluestring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionalwith_deletedbooleanOptionallocalestringOptionalExample:
en-USexternal_idstring | string[]OptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberproduct_typesobject[]The list of product types.
product_typesobject[]estimate_countnumberOptional400, 401, 404, 409, 422, 500: an error response is returned.
GET /store/product-types/{id}#
Get a Product Type
Retrieve a product type by its ID. You can expand the product type's relations or select the fields that should be returned.
Authentication: none.
Path parameters
idstringHeader parameters
x-publishable-api-keystringx-medusa-localestringOptionalExample:
en-USQuery parameters
fieldsstringOptional+ 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.localestringOptionalExample:
en-USRequest examples
Responses
200 OK
product_typeobjectThe product type's details.
product_typeobject400, 401, 404, 409, 422, 500: an error response is returned.