Skip to main content
POST
Create a customer

Request Body

Address Object

Example Request

Response

Errors

See Errors for the error envelope and the full code taxonomy.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Body

application/json
email
string<email>
required
name
string
required
phone
string
tax_id
string
gstin
string

Indian GST identification number (B2B customers).

tax_type
enum<string>
Available options:
business,
consumer
place_of_supply
string

Indian state code for GST place of supply.

tax_exempt
boolean

US sales-tax exemption status (D2). When true, the number and code are passed to the tax provider.

tax_exemption_number
string

Exemption/resale certificate number on file.

tax_exemption_code
string

Provider entity-use / customer-usage code (e.g. Avalara "A"); also the exemption reason.

tax_exemption_expires_at
string<date> | null

Exemption certificate expiry (YYYY-MM-DD). Honored through this date; past it the buyer is charged tax again. Null = no expiry on file (Inc 2).

line1
string
city
string
state
string
zip
string
country
string

ISO 3166-1 alpha-2 code.

Required string length: 2
billing_address
object

Nested address, accepted as an alias for the flat line1/city/state/ zip/country fields. A flat field wins when both are supplied; postal_code and zip are synonyms.

Response

Customer created.

data
object