Swell · Schema

Swell Account

CommerceHeadless CommerceAPI-FirstB2CB2BSubscriptionsMarketplacesWholesaleStorefrontCheckoutPaymentsCartsOrdersCatalogInternationalization

Properties

Name Type Description
id string
email string
name string
first_name string
last_name string
phone string
type string
currency string
group string
balance number
billing object
shipping object
order_count integer
order_value number
cart_abandoned_count integer
email_optin boolean
date_first_order string
date_last_order string
date_last_login string
date_created string
date_updated string
View JSON Schema on GitHub

JSON Schema

swell-account-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/swell-io/main/json-schema/swell-account-schema.json",
  "title": "Swell Account",
  "type": "object",
  "required": ["email"],
  "properties": {
    "id": { "type": "string", "pattern": "^[a-f0-9]{24}$" },
    "email": { "type": "string", "format": "email" },
    "name": { "type": "string" },
    "first_name": { "type": "string" },
    "last_name": { "type": "string" },
    "phone": { "type": "string" },
    "type": { "type": "string", "enum": ["individual", "business"] },
    "currency": { "type": "string" },
    "group": { "type": "string" },
    "balance": { "type": "number" },
    "billing": { "type": "object" },
    "shipping": { "type": "object" },
    "order_count": { "type": "integer" },
    "order_value": { "type": "number" },
    "cart_abandoned_count": { "type": "integer" },
    "email_optin": { "type": "boolean" },
    "date_first_order": { "type": "string", "format": "date-time" },
    "date_last_order": { "type": "string", "format": "date-time" },
    "date_last_login": { "type": "string", "format": "date-time" },
    "date_created": { "type": "string", "format": "date-time" },
    "date_updated": { "type": "string", "format": "date-time" }
  }
}