메인 콘텐츠로 건너뛰기
POST
/
admin
/
customers
/
{id}
/
token
고객 토큰 발급 (Storefront 인증용)
curl --request POST \
  --url https://api.headlesscommerce.io/v1/admin/customers/{id}/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expires_in": 86400
}
'
{
  "token": "<string>",
  "expires_at": "2023-11-07T05:31:56Z"
}

인증

Authorization
string
header
필수

API Key. Example: sk_live_xxxxx or pk_live_xxxxx

경로 매개변수

id
string
필수

Resource ID

본문

application/json
expires_in
integer
기본값:86400

Token expiration time (seconds). Default: 86400 (24 hours)

응답

200 - application/json

성공

token
string
expires_at
string<date-time>