Create a customer

POST
/v1/customers

A customer is someone you sell to. Pass its id when ordering to keep track of who has what.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Request Body

application/json
  1. body
email*string
Formatemail
Lengthlength <= 254
name?string
Lengthlength <= 200
externalId?string

Your own reference for this customer

Lengthlength <= 200
addressLines?array<>

Printed under the customer name on their invoices, line by line. At most 4 lines

Itemsitems <= 4
taxId?string

Printed on this customer's invoices

Length1 <= length <= 40
priceListId?string

The list this customer is charged from. Unset, your default list

Response Body

Created

application/json
  1. response

Created

id*string
email*string
name*string|null
externalId*|

Your own reference for this customer

priceListId*|

The price list this customer is charged from; null is your default list

contractRules*integer

How many prices are agreed with this customer alone, beating their price list

addressLines*array<string>

Printed under the customer name on their invoices, line by line

taxId*|

Printed on this customer's invoices

registrant*|

The registrant a domain ordered for this customer falls back to, absent a per-order one, ahead of your account's default. Null until set

createdAt*string

ISO 8601 timestamp

Formatdate-time
curl -X POST "https://example.com/v1/customers" \  -H "Content-Type: application/json" \  -d '{    "email": "jo@northwind.example"  }'
{  "id": "cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "email": "jo@northwind.example",  "name": "Jo Bloggs",  "externalId": "crm-1042",  "priceListId": null,  "contractRules": 2,  "addressLines": [    "1 Market Street",    "San Francisco, CA 94105"  ],  "taxId": "12-3456789",  "registrant": {    "name": "Jo Bloggs",    "organization": "Northwind Telecom",    "email": "jo@northwind.example",    "phone": "+1 415 555 0132",    "address": "1 Market Street",    "city": "San Francisco",    "state": "CA",    "postalCode": "94105",    "country": "US",    "validation": "pending"  },  "createdAt": "2026-10-07T11:04:31.000Z"}