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.

id
string<uuid>
tenant_id
string<uuid>
email
string<email>
name
string | null
phone
string
tax_id
string | null
billing_address
object
ledger_account_id
string<uuid>
gstin
string | null
tax_type
string
place_of_supply
string | null
tax_exempt
boolean
tax_exemption_number
string
tax_exemption_code
string
tax_exemption_expires_at
string<date> | null
referral_code
string | null
risk_score
integer
Required range: 0 <= x <= 100
risk_factors
object | null
card_brand
string
card_last4
string
card_exp_month
integer
card_exp_year
integer
card_token_id
string
card_fingerprint
string
created_at
string<date-time>