list-marketplace-crosssell-products
Method: GET
Path: /catalog/marketplace/products/cross-sell
Tags: Marketplace catalog
Summary
Retrieve cross-sell products
Description
Retrieves the cross-sell items of the items in item_id. Returns only items the customer can add to the cart now: active, in stock, priced and on the customer's sales channel.
Storefront SDK Usage
SDK Method: sdk.catalog.listMarketplaceCrossSellProducts()
Example:
const { data, error } = await sdk.catalog.listMarketplaceCrossSellProducts({ item_id: ["item-123", "item-456"] });TypeScript Definition
"list-marketplace-crosssell-products": {
parameters: {
query?: {
/** @description The marketplace items to retrieve cross-sell items of. */
item_id?: string[];
/** @description Results per page. Values outside 1–100 are clamped to that range. Non-integer input returns 400. */
limit?: number;
/** @description Page number, starting at 1. Non-integer values and values below 1 return 400. */
page?: number;
};
header?: {
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
"x-customer-group-id"?: components["parameters"]["CustomerGroupId"];
};
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Success response */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message: string;
success: boolean;
content: {
products: components["schemas"]["MarketplaceItem"][];
pagination: components["schemas"]["Pagination"];
};
};
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
500: components["responses"]["InternalServerError"];
504: components["responses"]["GatewayTimeout"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["parameters"]["CustomerGroupId"] | CustomerGroupId |
components["schemas"]["MarketplaceItem"] | MarketplaceItem |
components["schemas"]["Pagination"] | Pagination |
components["responses"]["BadRequest"] | BadRequest |
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["Forbidden"] | Forbidden |
components["responses"]["InternalServerError"] | InternalServerError |
components["responses"]["GatewayTimeout"] | GatewayTimeout |
Parameters
- x-customer-group-id (header): This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
- item_id (query): The marketplace items to retrieve cross-sell items of.
- limit (query): Results per page. Values outside 1–100 are clamped to that range. Non-integer input returns 400.
- page (query): Page number, starting at 1. Non-integer values and values below 1 return 400.
Responses
200
Success response
400
Bad request
401
Authentication failed. Codes include token-required, token-expired and token_not_valid for an invalid or expired token.
403
Access denied. token-required requires an authenticated session; permission-denied means the caller cannot access this resource. On POS, session-expired requires signing in again.
500
The request failed because of an unexpected error.
504
The request timed out.
OpenAPI Definition
{
"tags": [
"Marketplace catalog"
],
"operationId": "list-marketplace-crosssell-products",
"summary": "Retrieve cross-sell products",
"description": "Retrieves the cross-sell items of the items in `item_id`. Returns only items the customer can add to the cart now: active, in stock, priced and on the customer's sales channel.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/list-marketplace-crosssell-products",
"description": "API reference for the list-marketplace-crosssell-products operation"
},
"parameters": [
{
"$ref": "#/components/parameters/CustomerGroupId"
},
{
"name": "item_id",
"in": "query",
"description": "The marketplace items to retrieve cross-sell items of.",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"explode": false,
"style": "form"
},
{
"name": "limit",
"in": "query",
"description": "Results per page. Values outside 1–100 are clamped to that range. Non-integer input returns 400.",
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
},
{
"name": "page",
"in": "query",
"description": "Page number, starting at 1. Non-integer values and values below 1 return 400.",
"schema": {
"type": "integer",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"message",
"success",
"content"
],
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"products": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MarketplaceItem"
}
},
"pagination": {
"$ref": "#/components/schemas/Pagination"
}
},
"required": [
"products",
"pagination"
],
"type": "object"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"504": {
"$ref": "#/components/responses/GatewayTimeout"
}
},
"security": [
{
"Authorization": []
}
],
"x-speakeasy-group": "marketplace",
"x-speakeasy-ignore": false,
"x-speakeasy-name-override": "listCrosssellProducts"
}Auto-generated from OpenAPI spec and TypeScript definitions