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 anemail. 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.
cURL
reference_customer_id.
We’ll respond with something that looks like
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.
note indicating that the exemption was a result of the customer being exempt. It’ll look something like this: