Royal Holding · Device Financing
Backend mobile (Next.js)
L'app mobile consomme ces routes. Le back-office métier vit dans Directus. Valider / rejeter une demande dans Directus déclenche les automatismes Next.js.
GET/api/healthSanté DirectusPOST/api/auth/otp/requestOTP SMS (body: { phone })POST/api/auth/otp/verifyVérifier OTP (body: { phone, code })GET/api/meProfil + soldeGET / PATCH / POST/api/kycDossier KYC (identité + CNI)POST/api/kyc/documentsPhotos CNI recto / versoGET/api/catalogCatalogue publiéGET/api/catalog/:idFiche modèleGET/api/pickup-pointsPoints de retraitGET/api/media/:idImage catalogue (proxy Directus)GET / POST/api/applicationsDemandes de financementGET/api/applications/:idDossier + échéancierGET / POST/api/walletSolde / rechargement MoMo (PawaPay)GET/api/payments/providersMTN / Orange CamerounPOST/api/payments/predictPrédire l'opérateur (MSISDN)POST/api/paymentsAcompte, échéance, solde (wallet ou MoMo)GET/api/payments/:idStatut d'un paiement (poll PawaPay)GET/api/notificationsNotifications clientPOST/api/internal/directusWebhook back-office (secret)POST/api/internal/pawapayCallback PawaPay (dépôts MoMo)GET / POST/api/internal/paytriggerLicence / retry PayTrigger (secret)