Customers
Use the customers
object are to manage your customers and exemptions
The customers
object is used to represent one of your customers.
When to create Customers
You can create customers when you want to keep track of repeat purchases and traffic.
Additionally, you’ll need to create a customer when you want to indicate their purchases as tax exempt. Most often, this comes up if you’re selling to wholesalers, religious groups, or educational institutions.
How to create Customers
To create a customer, the minimum you’ll need is an email
. You can also add a name
and a reference_customer_id
. If you add your own reference ID, you’ll be able to pass that in for future references to the customer. In either case, we’ll also give you back a customer_id
that you can use.
You also have to option to mark the customer as tax exempt with the is_tax_exempt
field. Let’s look at an example.
Here, you’ve created a tax exempt customer and passed in a reference_customer_id
.
We’ll respond with something that looks like
Take note that we’ve returned your reference_customer_id
in addition to another, unique id
that references the customer in the Numeral system. You’ll be able to use either when referring to the customer in the future.
Later, when you’re asking for a tax rate calculation,
you’ll be able to pass in either of the id
that Numeral created or the reference_customer_id
that you passed in. In either case, for this customer, we’ll return a payload indicating that no tax should be charged, since you marked them as tax exempt.
Here’s an example:
Note that we’ve passed in the reference_customer_id
under the customer.id
field. You could also pass in the id
we saw above.
Below, you’ll get a calculation response indicating that the customer was tax exempt. See the note
indicating that the exemption was a result of the customer being exempt. It’ll look something like this:
Further documentation
The full documentation for creating customers is on this page.