check-store
Method: GET
Path: /store/check
Tags: Store
Summary
Check store existence
Description
Checks whether a store with the given ID exists. Returns success: true if the store exists, false otherwise.
Storefront SDK Usage
SDK Method: sdk.store.checkStore()
Example:
typescript
const { data, error } = await sdk.store.checkStore();
if (error) {
console.error("Failed to check store:", error.message);
} else {
console.log("Store exists:", data.success);
}TypeScript Definition
typescript
"check-store": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
};
};
};
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
500: components["responses"]["InternalServerError"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["Forbidden"] | Forbidden |
components["responses"]["NotFound"] | NotFound |
components["responses"]["InternalServerError"] | InternalServerError |
Responses
200
OK
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.
OpenAPI Definition
json
{
"tags": [
"Store"
],
"operationId": "check-store",
"summary": "Check store existence",
"description": "Checks whether a store with the given ID exists. Returns `success: true` if the store exists, `false` otherwise.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/check-store",
"description": "API reference for the check-store operation"
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
}
},
"security": [
{
"Authorization": []
},
{
"X-Api-Key": []
}
],
"x-speakeasy-group": "store",
"x-speakeasy-ignore": false,
"x-speakeasy-name-override": "checkStore"
}Auto-generated from OpenAPI spec and TypeScript definitions