BETA. The Lending Application API powers the merchant-facing application UX and the operator/lender review surface. The whole surface is gated by the
LENDING_PLATFORM_ENABLED server flag — every route returns 404 when it is off. CredibleX is the first Tier-1 referral partner (UAE corridor).- A merchant-facing surface at
/lending-application/*, authenticated with the merchant’s JWT (the standard Droplinked auth token), ownership-checked at the service layer. - An operator/lender review surface at
/admin/lending-application/*, authenticated with a JWT carrying theSUPER_ADMINrole.
The state machine
(Full enum:
DRAFT, SUBMITTED, UNDER_REVIEW, APPROVED, REJECTED, WITHDRAWN,
DISBURSED.)
KYB cohorts (11)
A merchant’s application is keyed by their KYB cohort, which drives the document checklist and lending-tier eligibility. The cohort enum (KybCohort) has 11 values:
A_MOR_SHOPSADIQ_VIA_TELR, A_MOR_SHOPSADIQ_VIA_BONUM, A_MOR_TELR_DIRECT,
A_MOR_BONUM_DIRECT, A_CONNECT_TELR, A_CONNECT_BONUM, A_CONNECT_STRIPE,
A_CONNECT_PAYPAL, A_CONNECT_PAYMOB, B_SUMSUB_FALLBACK, C_MANUAL_OPERATOR.
(The taxonomy is described in detail in KYB cohorts.)
Per-cohort doc checklist
The checklist is derived from the merchant’s cohort byDocumentChecklistService. It groups
into three burdens:
When the selected Tier-1 partner is CredibleX, an
adgm_stamped_certificate item is
appended to the checklist if the base cohort didn’t already require it.Lending tiers
Application tier (LendingApplicationTier): TIER_1_REFERRAL, TIER_2_REFERRAL,
TIER_3_VAULT. Tier-1 partners (Tier1Partner enum): CredibleX, CBI, RAKBank, Mbank.
CredibleX referral model
CredibleX is the Tier-1 UAE-corridor lender. The referral flow:- Submit / update the application on the merchant’s behalf via the merchant-facing surface.
- Read application status + per-cohort checklist via
GET /lending-application/:idandGET /lending-application/:id/checklist. - Decide — an operator with
SUPER_ADMINpostsAPPROVED/REJECTED/UNDER_REVIEWviaPOST /admin/lending-application/:id/decision.
Auth
Several merchant-facing write routes are additionally KYB-gated (
@KybGated()) — the merchant
must have an approved KYB record to create/update/submit/withdraw.
Base paths
Next: endpoints
Create, patch, submit, decide — request / response shapes.