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.
/customers/activation/confirmhttps://api.lynkow.com/storefront/{siteId}Request bodyrequired
acceptsTermsenumrequiredRequired. Terms-of-service acceptance. Any other value returns 422 and the account is not activated. One of: true
One of:
truepasswordstringrequiredRequired. 8-100 characters
tokenstringrequiredRequired. Min 1 character
consentVersionstringLabel of the consent text shown, recorded with an opt-in. Cut to 100 characters; an unusable value is ignored.
firstNamestringGiven name; on an address, the recipient's. 1-100 characters
lastNamestringFamily name; on an address, the recipient's. 1-100 characters
localestringThe buyer's preferred language, stored normalized; an unusable value is ignored. The accepted terms and any marketing opt-in are recorded in it
marketingOptInbooleanOptional marketing opt-in. When true, opts the customer in on every supported marketing channel.
phonestringPhone number, stored as entered: no format is checked. 3-40 characters