Collections API Routes
A product collection organizes products into a collection for marketing purposes. For example, a summer collection.
These API routes allow customers to browse collections and their products.
GET /store/collections#
List Collections
Retrieve a list of collections. The collections can be filtered by fields such as handle. The collections can also be sorted or paginated.
Authentication: none.
Header parameters
x-publishable-api-keystringx-medusa-localestringOptionalen-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-.titlestring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionalhandlestring | string[]OptionalqstringOptional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionalidstring | string[]OptionallocalestringOptionalen-USexternal_idstring | string[]OptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumbercollectionsobject[]The collection's collections.
collectionsobject[]400, 401, 404, 409, 422, 500: an error response is returned.
GET /store/collections/{id}#
Get a Collection
Retrieve a collection by its ID. You can expand the collection's relations or select the fields that should be returned.
Authentication: none.
Path parameters
idstringHeader parameters
x-publishable-api-keystringx-medusa-localestringOptionalen-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.localestringOptionalen-USRequest examples
Responses
200 OK
collectionobjectThe collection's details.
collectionobject400, 401, 404, 409, 422, 500: an error response is returned.