Developersالمطورون

Build financial experiences with Fawry.ابنِ تجارب مالية مع فوري.

RESTful APIs, a full sandbox with test banks and customers, and clear documentation — designed for banks, lenders, fintechs and platforms.واجهات REST، وبيئة تجريبية كاملة ببنوك وعملاء اختباريين، وتوثيق واضح — للبنوك وجهات التمويل والتقنية المالية والمنصات.

Get startedابدأ

From sign-up to first call in minutes.من التسجيل إلى أول طلب خلال دقائق.

01

Create a sandbox accountأنشئ حساب بيئة تجريبية

Register in the Developer Portal and get sandbox credentials instantly.سجّل في بوابة المطورين واحصل على بيانات البيئة التجريبية فوراً.

02

Simulate consentحاكِ الموافقة

Use test customers and mock banks to walk the full consent journey.استخدم عملاء اختباريين وبنوكاً افتراضية لتجربة رحلة الموافقة كاملة.

03

Go live after approvalانتقل للإنتاج بعد الاعتماد

Production access is granted after partner onboarding and SAMA authorization.يُمنح الوصول للإنتاج بعد اعتماد الشريك وحصول فوري على ترخيص ساما.

API referenceمرجع الواجهات

Core endpointsالواجهات الأساسية

Base URL (sandbox): https://sandbox.api.fawryfinancial.com — all requests over TLS 1.2+ with mTLS in production.العنوان الأساسي (تجريبي): https://sandbox.api.fawryfinancial.com — جميع الطلبات عبر TLS 1.2+ مع mTLS في بيئة الإنتاج.

MethodالطريقةEndpointالمسارDescriptionالوصف
POST/v1/oauth/tokenClient credentials token (mTLS)رمز وصول بيانات العميل (mTLS)
POST/v1/consentsCreate a consent requestإنشاء طلب موافقة
GET/v1/consents/{id}Retrieve consent statusاستعلام حالة الموافقة
DELETE/v1/consents/{id}Revoke a consentإلغاء موافقة
GET/v1/accountsList consented accountsعرض الحسابات المصرّح بها
GET/v1/accounts/{id}/balancesAccount balancesأرصدة الحساب
GET/v1/accounts/{id}/transactionsAccount transactionsعمليات الحساب
POST/v1/paymentsInitiate a paymentبدء عملية دفع
GET/v1/payments/{id}Payment statusحالة الدفع
POST/v1/insights/affordabilityAffordability insightsمؤشرات القدرة على السداد
POST/v1/webhooksRegister a webhookتسجيل إشعار ويب
Quickstartبداية سريعة

Create your first consent.أنشئ أول موافقة.

  • OAuth 2.0 client credentials + PKCE for customer redirectsOAuth 2.0 مع PKCE لتوجيه العميل
  • Idempotency keys on all POST requestsمفاتيح عدم التكرار لكل طلبات POST
  • Signed webhooks (HMAC-SHA256)إشعارات موقّعة HMAC-SHA256
  • Versioned APIs with 12-month deprecation noticeواجهات بإصدارات وإشعار إيقاف قبل 12 شهراً
  • Sandbox test banks and test customersبنوك وعملاء اختباريون في البيئة التجريبية
curl -X POST https://sandbox.api.fawryfinancial.com/v1/consents \ -H "Authorization: Bearer $TOKEN" \ -H "Idempotency-Key: 6f1c-..." \ -d '{ "customer_ref": "cust_123", "permissions": ["accounts","balances","transactions"], "purpose": "affordability_check", "expires_in_days": 90, "redirect_uri": "https://partner.app/callback" }' → 201 { "consent_id": "cns_8h2k", "status": "AwaitingAuthorisation", "authorisation_url": "https://sandbox.auth..." }

Status codes & errorsرموز الحالة والأخطاء

CodeMeaningالمعنى
200/201Successنجاح
400Invalid request payloadبيانات طلب غير صالحة
401Missing or invalid tokenرمز وصول مفقود أو غير صالح
403Consent missing, expired or out of scopeموافقة غير موجودة أو منتهية أو خارج النطاق
409Idempotency conflictتعارض في مفتاح عدم التكرار
429Rate limit exceededتجاوز حد الطلبات
5xxUpstream/bank or platform errorخطأ من البنك أو المنصة
Let's buildلنبنِ معاً

Ready to build with Fawry?جاهز للبناء مع فوري؟

Talk to our team about partnerships, sandbox access or integration.تحدّث مع فريقنا عن الشراكات أو الوصول إلى البيئة التجريبية أو التكامل.