Create Customer Address
POST
/store/:storeCode/customers/me/addressesCreate an address for the logged-in customer.
Path Parameters
storeCoderequiredstringStore slug in the URL (first argument to every SDK store method).
Query Parameters
fieldsstringComma-separated fields to include. Prefix with `*` to expand a relation (e.g. `id,*variants`).
Request Body
Schema
CopyHttpTypes.StoreCreateCustomerAddress
Properties
country_coderequiredstringISO-2 country code.
address_namestringAddress label.
first_namestringFirst name.
last_namestringLast name.
companystringCompany.
address_1stringAddress line 1.
address_2stringAddress line 2.
citystringCity.
provincestringProvince / state.
postal_codestringPostal code.
phonestringPhone.
is_default_shippingbooleanSet as default shipping.
is_default_billingbooleanSet as default billing.
Response
Status
200OK
Schema
CopyHttpTypes.StoreCustomerResponse
Properties
customerrequiredStoreCustomerCustomer including the new address.