> To build a Wix site agentically, or add Wix features like bookings or a store to a site you already have, follow https://www.wix.com/headless/skill.md
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/related-products/introduction.md

## Article Content:

# About the Related Products API

The Related Products API lets you show Wix Stores products alongside Wix Bookings services,
for example to offer a yoga mat with a yoga class.

A business links each service to Wix Stores product tags.
These links are the service's related products settings.
Products that have any of the service's tags, as a public or private tag, are related to the service.
Business owners set up related products for a service in the dashboard, on the service's settings page.

With the Related Products API, you can:

- Retrieve the related products settings of up to 100 services in a single call.
- Retrieve summaries of the related products, with the fields needed to display product cards:
  name, main image, prices, discounts, ribbon, and stock availability.

## Before you begin

It's important to note the following points before starting to code:

- [Wix Bookings](https://www.wix.com/app-market/web-solution/bookings) and Wix Stores must be installed on the site.
- You can specify up to 100 service IDs per call. Specifying more returns an `INVALID_ARGUMENT` error.
- Services without related products settings aren't included in the response.
- Product summaries are returned as a single list for all requested services.
  Each product appears once, even if it's related to several services.
  To find the products for a specific service, match each product's `tags` against the service's `productTagIds`.
- Product summaries are sorted by the product's lowest price, from highest to lowest.
- Paging applies to product summaries only. All matching related products settings are always returned.
- Site visitors and members receive only products that are visible on the site.
  Apps and Wix users can also receive hidden products. To show only products that site visitors can see,
  call the method with a site visitor or member identity.
- Product summaries come from the Wix Stores Catalog V3 API. For full product details,
  call [Get Product](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/get-product.md) with the product `id`.

## Use cases

- [Show related products on a booking page](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/related-products/sample-flows.md).

## Terminology

- **Related products settings**: The settings that link a Bookings service to Wix Stores product tags.
  A service has at most 1 related products settings object.
- **Related products**: Wix Stores products that have any of a service's product tags.
- **Product summary**: A slim view of a Wix Stores product with the fields needed to display a product card.

## See also

- [Services V2 API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2.md): Manage the services that related products are linked to.

