Update the current customer's address

Updates the fields you send on one of the signed-in customer's addresses; send at least one. An address the customer does not own returns 404 `CUSTOMER_ADDRESS_NOT_FOUND`.

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

Path parameters

id
string
required

Unique identifier

Request body
required

  • address1
    string

    1-255 characters

  • address2
    union

    Second address line, such as an apartment or suite

  • addressName
    union

    Label of the address, such as Home or Office

  • city
    string

    1-120 characters

  • company
    union

    Company name on the address

  • countryCode
    string

    ISO 3166-1 alpha-2 country code

  • firstName
    string

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

  • 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

  • lastName
    string

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

  • metadata
    object

    Custom key-value metadata

  • phone
    union

    Phone number, stored as entered: no format is checked

  • postalCode
    string

    1-32 characters

  • province
    union

    State, province or region of the address

Feedback

Was this page helpful?