Reference
//
Create a customer
Creates a new customer.
- regular: only
nameis required.email,phone,address,taxPinandpersonare optional. - walkIn: only
typeis required. Name is auto-set to "WalkIn" and all other fields are null. Only one Walk-In customer is allowed per business at a time (active OR archived).
Security
oauth2ClientCredentials(Required scopes: customers:write)
Customer type. "walkIn" auto-sets name to "WalkIn" and nulls all other fields. "regular" requires name and taxPin.
Enum:"regular""walkIn"
Example:"regular"
Customer name. Required when type is regular; ignored for walkIn (auto-set to "WalkIn").
Example:"Acme Corp"
Array of person identifiers associated with this customer.
Example:
[ "person-001", "person-002" ]
- Mock serverhttps://developer.boyahq.com/_mock/v2/openapi/customers
- Productionhttps://api.boyahq.com/v2/customers
- Sandboxhttps://sandbox.api.boyahq.com/v2/customers
- Regular customer (only name is required; everything else is optional)
- Walk-In customer (type only required)
curl -i -X POST \
https://developer.boyahq.com/_mock/v2/openapi/customers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'business_id: string' \
-d '{
"type": "regular",
"name": "Acme Corp",
"taxPin": "A123456789Z",
"email": "billing@acme.com",
"phone": "+254700000000",
"address": "123 Main Street, Nairobi",
"person": []
}'