list-marketplace-skus
Method: GET
Path: /catalog/marketplace/skus
Tags: Marketplace catalog
Summary
List all SKUs
Description
Returns a list of SKUs. The SKUs are returned sorted by creation date, with the most recently created SKUs appearing first.
Storefront SDK Usage
SDK Method: sdk.catalog.listMarketplaceSkus()
Example:
typescript
const { data, error } = await sdk.catalog.listMarketplaceSkus({ sku: ["SKU-123", "SKU-456"] });TypeScript Definition
typescript
"list-marketplace-skus": {
parameters: {
query?: {
/** @description Page number, starting at 1. Non-integer values and values below 1 return 400. */
page?: components["parameters"]["pageParam"];
/** @description Results per page. Values outside 1–100 are clamped to that range. Non-integer input returns 400. */
limit?: components["parameters"]["pageLimitParam"];
/** @description filter sku by categories */
category_id?: string[];
/** @description Determines whether to include or exlude inventory details in response json */
inventory?: boolean;
/** @description Use `aggregated` for inventory totals instead of lot/batch entries. */
inventory_format?: string;
product_id?: string;
product_type?: "physical" | "digital" | "bundle";
/** @description filter sku by seller id */
seller_id?: string;
/** @description array of sku */
sku?: string[];
variant_id?: string;
};
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": {
/** @example SKUs retrieved successfully. */
message: string;
success: boolean;
content: {
skus: $Read<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"]["pageParam"] | pageParam |
components["parameters"]["pageLimitParam"] | pageLimitParam |
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
- page (query): Page number, starting at 1. Non-integer values and values below 1 return 400.
- limit (query): Results per page. Values outside 1–100 are clamped to that range. Non-integer input returns 400.
- 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.
- category_id (query): filter sku by categories
- inventory (query): Determines whether to include or exlude inventory details in response json
- inventory_format (query): Use
aggregatedfor inventory totals instead of lot/batch entries. - product_id (query): No description
- product_type (query): No description
- seller_id (query): filter sku by seller id
- sku (query): array of sku
- variant_id (query): No description
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-skus",
"summary": "List all SKUs",
"description": "Returns a list of SKUs. The SKUs are returned sorted by creation date, with the most recently created SKUs appearing first.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/list-marketplace-skus",
"description": "API reference for the list-marketplace-skus operation"
},
"parameters": [
{
"$ref": "#/components/parameters/pageParam"
},
{
"$ref": "#/components/parameters/pageLimitParam"
},
{
"$ref": "#/components/parameters/CustomerGroupId"
},
{
"name": "category_id",
"in": "query",
"description": "filter sku by categories",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"explode": true,
"style": "form"
},
{
"name": "inventory",
"in": "query",
"description": "Determines whether to include or exlude inventory details in response json",
"schema": {
"type": "boolean"
}
},
{
"name": "inventory_format",
"in": "query",
"description": "Use `aggregated` for inventory totals instead of lot/batch entries.",
"schema": {
"type": "string",
"examples": [
"aggregated"
]
}
},
{
"name": "product_id",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "product_type",
"in": "query",
"schema": {
"type": "string",
"enum": [
"physical",
"digital",
"bundle"
]
}
},
{
"name": "seller_id",
"in": "query",
"description": "filter sku by seller id",
"schema": {
"type": "string"
}
},
{
"name": "sku",
"in": "query",
"description": "array of sku",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
{
"name": "variant_id",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"message",
"success",
"content"
],
"properties": {
"message": {
"type": "string",
"examples": [
"SKUs retrieved successfully."
]
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"skus": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MarketplaceItem"
},
"readOnly": true
},
"pagination": {
"$ref": "#/components/schemas/Pagination"
}
},
"required": [
"skus",
"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": "listSkus"
}Auto-generated from OpenAPI spec and TypeScript definitions