Skip to main content
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"
}

Authorizations

Authorization
string
header
required

API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx

Path Parameters

id
string
required

리소스 ID

Body

application/json
expires_in
integer
default:86400

토큰 만료 시간 (초). 기본 86400 (24시간)

Response

200 - application/json

Success

token
string
expires_at
string<date-time>