고객 토큰 발급 (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"
}Admin - 고객
고객 토큰 발급 (Storefront 인증용)
Called from the store backend (sk_* key) to issue a customer token. The frontend passes this token via the X-Customer-Token header to access /storefront/customers/me, /storefront/orders, etc.
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"
}⌘I