Create a customer

Create a customer under your account. Optionally assign the customer to a merchant group on creation with merchantGroupId. Send a unique Idempotency-Key header so the request can be safely retried.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≤ 255
string
required
length ≤ 255
string
length ≤ 255
string
required
length ≤ 255
string
required
length ≤ 15
^\+[1-9][0-9]{1,14}$
string
required
^[0-9]{2}/[0-9]{2}/[0-9]{4}$
string
required
length ≤ 255

Street address of the customer's residential address.

string
length ≤ 255

Unit, level or building, if any. Optional.

string
required
length ≤ 255

Suburb, town or city.

string
required
length ≤ 20

Postal code.

string
required
length ≤ 100

State or province. Pre-fills the State field in the identity verification form, where the customer can't edit it. For Australian addresses use the state abbreviation: ACT, NSW, NT, QLD, SA, TAS, VIC or WA (full names such as "Victoria" are not recognised). For other countries, use the name as it appears in the address.

string
required
^[A-Za-z]{3}$

ISO 3166-1 alpha-3 country code, e.g. AUS, NZL, PAK. Case-insensitive (stored in uppercase). Only the 3-letter format is checked, so a typo such as AUT (Austria) is accepted but verifies against the wrong country.

string
length ≤ 255

Required for every companyType except INDIVIDUAL.

string
enum
required
Allowed:
string
length ≤ 255

Required when companyType is PRIVATE_COMPANY, PUBLIC_COMPANY, or TRUST.

string
length ≤ 255

Optional. Defaults to your company's active default merchant group when omitted.

Headers
string
required

Unique key for this request, exactly 32 characters. Reusing a key with a different body, or while the first request is still in flight, returns 409.

string
required
Responses

401

The supplied Bearer token was rejected: malformed, bad signature, wrong audience, or expired. The Authorization header is required and checked at the gateway, so an absent header returns 400, not 401. Re-authenticate at POST /auth/token, or at the legacy POST /mfa/login.

403

Insufficient token scope, client certificate/source IP not allowed, or the merchant group belongs to another company

404

Merchant group not found

409

A customer with this email already exists for your company, or the Idempotency-Key was reused for a different request or is still in progress

500

Internal server error

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json