curl -X POST 'https://api.yativo.com/api/v1/customer' \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'X-Api-Secret: YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: create-customer-alex-smith-001' \
-d '{
"customer_name": "Alex Smith",
"customer_email": "alex.smith@example.com",
"customer_phone": "+15551234567",
"customer_country": "USA",
"customer_type": "individual"
}'
{
"status": "success",
"status_code": 201,
"message": "Customer created successfully",
"data": {
"id": 1,
"customer_id": "11111111-2222-4333-8444-555555555555",
"customer_name": "Alex Smith",
"customer_email": "alex.smith@example.com",
"customer_phone": "+15551234567",
"customer_country": "USA",
"customer_type": "individual",
"customer_status": "active",
"created_at": "2026-04-02T10:00:00.000000Z",
"updated_at": "2026-04-02T10:00:00.000000Z"
}
}
{
"status": "failed",
"status_code": 422,
"message": "Request failed.",
"data": {
"customer_email": ["The customer email has already been taken."]
}
}
Customers
Create Customer
Create a new customer profile for an individual or business
POST
/
customer
curl -X POST 'https://api.yativo.com/api/v1/customer' \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'X-Api-Secret: YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: create-customer-alex-smith-001' \
-d '{
"customer_name": "Alex Smith",
"customer_email": "alex.smith@example.com",
"customer_phone": "+15551234567",
"customer_country": "USA",
"customer_type": "individual"
}'
{
"status": "success",
"status_code": 201,
"message": "Customer created successfully",
"data": {
"id": 1,
"customer_id": "11111111-2222-4333-8444-555555555555",
"customer_name": "Alex Smith",
"customer_email": "alex.smith@example.com",
"customer_phone": "+15551234567",
"customer_country": "USA",
"customer_type": "individual",
"customer_status": "active",
"created_at": "2026-04-02T10:00:00.000000Z",
"updated_at": "2026-04-02T10:00:00.000000Z"
}
}
{
"status": "failed",
"status_code": 422,
"message": "Request failed.",
"data": {
"customer_email": ["The customer email has already been taken."]
}
}
Create a customer record before initiating any KYC verification or payments for that customer.
POST /customer
Requires an
Idempotency-Key header.curl -X POST 'https://api.yativo.com/api/v1/customer' \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'X-Api-Secret: YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: create-customer-alex-smith-001' \
-d '{
"customer_name": "Alex Smith",
"customer_email": "alex.smith@example.com",
"customer_phone": "+15551234567",
"customer_country": "USA",
"customer_type": "individual"
}'
{
"status": "success",
"status_code": 201,
"message": "Customer created successfully",
"data": {
"id": 1,
"customer_id": "11111111-2222-4333-8444-555555555555",
"customer_name": "Alex Smith",
"customer_email": "alex.smith@example.com",
"customer_phone": "+15551234567",
"customer_country": "USA",
"customer_type": "individual",
"customer_status": "active",
"created_at": "2026-04-02T10:00:00.000000Z",
"updated_at": "2026-04-02T10:00:00.000000Z"
}
}
{
"status": "failed",
"status_code": 422,
"message": "Request failed.",
"data": {
"customer_email": ["The customer email has already been taken."]
}
}
Authorizations
Body
application/json