Skip to main content
A Customer in Nymble Commerce represents a business account — not an individual person. Each customer has one or more contacts, shipping and billing addresses, a price tier that determines catalog pricing, and an optionally assigned sales rep. This model is designed for the complexity of real B2B relationships.

Customer data model

The table below covers the key fields on a customer record. Required fields are marked.

Address fields

Each entry in the Addresses array uses the following structure:

Contact fields

Each entry in the Contacts array uses the following structure:

Example: creating a customer

Price tiers

Every customer is assigned a pricing tier via the Pricing 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.
Price tiers are defined at the organization level. Common examples include 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.
When you deactivate a customer, any active sessions for that customer’s portal users are invalidated. They will need to re-authenticate once reactivated.

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 Shipping address per location, and a separate Billing address for accounts payable.
Set Default: true on one address per type to indicate which should be pre-selected during checkout.
Use CustomerNumber as your stable external key when syncing Nymble Commerce with your ERP or CRM. Set it to match your existing customer ID in your system of record — this makes it trivial to cross-reference order and invoice data without maintaining a separate ID mapping table.