cURL
curl --request GET \ --url https://api.headlesscommerce.io/v1/storefront/customers/me \ --header 'Authorization: Bearer <token>' \ --header 'X-Customer-Token: <api-key>'
{ "id": "<string>", "email": "<string>", "first_name": "<string>", "last_name": "<string>", "phone": "<string>", "external_id": "<string>", "status": "active", "total_orders": 123, "total_spent": { "amount": 123, "currency": "<string>" }, "tags": [ "<string>" ], "addresses": [ { "name": "<string>", "company": "<string>", "line1": "<string>", "line2": "<string>", "city": "<string>", "state": "<string>", "postal_code": "<string>", "country": "<string>", "phone": "<string>" } ], "metadata": {}, "created_at": "2023-11-07T05:31:56Z" }
API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx
Storefront 고객 인증 토큰. POST /admin/customers/{id}/token 으로 발급. /storefront/customers/, /storefront/orders/ 접근 시 필요.
Success
active
disabled
Show child attributes