Four steps to your first transaction

  1. Get a TEST API key from your Numeral Dashboard
  2. Create a product with a POST to /tax/products
  3. Query a tax calculation with a POST to /tax/calculations
  4. Record a transaction with a POST to /tax/transactions

1. Get your API credentials

First, you need to create an key to access our API.

  • Log into your Numeral developer dashboard
  • Under the “API Keys” tab in your top ribbon, select the “Create API Key” button
  • In the pop-up, ensure the toggle is set to “test,” and push “Create API Key”

Copy that API key for use through this guide.

2. Get tax information through a calculation

Next, we’ll get tax information for a product sale.

This example request represents a $20 sale shipped to an address in California.

  • Add the API key from step 1 to the below cURL snippet where it reads <token>.
  • Paste it into your terminal and execute the cURL request
  • Take note of the response, especially the total_tax_amount, which you can find as the last field in the payload.
  • Also, grab the id from the response. It’s the first attribute returned, and we’ll use it to record a transaction.

You can also find the complete calculation request and response in your developer dashboard under the Logs tab. If your calculation isn’t showing up, make sure Test Mode in the top right is toggled on.

3. Record a completed transaction

Once you’ve queried a calculation for tax information, you can record that calculation as a successful and completed sale. In production, Numeral will use these recorded transactions complete your tax filings and monitor your nexus exposure.

  • Add your API key to the below snippet
  • Replace <your_calculation_id> with the calculation id you grabbed in step 2.
  • execute the cURL request

You’ll then be able to see the transaction populate in the dashboard’s Transactions tab. Make sure your filters and Test Mode toggle are set correctly.

With that, you’ve walked through the core sales flow to collect and remit sales tax with Numeral.

When you’re ready to integrate further, check out our integration guides to learn more about creating products, managing exempt customers, processing refunds, and more.