Skip to content

Sign up

POST/store/v1/customers
  • Idempotency-Key supported

Create a customer account and sign in. Returns the session token. While the store approves new accounts the account waits instead (202): nobody is signed in, and the store emails the customer once it's approved.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • emailstringrequired
  • passwordstringrequired

    12–128 characters.

  • first_namestring · or null
  • last_namestring · or null
  • localestring · or null

    BCP 47, e.g. ar. Emails to the customer use it.

  • email_marketingboolean

    The customer agreed to marketing emails.

Returns

201 Account created; signed in.

Errors

  • 409email_taken (sign in instead), account_setup_required (use the password reset to claim it), accounts_off (the store has no accounts) or sign_up_invite_only (accounts by invitation only).
  • 422validation_failedValidation failed.
  • 429rate_limitedToo many attempts.