Skip to main content
This guide walks you through the core Nymble Commerce API flow from zero to a submitted order. You’ll exchange your credentials for an access token, list your product catalog, build a cart, add items, and check out — all via straightforward HTTP requests.
Use the sandbox environment (https://api-dev.achievemomentum.com) while following this guide so you don’t affect live data. Swap in the production base URL (https://api.achievemomentum.com) when you’re ready to go live.
1

Authenticate

Exchange your organization credentials for an API key token. Send a POST request to /api/auth/login with your OrgCode, ClientId, and ClientSecret.
A successful response returns your access token:
Store the AccessToken value — you’ll include it in the x-api-key header for all subsequent requests. The token is valid for ExpiresIn seconds (86,400 seconds = 24 hours). Cache it and reuse it rather than re-authenticating on every request.
The login endpoint is rate-limited to 10 requests per minute per ClientId. If you exceed this limit, you’ll receive a 429 Too Many Requests response. Cache your token until it’s close to expiry to avoid hitting this limit.
2

List your products

Retrieve your organization’s product catalog. The OrganizationId, PriceTier, CustomerNumber, and CurrencyCode are read automatically from your token’s claims — you don’t need to pass them explicitly.
The response is a paginated result set:
You can filter products by passing a Filters array in the query. Supported filter fields include Sku, Name, and other product attributes. See the API reference for the full filter syntax.
3

Create a cart

Create a new shopping cart for a customer. Pass the customerNumber in the URL path and provide the organizationId in the request body. Your token supplies the organization context automatically.
The response includes the new cart’s ID, which you’ll use in subsequent steps:
4

Add an item

Add a product to the cart by posting to /api/carts/{customerNumber}/{cartId}/items. Use the sku from your product listing and the cart ID returned in the previous step.
The updated cart is returned with the new line item included:
Repeat this step for each additional product you want to add to the cart.
5

Checkout

Convert the cart into an order by calling the complete-checkout endpoint. Provide the payment details and shipping address. Nymble Commerce supports credit card payment at checkout via Authorize.Net and WorldPay.
A successful checkout converts the cart to an order and returns the new order record:
Save the orderId — you can use it to retrieve order details, send confirmation emails, or trigger downstream fulfillment workflows.

What’s next?

You’ve made your first end-to-end Nymble Commerce API flow. From here, explore:
  • Placing an Order — full order workflow including shipping, rep assignment, and order types
  • Authentication — token lifecycle, API keys, roles, and security best practices