Skip to content

list-marketplace-upsell-products ​

Method: GET
Path: /catalog/marketplace/products/up-sell

Tags: Marketplace catalog

Summary ​

Retrieve up-sell products

Description ​

Retrieves the up-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.listMarketplaceUpSellProducts()

Example:

typescript
const { data, error } = await sdk.catalog.listMarketplaceUpSellProducts({ item_id: ["item-123", "item-456"] });

TypeScript Definition ​

typescript
"list-marketplace-upsell-products": {
        parameters: {
            query?: {
                /** @description The marketplace items to retrieve up-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": {
                        /** @description Masssage */
                        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 ​

ReferenceResolves 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 up-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 ​

json
{
  "tags": [
    "Marketplace catalog"
  ],
  "operationId": "list-marketplace-upsell-products",
  "summary": "Retrieve up-sell products",
  "description": "Retrieves the up-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-upsell-products",
    "description": "API reference for the list-marketplace-upsell-products operation"
  },
  "parameters": [
    {
      "$ref": "#/components/parameters/CustomerGroupId"
    },
    {
      "name": "item_id",
      "in": "query",
      "description": "The marketplace items to retrieve up-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": {
                "description": "Masssage",
                "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": "listUpsellProducts"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: