Create an address for the current customer

Saves a new address for the signed-in customer. `isDefaultShipping: true` or `isDefaultBilling: true` makes it the default in place of the current one. A customer who already has 20 addresses gets 422 `CUSTOMER_ADDRESSES_LIMIT_REACHED`.

Required access
Send
  • Publishable keyX-Lynkow-Pk
  • Customer session tokenAuthorization
Site access
POST/customers/me/addresses
Base URLhttps://api.lynkow.com/storefront/{siteId}

Request body
required

  • address1
    string
    required

    Required. 1-255 characters

  • city
    string
    required

    Required. 1-120 characters

  • countryCode
    string
    required

    Required. ISO 3166-1 alpha-2 country code

  • firstName
    string
    required

    Required. Given name; on an address, the recipient's. 1-120 characters

  • lastName
    string
    required

    Required. Family name; on an address, the recipient's. 1-120 characters

  • postalCode
    string
    required

    Required. 1-32 characters

  • address2
    union

    Second address line, such as an apartment or suite

  • addressName
    union

    Label of the address, such as Home or Office

  • company
    union

    Company name on the address

  • isDefaultBilling
    boolean

    Whether this is the customer's default billing address. `true` removes that default from their other addresses

  • isDefaultShipping
    boolean

    Whether this is the customer's default shipping address. `true` removes that default from their other addresses

  • metadata
    object

    Custom key-value metadata

  • phone
    union

    Phone number, stored as entered: no format is checked

  • province
    union

    State, province or region of the address

Feedback

Was this page helpful?