Customer data model
The table below covers the key fields on a customer record. Required fields are marked.Address fields
Each entry in theAddresses array uses the following structure:
Contact fields
Each entry in theContacts array uses the following structure:
Example: creating a customer
Price tiers
Every customer is assigned a pricing tier via thePricing field. This tier code is embedded into their JWT as the PriceTier claim when they authenticate.
When a customer calls any catalog endpoint, Nymble Commerce reads the PriceTier claim from their token and automatically returns the matching price for each product. You don’t need to pass the tier in catalog requests — it resolves transparently.
Wholesale, Retail, and Distributor, but you can name them anything. See the Organizations guide for how to create and manage price tiers.
Customer lifecycle
A customer account moves through the following states:
You can deactivate a customer with a
POST to the deactivate endpoint, and reactivate them instantly via the activate endpoint. Deactivation is non-destructive — no data is deleted.
Contacts and addresses
A single customer account can have multiple contacts and multiple addresses, each with a type designation:- Multiple contacts — a customer might have a primary buyer, a billing contact, and a shipping coordinator. Each contact has their own email and can optionally hold a portal login.
- Multiple addresses — a customer with several warehouses can have a
Shippingaddress per location, and a separateBillingaddress for accounts payable.
Default: true on one address per type to indicate which should be pre-selected during checkout.