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
Authorization
Bearer <JWT>
Yes
Content-Type
application/json
Yes
Accept
application/json
Yes
Request Body (JSON)
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
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)
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
Missing Required Field:
json
Invalid Type:
json
Duplicate Customer:
json
Notes
Default Values:
statusdefaults toNEWtypedefaults toCORPORATEif not specifiedBalances initialize to
0in system default currency
Next Steps:
New customers typically require verification (
MODERATED→ACCEPTED)Add accounts via
/v2/accountendpoint
Real request Example
Real response example
200 OK
Last updated

