v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Storefront Tokens

Create storefront token

Create storefront token<br>創建一個新的店面令牌

post/storefront_tokens

Request body

backend_tokenboolean

Indicate if it is a backend token for different setup such as ratelimit

Response

Created<br>成功創建

idstring

Token ID<br>令牌ID

tokenstring

A JWT storefront token string<br>JWT店面令牌字串

staff_idstring

ID of the staff that created this token<br>創建這令牌的staff ID

application_idstring

ID of the application that created this token<br>創建這令牌的程式

backend_tokenboolean

Indicate if it is a backend token for different setup such as ratelimit

created_atstring

The date and time when the token was created<br>令牌創建的日期和時間

Example response

{
  "id": "6267bd6ae698e42eddaa01fc",
  "token": "jwt_storefront_token_string",
  "staff_id": "6267bd6ae698e42eddaa01fc",
  "application_id": "6268f2837bda628f5a1b6635",
  "merchant": {
    "id": "6267bd6ae698e42eddaa01fc",
    "name": "Test Store",
    "email": "main@teststore.com",
    "handle": "test133"
  },
  "staff": {
    "id": "6267bd6ae698e42eddaa01fc",
    "name": "Test Store",
    "email": "main@teststore.com",
    "handle": "test133"
  },
  "created_at": "2025-08-01T12:00:00.000Z"
}