Backend API

Fields
idobjectId

Unique identifier for the customer.

emailstringrequired

Customer's email address.

addressesarray of Addresses

Expandable list of saved addresses on file.

attributesobject

An object containing custom attribute key/value pairs.

balancecurrency

Balance of customer credits.

billingobject

Default customer billing information.

cardsarray of Cards

Expandable list of saved credit cards on file.

cart_abandoned_countint

Number of abandoned carts initiated by the customer.

cartsCart

Expandable list of carts created by the customer.

contactContact

Expandable list of saved information for the primary contact on file for the account.

contactsContact

Expandable list of all contacts.

contact_idobjectId

The ID of the primary contact.

creditsarray of Credits

Expandable list of customer credit transactions. Balance of these transactions is kept in balance.

currencystring

Three-letter ISO currency code in uppercase. Defaults to the store's base currency.

date_createddateauto

Date and time the customer was created.

date_first_cart_abandoneddate

Date the customer first abandoned a shopping cart.

date_first_orderdate

Date the customer placed their first order.

date_last_cart_abandoneddate

Date the customer last abandoned a shopping cart.

date_last_logindate

Date the customer last logged into their account.

date_last_orderdate

Date of the last order placed by the customer.

date_updateddateauto

Date and time the customer was last updated.

email_optinboolean

Indicates the customer opted into email communications.

first_namestring

Customer's first name. If name is updated, then first_name will be automatically updated as the first word of the name.

groupstring

Customer group used for special price rules and other customer logic.

invoicesInvoice

Expandable list of invoices issued for the customer.

last_namestring

If name is updated, then last_name will be automatically updated as the last words of the name.

localestring

Customer’s preferred locale code.

metadataobject

Arbitrary data, typically set in a checkout flow to store custom values. See Frontend API for more details.

namestring

Full name of the customer. If first_name or last_name are updated, then name will be automatically updated as a combination of first/last.

notesstring

Internal admin notes. These are not visible to the customer.

ordersOrder

Expandable list of orders placed by the customer.

order_countint

Number of orders the customer has placed over time.

order_valuecurrency

Total value of all orders the customer has placed over time.

passwordstring

Password used to log in and gain access to sensitive information. When the customer has a password, they are required to log in when placing an order using the associated email address. This value is automatically encrypted using bcrypt.

If an account does not have a password defined, it is treated as a guest during checkout.

password_reset_keystring

Unique key created when a customer requests a password reset.

password_reset_urlstring

When a customer requests password reset, an email is sent with this URL to redirect and authenticate the request.

password_tokenstring

A temp token generated by Swell, or a permanent password token assigned after submitting a temporary token (starting with password_).

phonestring

Customer's phone number.

segmentsarray of child_scalar

An array of strings, each representing a segment that the account belongs to. Segments are used to allow groups of customers access to particular coupons or promos.

shippingobject

Default customer shipping information.

sms_optinboolean

Indicates the customer has opted in to receive SMS marketing.

subscriptionsSubscription

Expandable list of subscriptions held by the customer.

typeenum

Type of customer. Can be one of individual or business.

Possible enum values:

individualbusiness
vat_numberstring

Default VAT number for a business customer, if applicable.