Country:
/customers
Create Customer
Create a new customer profile
Customer email address
example
name
Customer full name
example
phone
Customer phone number
example
address
Customer billing address
Response Examples
200
Customer created successfully
{
"id": "cust_1234567890",
"email": "customer@example.com",
"name": "John Doe",
"phone": "+1234567890",
"address": {
"street": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US"
},
"created": 1647875400
}400
Invalid customer data
{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "Invalid email address format",
"param": "email"
}
}500
Internal server error
{
"error": {
"type": "api_error",
"message": "An unexpected error occurred. Please try again later."
}
}Language
Login required to test API
Code Examples
cURL
curl -X POST "https://api.akua.la/customers" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "customer@example.com",
"name": "John Doe",
"phone": "+1234567890",
"address": {
"street": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US"
}
}''