Skip to main content
POST

Update Customer Endpoint (2024-09-01)

Update an existing customer’s name, email, is_tax_exempt status, or reference_customer_id. All fields are optional, but at least one must be provided. Only the fields you include are changed; everything else is left as is.
The customer_id path parameter accepts either the Numeral customer ID (cust_xxx) or your own reference_customer_id. No id_type query parameter is needed.

Behavior

  • email and reference_customer_id must be unique across your customers. If another customer already uses the new value, the request fails with duplicate_customer. The conflicting customer’s id, reference_customer_id, and email are returned in error_meta.
  • email must be a valid email address, otherwise the request fails with invalid_email.
  • Setting is_tax_exempt to true means all future POST /tax/calculations for this customer return $0 in tax owed. Setting it to false removes the exemption.
  • If every provided value matches what is already stored, nothing is written and the current customer is returned with a 200.
  • Deleted customers cannot be updated. The request fails with customer_not_found.
  • If the customer’s buyer record has been deleted in Numeral’s Exemption Certificate Manager, setting is_tax_exempt to true is rejected with invalid_request.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string
required

The Numeral customer ID (cust_xxx) or your reference_customer_id. Either identifier is accepted; no id_type query parameter is needed.

Body

application/json

Request body for updating a customer. All fields are optional, but at least one must be provided.

name
string

The customer's name

Example:

"New Customer Name"

email
string

The customer's email. Must be unique across your customers.

Example:

"new.email@example.com"

is_tax_exempt
boolean

If true, all POST /tax/calculations sold to this customer will return $0 in tax owed.

Example:

true

reference_customer_id
string

The ID of the customer in your system. Must be unique across your customers.

Example:

"20507"

Response

The updated customer

id
string

The ID of the customer

Example:

"cus_123456789"

object
string

The type of object: tax.customer

Example:

"tax.customer"

reference_customer_id
string

The ID of the customer in your system

Example:

"20506"

name
string

The name of the created customer

Example:

"Customer Name"

email
string

The email of the created customer

Example:

"customer@example.com"

is_tax_exempt
boolean

If true, all POST /tax/calculations sold to this customer will return $0 in tax owed. The default value is false.

Example:

true