For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add Customer

Creates a new customer with the provided details. Returns the newly created customer object with system-generated IDs and default balances.

Endpoint

POST/v2/customer

Link

Request

Headers

Key
Value
Required

Authorization

Bearer <JWT>

Yes

Content-Type

application/json

Yes

Accept

application/json

Yes

Request Body (JSON)

Field
Type
Description & Requirements
Required
Example

name

string

First name (individual) or Company name (corporate).

Yes

"John" or "Acme Inc."

lastname

string

Last name (individuals only).

No

"Doe"

comment

string

Internal notes/comments.

No

"VIP client"

company

string

Company name (if corporate).

No

"Acme Corporation"

type

string

Customer type: - CORPORATE: Business entity - INDIVIDUAL: Person

No

"INDIVIDUAL"

Example Request Body (Individual):

json

Example Request Body (Corporate):

json


Response (200 OK)

Returns the created customer object with system-generated fields.

Response Fields

Field
Type
Description
Example

cuid

string

System-generated customer ID.

"DqCsgSE-4e95-ViYbNI"

puid

string

Partner/user ID.

"127c9ea7-3ea7-4063-9fa4-c69e796c55e4"

status

string

Initial status: NEW.

"NEW"

createAt

string

Creation timestamp (ISO 8601).

"2024-05-20T10:30:00Z"

updateAt

string

Update timestamp (ISO 8601).

"2024-05-20T10:30:00Z"

name

string

Name from request.

"John"

lastname

string

Last name from request.

"Doe"

comment

string

Comment from request.

"Premium customer"

company

string

Company name from request.

""

type

string

Customer type from request.

"INDIVIDUAL"

balance

object

Initial balance (0, in default currency).

-

balanceHold

object

Initial held balance (0).

-

Money Object (for balances)

Field
Type
Description
Example

currencyCode

string

Currency code.

"USD"

units

string

Whole units.

"0"

nanos

integer

Fractional units.

0

Example Response:

json


Examples

Request (Corporate Customer)

bash


Error Responses

  1. Missing Required Field:

    json

  2. Invalid Type:

    json

  3. Duplicate Customer:

    json


Notes

  • Default Values:

    • status defaults to NEW

    • type defaults to CORPORATE if not specified

    • Balances initialize to 0 in system default currency

  • Next Steps:

    • New customers typically require verification (MODERATED → ACCEPTED)

    • Add accounts via /v2/account endpoint

Real request Example

Real response example

200 OK

Last updated