Skip to content

get-seller-detail ​

Method: GET
Path: /store/sellers/{id}

Tags: Sellers

Summary ​

Retrieve seller detail

Description ​

Retrieve seller detail by ID

Storefront SDK Usage ​

SDK Method: sdk.store.getSellerDetail()

Example:

typescript
const { data, error } = await sdk.store.getSellerDetail({ id: "seller-123" });

TypeScript Definition ​

typescript
"get-seller-detail": {
        parameters: {
            query?: never;
            header?: never;
            path: {
                /** @description Seller ID */
                id: string;
            };
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        message: string;
                        success: boolean;
                        content: {
                            seller_detail: components["schemas"]["SellerDetail"];
                            reviews_stats: components["schemas"]["SellerReviewStats"];
                        };
                    };
                };
            };
            400: components["responses"]["BadRequest"];
            401: components["responses"]["Unauthorized"];
            403: components["responses"]["Forbidden"];
            404: components["responses"]["NotFound"];
            500: components["responses"]["InternalServerError"];
            503: components["responses"]["ServiceUnavailable"];
        };
    };

Component References ​

ReferenceResolves To
components["schemas"]["SellerDetail"]SellerDetail
components["schemas"]["SellerReviewStats"]SellerReviewStats
components["responses"]["BadRequest"]BadRequest
components["responses"]["Unauthorized"]Unauthorized
components["responses"]["Forbidden"]Forbidden
components["responses"]["NotFound"]NotFound
components["responses"]["InternalServerError"]InternalServerError
components["responses"]["ServiceUnavailable"]ServiceUnavailable

Responses ​

200 ​

OK

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.

404 ​

Requested resource not found

500 ​

The request failed because of an unexpected error.

503 ​

The requested resource is temporarily unavailable.

OpenAPI Definition ​

json
{
  "tags": [
    "Sellers"
  ],
  "operationId": "get-seller-detail",
  "summary": "Retrieve seller detail",
  "description": "Retrieve seller detail by ID",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/operations/get-seller-detail",
    "description": "API reference for the get-seller-detail operation"
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "message",
              "success",
              "content"
            ],
            "properties": {
              "message": {
                "type": "string"
              },
              "success": {
                "type": "boolean"
              },
              "content": {
                "properties": {
                  "seller_detail": {
                    "$ref": "#/components/schemas/SellerDetail"
                  },
                  "reviews_stats": {
                    "$ref": "#/components/schemas/SellerReviewStats"
                  }
                },
                "required": [
                  "seller_detail",
                  "reviews_stats"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/BadRequest"
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "403": {
      "$ref": "#/components/responses/Forbidden"
    },
    "404": {
      "$ref": "#/components/responses/NotFound"
    },
    "500": {
      "$ref": "#/components/responses/InternalServerError"
    },
    "503": {
      "$ref": "#/components/responses/ServiceUnavailable"
    }
  },
  "security": [
    {
      "Authorization": []
    },
    {
      "X-Api-Key": []
    }
  ],
  "x-speakeasy-group": "store",
  "x-speakeasy-ignore": false,
  "x-speakeasy-name-override": "getSellerDetail"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: