A customer is one of your buyers. Create one to keep track of repeat purchases, or to mark a buyer as tax exempt. Exempt buyers are often wholesalers, religious groups, or educational institutions. Pass the customer on a calculation as
customer.id.Where customers fit
The Customer object
Attributes
Your ID for the customer. Unique across your customers. You can use it instead of
id to refer to the customer.The Customer object
Use a customer in a calculation
Send the customer’sid or your reference_customer_id as customer.id on a calculation.For a tax-exempt customer, the calculation returns no tax: tax_amount is 0 on every line, and total_tax_amount is 0.POST /tax/calculations
Create a customer
Creates a customer. Onlyemail is required. Try it in the API reference.The response has a Numeral id. If you sent a reference_customer_id, you can use either one to refer to the customer later.Parameters
Returns
A Customer object.POST /tax/customers
Response
Update a customer
Updates a customer’sname, email, is_tax_exempt, or reference_customer_id. Send at least one. Fields you leave out stay as they are. Try it in the API reference.emailandreference_customer_idmust be unique across your customers. If another customer already uses the new value, the request fails withDUPLICATE_CUSTOMER.emailmust be a valid email address, or the request fails withINVALID_EMAIL.- Setting
is_tax_exempttotruemakes every future calculation for this customer return 0 tax. Setting it tofalseremoves the exemption. - If every value you send matches what’s stored, nothing changes and the current customer is returned with a
200. - Deleted customers can’t be updated. The request fails with
CUSTOMER_NOT_FOUND. - If the customer’s buyer record was deleted in Numeral’s Exemption Certificate Manager, setting
is_tax_exempttotruefails withINVALID_REQUEST.
Parameters
Returns
The updated Customer object.Response
Retrieve a customer
Returns a customer by itsid or your reference_customer_id. Try it in the API reference.id to look up by the Numeral customer ID. reference_customer_id to look up by your own ID.Returns
A Customer object.GET /tax/customers/:id
Delete a customer
Deletes a customer. Deleted customers can’t be updated. Try it in the API reference.Returns
The deleted object type and when it was deleted.DELETE /tax/customers/:id
Response