Activate a storefront customer account

Completes an account from its activation link and signs the buyer in. Send the link's `token`, a `password` and `acceptsTerms: true`. `firstName`, `lastName` and `phone` fill only empty profile fields. With `marketingOptIn: true`, the buyer opts in on every marketing channel without an earlier choice. The email is marked verified and earlier session tokens stop working. The buyer may also receive a one-time welcome email. Returns 200 with `{ customer, token }`. An invalid, expired or used link, or an account that already has a password, returns 400 `VERIFICATION_LINK_INVALID`. After ten failed attempts from one client, sign-ins included, further attempts return 429 `RATE_LIMIT_EXCEEDED` with a `Retry-After` header for up to 15 minutes. > **Note:** Available only on sites with e-commerce enabled.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Site access
POST/customers/activation/confirm
Base URLhttps://api.lynkow.com/storefront/{siteId}

Request body
required

  • acceptsTerms
    enum
    required

    Required. Terms-of-service acceptance. Any other value returns 422 and the account is not activated. One of: true

    One of: true

  • password
    string
    required

    Required. 8-100 characters

  • token
    string
    required

    Required. Min 1 character

  • consentVersion
    string

    Label of the consent text shown, recorded with an opt-in. Cut to 100 characters; an unusable value is ignored.

  • firstName
    string

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

  • lastName
    string

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

  • locale
    string

    The buyer's preferred language, stored normalized; an unusable value is ignored. The accepted terms and any marketing opt-in are recorded in it

  • marketingOptIn
    boolean

    Optional marketing opt-in. When true, opts the customer in on every supported marketing channel.

  • phone
    string

    Phone number, stored as entered: no format is checked. 3-40 characters

Feedback

Was this page helpful?