Create an end user
{ "kyc": <complete partner_end_user_kyc_v1 record> }. A create
is complete, not a patch. AgentBank generates and returns end_user_id.
Never send an end_user_id, merchant_kyc_reference, or provider user ID.
Required KYC structure
Allowed values:
person.gender:male,female,other, orunspecifiedidentity_document.type:national_id,passport, orwork_permit- country fields: ISO 3166-1 alpha-2 uppercase codes
- phone: E.164 format
document_front, document_back, and selfie_with_document accept
supported image formats; kyc_report_pdf is application/pdf. AgentBank
verifies the content hash, stores the bytes privately, binds them atomically to
the immutable KYC version, and forwards provider-ready KYC downstream as
needed. There is no separate artifact-upload API.
Create response
The Create end user reference contains the complete request and response example. Save its generatedend_user_id
and current kyc_version; use Rail readiness to decide
when that end user can make a payment.
Raw KYC, document numbers, and artifact bytes are never returned.
Update KYC
null and unknown fields are
rejected. An artifact update uses the same inline artifact object as create.
Read the latest end-user record before updating and use its kyc_version as
base_kyc_version. A successful change produces a new immutable version and
may return the end user to provider processing while rail readiness is refreshed.

