Sales rep accounts
A sales rep is a distinct user type within your organization. Reps are created at the organization level and carry their own identity and credentials. Key fields on a sales rep record:
When a sales rep authenticates, their JWT includes a
SalesRep role claim. The API reads this claim to apply rep-specific scoping rules automatically — no extra parameters needed.
Example: creating a sales rep
Assisted ordering
The most powerful sales rep capability in Nymble Commerce is assisted ordering — a rep placing an order on behalf of one of their assigned customers. You use the samePOST /api/orders endpoint as a customer self-service order, with two key fields populated:
Customer.CustomerNumber— the customer the order is for.PrimarySalesRep.RepNumber— the rep who owns this customer relationship.
TakenBySalesRep field as well.
PrimarySalesRep and TakenBySalesRep as full objects, so you can display the correct attribution in your reporting and commission workflows.
Visibility scoping
Nymble Commerce automatically enforces what each user type can see:
When a sales rep calls
GET /api/customers, the API reads their RepNumber from their JWT and filters the response to their assigned accounts. You don’t need to implement this filtering yourself — the API enforces it at the data layer.
This scoping applies consistently across all customer-related endpoints: customer list, customer detail, customer orders, and customer invoices.
Customer lookup
Sales reps can search and filter their customer list using the standard list endpoint. The same query parameters apply:PageNumber and PageSize. The API returns only the rep’s assigned customers — no configuration required.
Commission plans
Nymble Commerce includes a full commission plan API so you can define, activate, and manage how each rep earns on the orders they close. Plans are scoped per rep and per organization, so multi-org reps can have different commission structures in each organization they belong to.Commission plan structure
A commission plan is created viaPOST /api/commissions/plans and assigned to a specific SalesRepId. Key fields on a plan:
Commission rules
Rules let you configure different rates based on SKU patterns, product name patterns, customer numbers, or line item amounts. Each rule has:Customer overrides
UseCustomerOverrides to give a rep a different default rate or rule set for a specific customer account. Overrides are identified by CustomerNumber and can include their own EffectiveStartDate, EffectiveEndDate, and Rules array — structured identically to top-level rules.
Activating and deactivating plans
Use the dedicated endpoints to control whether a plan is actively earning:Commission statements
Once orders are invoiced and paid, Nymble Commerce can generate aCommissionStatement for a rep covering a defined date range. Statements roll up commission entries per invoice, apply the matching plan rate per line, and produce a payable total. Statements move through an approval workflow (Draft → Approved → paid), and the full event history is preserved on the statement for audit purposes.