Skip to main content
POST
/
v1
/
kyc
/
customers
Upsert a customer
curl --request POST \
  --url https://{baasHost}/api/v1/kyc/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "legalName": "Jane Doe",
  "type": "PERSON",
  "mobile": "+255700000000",
  "email": "jane@example.com",
  "dob": "1995-01-10",
  "nationalId": "NID12345"
}
'
{
  "customerId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
  "legalName": "Jane Doe",
  "type": "PERSON"
}

Authorizations

Authorization
string
header
required

Bearer token from POST /generate-token. Expires ~1h; on 401, re-generate and retry once.

Body

application/json
type
enum<string>
required
Available options:
PERSON,
BUSINESS
customerId
string<uuid>

Omit to create; include to update.

mobile
string
email
string<email>
dob
string

yyyy-MM-dd

nationalId
string
address
object

Response

Customer upserted