CustomerNumber that you assign (typically matching your ERP’s account number). All endpoints require a valid Bearer token. The OrganizationId is read automatically from your JWT claims.
List customers
Retrieve a paginated, sortable, and filterable list of customers in your organization.Query parameters
The page of results to return.
Number of customers per page.
Field to sort on. Common values:
Name, CustomerNumber, CompanyEmail.Sort direction. Accepts
asc or desc.Optional array of filter objects. Each filter has a
field, operator, and value. Supported operators: startswith, contains, notcontains, endswith, equals, notequals, gt, gte, lt, lte.Response
Returns a paginated result containing an array of customer objects.Example
Get a customer
Retrieve a single customer by theirCustomerNumber.
Path parameters
The customer’s unique account number.
Response
Returns a single customer object.Example
Create a customer
Create a new B2B customer account. UsePUT /api/customers to upsert — if a customer with the given CustomerNumber already exists, Nymble Commerce updates that record.
Body parameters
Your unique account number for this customer. Typically matches your ERP’s account number.
The customer’s company or business name.
Primary business email address for the account.
Main business phone number.
Business fax number.
The price tier to apply to this customer, e.g.
Wholesale or Retail. Must match a price tier configured in your organization.Whether the customer account is active.
The sales rep number assigned to this customer.
Payment terms for this customer, e.g.
NET30, NET60.Your system’s identifier for this customer. Used for idempotent imports — re-submitting a customer with the same
externalId updates the existing record.Array of address objects for this customer. Include at least one billing and one shipping address.
Array of contact objects for this customer.
A free-form dictionary of custom key-value attributes, e.g.
{ "region": "Southwest", "accountTier": "Gold" }.Response
Returns the created or updated customer object.Example
Update a customer
Update an existing customer account by theirCustomerNumber. Any fields you include are overwritten; omitted fields retain their current values.
Path parameters
The
CustomerNumber of the account to update.Body parameters
Same as Create a customer. You can include a subset of fields to perform a partial update.Example
Activate a customer
Re-activate a previously deactivated customer account, restoring their ability to place orders.Path parameters
The
CustomerNumber of the account to activate.Example
204 No Content on success.
Delete a customer
Permanently remove a customer account and all associated data.Path parameters
The
CustomerNumber of the account to delete.Example
204 No Content on success.
Address object
Each address in theaddresses array contains the following fields:
Your system’s unique identifier for this address. Use this for idempotent upserts when syncing from an ERP.
Street address line 1.
Street address line 2 (suite, unit, floor, etc.).
City.
State or province code.
ZIP or postal code.
ISO 3166-1 alpha-2 country code, e.g.
US, CA.Either
Billing or Shipping.Phone number for this location.
Whether this is the customer’s primary address for its type.
Contact object
Each contact in thecontacts array contains the following fields:
Your system’s unique identifier for this contact.
Salutation or title, e.g.
Mr., Ms., Dr..Contact’s first name.
Contact’s last name.
Contact’s email address.
Contact’s phone number.
Contact’s fax number.
Whether this is the primary contact for the customer account.
The role or category of this contact, e.g.
Purchasing, Accounts Payable, Receiving.The customer object
Your unique account number for this customer.
The organization this customer belongs to.
Company or business name.
Primary business email.
Main business phone.
Business fax number.
The price tier assigned to this customer.
Whether the account is currently active.
The assigned sales rep’s number.
Payment terms, e.g.
NET30.Your system’s identifier for this customer.
Array of address objects.
Array of contact objects.
Custom key-value attribute dictionary.