Create my address
POST
/ store/ v1/ customers/ me/ addresses- Idempotency-Key supported
Save an address. The first one becomes the default.
Headers
X-Customer-TokenstringrequiredCustomer session token
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
address1stringrequiredcitystringrequiredcountry_codestringrequiredISO 3166-1 alpha-2.
first_namestring · or nulllast_namestring · or nullcompanystring · or nulladdress2string · or nullregionstring · or null
Returns
201 Address saved.
Errors
- 401
unauthenticatedNo valid customer session. - 409Address limit reached.
- 422
validation_failedValidation failed.