cURL
curl --request PATCH \ --url https://api.headlesscommerce.io/v1/storefront/customers/me/addresses/{address_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-Customer-Token: <api-key>' \ --data ' { "name": "<string>", "line1": "<string>", "city": "<string>", "postal_code": "<string>", "country": "<string>", "company": "<string>", "line2": "<string>", "state": "<string>", "phone": "<string>", "type": "both", "is_default": false } '
{ "id": "<string>", "name": "<string>", "company": "<string>", "line1": "<string>", "line2": "<string>", "city": "<string>", "state": "<string>", "postal_code": "<string>", "country": "<string>", "phone": "<string>", "type": "shipping", "is_default": true, "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/ 접근 시 필요.
shipping
billing
both
Success
ISO 3166-1 alpha-2