Skip to main content
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).
The Lending Application API wraps the merchant lending application lifecycle. There are two surfaces:
  • 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 the SUPER_ADMIN role.
There is no separate partner API key for lending today — partner referral flows (CredibleX) operate against these surfaces with the appropriate credential.

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 by DocumentChecklistService. 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.
Rationale: Shopsadiq-MoR cohorts inherit the Shopsadiq master KYB (light burden); PSP-MoR-direct cohorts add PSP settlement statements (medium); Connect cohorts require the full bank-and-tax pack because the merchant is the regulated entity (heavy).

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:
  1. Submit / update the application on the merchant’s behalf via the merchant-facing surface.
  2. Read application status + per-cohort checklist via GET /lending-application/:id and GET /lending-application/:id/checklist.
  3. Decide — an operator with SUPER_ADMIN posts APPROVED / REJECTED / UNDER_REVIEW via POST /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.