These endpoints power the storefront product catalogue. They return paginated product listings with prices and filter metadata, individual variant data, product images and stock levels, specification breakdowns, and brand listings. All endpoints are guest-accessible and require no authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aerele/medusa_integration/llms.txt
Use this file to discover all available pages before exploring further.
Get website items
GET / POST Guestcustomer_id is provided. Supports filtering by collection, brand, availability, and product specifications.
Request body
The current URL path (e.g.
/products/dental). Used to resolve the matching ERPNext Item Group.Medusa customer ID. When provided, negotiated prices from the customer’s default price list are included in the response.
Page number. Each page contains 20 items.
Filter by one or more item group names (collection titles).
Filter by one or more brand names.
When
true, only returns items where custom_in_stock is set.Sort order for results. Accepted values:
"asc" (name ascending), "desc" (name descending), "default" (ranking descending).Filter by one or more colour specification values.
Filter by one or more shape specification values.
Filter by one or more shade specification values.
Response fields
Total number of products matching the current filters.
Total number of pages at 20 items per page.
The requested page number.
Number of items returned in this page.
Immediate child item groups of the resolved item group.
All item groups within the resolved item group tree, with product counts.
All brands present in the filtered result set, with product counts.
Unique colour values from product specifications in the filtered set.
Unique shape values from product specifications in the filtered set.
Unique shade values from product specifications in the filtered set.
The products for the current page.
Example
Get website variants
GET GuestRequest parameters
The Medusa product ID of the parent Website Item.
Medusa customer ID. Used to determine
is_wishlisted status for each variant.Response fields
"success" if variants were found, "empty" if none exist.Array of variant items.
Example
Get website image
GET GuestRequest parameters
The Medusa product ID.
Medusa customer ID. Used to resolve the customer’s default price list.
Response fields
"success" if at least one image is available, "empty" if none, "error" on failure.Absolute URL to the product’s website image.
Absolute URL to the brand logo image.
Total actual stock quantity across all company warehouses.
Standard selling price. Returns 0 if price exceeds the visibility threshold.
HTML long description of the product (
web_long_description).Example
Get distinct specs
POST GuestRequest body
Array of Medusa product IDs to fetch specifications for.
Response fields
Sorted list of unique colour values across all specified products.
Sorted list of unique shape values.
Sorted list of unique shade values.
Mapping of Medusa product ID to
1 (has variants) or 0 (no variants).Example
Get all brands
GET Guestitem_group is provided, only brands with products in that group (and its descendants) are returned. Also includes the four top-level product categories.
Request parameters
ERPNext Item Group name. When provided, restricts brands to those with published Website Items in this group and its descendants.
Response fields
Fixed list of top-level product categories:
["DENTAL", "MEDICAL", "Medical Laboratory IVD", "Infection Control"].All matching brands with images.