Customers overview

The Storefront API lets you create and manage customer accounts programmatically without needing to log in to Storefront Manager. This is useful if you have your own platform or control panel and want to automate customer provisioning when users sign up, sync customer records, or build tooling for your support team.

Customer object reference

A customer object returned by the API includes the following fields:

FieldTypeDescription
idUUIDCustomer's unique ID
first_namestring or nullFirst name
last_namestring or nullLast name
emailstringEmail address
usernamestringLogin username
statusstringAccount status (active, suspended, etc.)
created_datedatetime or nullISO 8601 timestamp of account creation
last_login_datedatetime or nullISO 8601 timestamp of last login
phonestring or nullPhone number in normalized format
address1string or nullStreet address
address2string or nullAddress line 2
address3string or nullAddress line 3
citystring or nullCity
statestring or nullState or province
postal_codestring or nullPostal or ZIP code
countrystring or null2-letter ISO country code
currencyobject or null{"code": "USD", "symbol": "$", "descr": "US Dollar"}
totp_enabledbooleanWhether 2FA is enabled on the account
external_user_idstring or nullYour internal reference ID
stripe_customer_idstring or nullStripe customer ID if a payment method is on file

Single sign-on (SSO) login

The SSO endpoint generates a short-lived, single-use URL that logs a specific customer into Storefront without requiring their username and password. Use this to redirect a customer who's already authenticated on your own platform directly into their Storefront account — for example, from a "Manage Domains" button in your own portal.

Behavior:

  • The URL expires 15 minutes after it's generated and can only be used once.
  • The URL is invalidated the moment it's used, whether or not the login succeeds.
  • Token login bypasses any multi-factor authentication configured on the customer's account.
  • Every customer login completed through the API — including SSO logins — is recorded in your Storefront event log, so you can track how often it's used.
📘

Security note

Because SSO login bypasses 2FA, treat SSO URL generation with the same care as any other authenticated action on a customer's account. Only generate a URL immediately before redirecting the customer, and never store or reuse it.