Payment Processing Lifecycleدورة حياة معالجة الدفع
Chapter 01 named the seven stages. This chapter is the operational version: the messages, fields, response codes, timers, cut-offs, files, matching keys and exception procedures that turn "authorise → clear → settle → reconcile" into something a team can run at 06:30 on a Sunday — across mada, SARIE, SARIE IPS, SADAD and a Mudad payroll file.سمّى الفصل 01 المراحل السبع. هذا الفصل هو النسخة التشغيلية: الرسائل والحقول ورموز الاستجابة والمؤقتات وأوقات الإقفال والملفات ومفاتيح المطابقة وإجراءات الاستثناءات التي تحوّل «تفويض ← مقاصة ← تسوية ← مطابقة» إلى شيء يستطيع فريق تشغيله في 06:30 صباح الأحد — عبر مدى وسريع وسريع الفوري وسداد وملف رواتب مُدد.
Learning objectivesأهداف التعلّم
- Model any payment as a state machine with events, timers and owners.نمذجة أي دفعة كآلة حالات بأحداث ومؤقتات ومسؤولين.
- Read an ISO 8583 authorisation and an ISO 20022 credit transfer: the fields that matter and the response/reason codes.قراءة تفويض ISO 8583 وتحويل دائن ISO 20022: الحقول المهمة ورموز الاستجابة/السبب.
- Explain issuer decisioning order, 3-D Secure 2, holds, partial approvals and authorisation expiry.شرح ترتيب قرارات المُصدر، و3-D Secure 2، والحجوزات، والموافقات الجزئية، وانتهاء التفويض.
- Describe capture and clearing files, settlement cycles, SARIE cut-offs, and the working-week differences between the Kingdom and its corridors.وصف ملفات القبض والمقاصة، ودورات التسوية، وأوقات إقفال سريع، وفروق أسابيع العمل بين المملكة وممراتها.
- Design a three-way reconciliation: sources, keys, tolerances, break categories, ageing and sign-off.تصميم مطابقة ثلاثية: المصادر، المفاتيح، التسامحات، فئات الفروقات، الأعمار والاعتماد.
- Handle exceptions correctly: reversal, void, refund, return, recall, chargeback, timeout, duplicate.معالجة الاستثناءات بشكل صحيح: العكس، الإلغاء، الاسترداد، الإرجاع، الاسترجاع، النزاع، انتهاء المهلة، التكرار.
- Measure processing health with a KPI set and write a runbook for the failures that recur.قياس صحة المعالجة بمجموعة مؤشرات وكتابة دليل تشغيل للأعطال المتكررة.
- Log the right identifiers (and never the PAN) so every transaction can be found in every system.تسجيل المعرّفات الصحيحة (وأبداً لا رقم البطاقة) بحيث يمكن العثور على كل معاملة في كل نظام.
A payment is a state machineالدفعة آلة حالات
Eventsالأحداث
Messages and files move the state: 0100/0110 (auth), 0400 (reversal), clearing record, settlement confirmation, pacs.008/002/004, camt.056. Each event has a source system and an identifier.تنقل الرسائل والملفات الحالة: 0100/0110 (تفويض)، 0400 (عكس)، سجل المقاصة، تأكيد التسوية، pacs.008/002/004، camt.056. لكل حدث نظام مصدر ومعرّف.
Timersالمؤقتات
Auth timeout (seconds), hold expiry (days), clearing window (days), dispute window (up to ~120 days), recall window, statute of limitations. Every timer is a rule you must implement and a report you must run.مهلة التفويض (ثوانٍ)، انتهاء الحجز (أيام)، نافذة المقاصة (أيام)، نافذة النزاع (حتى نحو 120 يوماً)، نافذة الاسترجاع، مدة التقادم. كل مؤقت قاعدة يجب تنفيذها وتقرير يجب تشغيله.
Ownersالمسؤولون
Who may trigger each transition: the terminal, the issuer, the scheme, ops staff (with maker-checker), the customer (dispute), the regulator (freeze). Permissions are part of the model, not an afterthought.من يحق له إطلاق كل انتقال: الجهاز، المُصدر، الشبكة، موظفو العمليات (صانع-مراجع)، العميل (نزاع)، الجهة التنظيمية (تجميد). الصلاحيات جزء من النموذج لا فكرة لاحقة.
Initiation: what a good request containsالبدء: ما الذي يحتويه الطلب الجيد
Rules for initiationقواعد البدء
- Generate the identifiers before sending (STAN, RRN or EndToEndId) and store them with the intent — that is your idempotency key.ولّد المعرّفات قبل الإرسال (STAN، RRN أو EndToEndId) وخزّنها مع النية — هذا مفتاح عدم التكرار لديك.
- Amount in minor units and ISO 4217 code; currency must match the terminal/merchant configuration.المبلغ بالوحدات الصغرى ورمز ISO 4217؛ ويجب أن تطابق العملة إعداد الجهاز/التاجر.
- Entry mode, MCC and terminal/merchant IDs are not cosmetics: they decide interchange, risk and liability.طريقة الإدخال ورمز الفئة ومعرّفا الجهاز/التاجر ليست زخارف: تحدد رسوم التبادل والمخاطر والمسؤولية.
- Time-stamps: record both local and UTC; every regional reconciliation break involving midnight comes from this.الطوابع الزمنية: سجّل المحلي والعالمي معاً؛ كل فرق مطابقة إقليمي متعلق بمنتصف الليل يأتي من هنا.
Account-rail equivalent (ISO 20022 pacs.008)المكافئ في أنظمة الحسابات (ISO 20022 pacs.008)
MsgId (file/message), InstrId (instruction), EndToEndId (survives the whole chain, chosen by the initiator), TxId (assigned by the bank), UETR (unique end-to-end reference, mandatory in SWIFT gpi), Debtor/Creditor with IBANs, remittance information (invoice numbers — the data that makes reconciliation automatic), purpose code, requested execution date.MsgId (الملف/الرسالة)، InstrId (التعليمة)، EndToEndId (يبقى عبر السلسلة كلها، يختاره المُبادر)، TxId (يعيّنه البنك)، UETR (مرجع فريد من طرف إلى طرف، إلزامي في سويفت gpi)، الدافع/المستفيد مع IBAN، معلومات السداد (أرقام الفواتير — البيانات التي تجعل المطابقة آلية)، رمز الغرض، تاريخ التنفيذ المطلوب.
Authentication: proving it is really the payerالمصادقة: إثبات أنه الدافع فعلاً
| Channelالقناة | Method (CVM)الطريقة | Who decidesمن يقرر | Saudi specificsخصوصيات سعودية |
|---|---|---|---|
| POS chipشريحة نقاط البيع | Online PIN (verified by issuer) or offline PIN (verified by chip)رقم سري عبر الشبكة (يتحقق منه المُصدر) أو دون اتصال (تتحقق منه الشريحة) | Terminal + card CVM listالجهاز + قائمة التحقق في البطاقة | mada mandates PIN for chip transactions; signature effectively retiredتلزم مدى بالرقم السري لمعاملات الشريحة؛ والتوقيع أُلغي فعلياً |
| Contactlessاللاتلامسي | No CVM below limit; PIN or consumer-device CVM (Face ID) aboveدون تحقق تحت الحد؛ رقم سري أو تحقق على جهاز المستهلك (بصمة الوجه) فوقه | Scheme/regulator limitحد الشبكة/الجهة التنظيمية | Limits raised since 2020; cumulative-count rules force a PIN periodicallyرُفعت الحدود منذ 2020؛ وتفرض قواعد العدد التراكمي رقماً سرياً دورياً |
| E-commerceالتجارة الإلكترونية | 3-D Secure 2: frictionless or challenge (OTP, app push, biometrics)3-D Secure 2: دون احتكاك أو تحدٍّ (رمز لمرة واحدة، إشعار التطبيق، قياسات حيوية) | Issuer ACS, within scheme rulesخادم التحكم لدى المُصدر، ضمن قواعد الشبكة | Mandatory for domestic e-commerce (mada online); exemptions for low value, recurring, trusted merchantsإلزامي للتجارة الإلكترونية المحلية (مدى أونلاين)؛ إعفاءات للقيم المنخفضة والمتكرر والتجار الموثوقين |
| Bank / wallet app (A2A)تطبيق البنك / المحفظة | Device binding + biometrics + Nafath national identity + transaction signingربط الجهاز + قياسات حيوية + الهوية الوطنية عبر نفاذ + توقيع المعاملة | Bank / wallet, under regulator SCA rulesالبنك / المحفظة، وفق قواعد المصادقة القوية للجهة التنظيمية | Step-up on new payee, high value, new device; OTP over SMS being replaced by app-based approvalتصعيد عند مستفيد جديد أو قيمة عالية أو جهاز جديد؛ ويُستبدل الرمز عبر الرسائل النصية بالموافقة عبر التطبيق |
| Batch / corporateالدفعات / الشركات | Maker-checker, digital signatures, dual approval thresholdsصانع-مراجع، توقيعات رقمية، عتبات موافقة مزدوجة | Bank's corporate channelقناة الشركات في البنك | Approval matrices are a common audit findingمصفوفات الموافقة ملاحظة تدقيق شائعة |
Authorisation I — the issuer's decision, in orderالتفويض 1 — قرار المُصدر بالترتيب
| DE39 codeرمز DE39 | Meaningالمعنى | What the customer should seeما ينبغي أن يراه العميل |
|---|---|---|
00 | Approvedموافقة | Approvedتمت الموافقة |
05 | Do not honour (generic issuer decline — often risk rules)لا تُقبل (رفض عام من المُصدر — غالباً قواعد المخاطر) | "Contact your bank" — never the reason«تواصل مع بنكك» — لا السبب أبداً |
51 | Insufficient fundsرصيد غير كافٍ | Insufficient fundsرصيد غير كافٍ |
54 | Expired cardبطاقة منتهية | Card expiredانتهت صلاحية البطاقة |
55 | Incorrect PINرقم سري خاطئ | Incorrect PIN (attempts remaining)رقم سري خاطئ (محاولات متبقية) |
61 | Exceeds amount limitتجاوز حد المبلغ | Limit exceededتم تجاوز الحد |
65 | Exceeds frequency limitتجاوز حد التكرار | Limit exceededتم تجاوز الحد |
91 / 96 | Issuer unavailable / system errorالمُصدر غير متاح / خطأ في النظام | Try again — an availability incident, not the customer's faultحاول مجدداً — حادث إتاحة لا خطأ من العميل |
Holdsالحجوزات
An approval reserves the amount against available balance; it is not a posting. Holds expire (scheme rules: typically 7 days retail, up to 30 for hotels/car rental) if no clearing arrives. Customers complain about "money taken twice" when a hold and a posting coexist — a customer-care script and a clear app label solve most of it.تحجز الموافقة المبلغ من الرصيد المتاح؛ وليست قيداً. تنتهي الحجوزات (قواعد الشبكة: عادةً 7 أيام للتجزئة، وحتى 30 للفنادق/تأجير السيارات) إذا لم تصل المقاصة. يشتكي العملاء من «خصم المال مرتين» عند وجود حجز وقيد معاً — ويحل نص خدمة العملاء وتسمية واضحة في التطبيق معظم ذلك.
Partial approvalالموافقة الجزئية
For prepaid and debit, the issuer may approve part of the amount (DE39 = 10) if the terminal supports it; the cashier collects the rest another way. Product teams must decide whether to support it — and test it.للبطاقات مسبقة الدفع والخصم، قد يوافق المُصدر على جزء من المبلغ (DE39 = 10) إذا كان الجهاز يدعم ذلك؛ ويحصّل الكاشير الباقي بطريقة أخرى. على فرق المنتج تقرير دعمه — واختباره.
Authorisation II — pre-auth, incremental, reversal, and account railsالتفويض 2 — التفويض المسبق والتزايدي والعكس وأنظمة الحسابات
| Messageالرسالة | Useالاستخدام | Effect on holdالأثر على الحجز |
|---|---|---|
| Pre-authorisationتفويض مسبق | Hotel check-in, fuel, car rental — amount unknownتسجيل الدخول في الفندق، الوقود، تأجير السيارات — المبلغ غير معروف | Hold for estimated amount, longer expiryحجز للمبلغ التقديري، انتهاء أطول |
| Incremental authorisationتفويض تزايدي | Extend stay, add servicesتمديد الإقامة، إضافة خدمات | Hold increased, linked to originalزيادة الحجز مرتبطة بالأصل |
| Authorisation reversal (0400)عكس التفويض (0400) | Timeout, cancelled sale, terminal errorانتهاء المهلة، بيع ملغى، خطأ في الجهاز | Hold released (full or partial)تحرير الحجز (كلياً أو جزئياً) |
| Capture below authقبض أقل من التفويض | Final bill lower than estimateالفاتورة النهائية أقل من التقدير | Posting for captured amount; remainder released at expiry (or by reversal)قيد بالمبلغ المقبوض؛ ويُحرر الباقي عند الانتهاء (أو بالعكس) |
| Advice (0120/0220)إشعار (0120/0220) | Inform after the fact: offline approvals, stand-in, forcedالإبلاغ بعد الحدث: موافقات دون اتصال، معالجة بديلة، قسرية | Issuer posts and reconciles laterيقيّد المُصدر ويطابق لاحقاً |
Authorising an instant credit transferتفويض تحويل دائن فوري
No hold and no capture: the debtor bank checks status, balance, limits, sanctions and fraud in one pass, debits immediately, and sends pacs.008. The creditor bank runs its own checks (account exists, not blocked, name match) and answers pacs.002 with ACCP or RJCT plus a reason code — AC01 incorrect account, AC04 closed, AM04 insufficient funds, AG01 transaction forbidden, RC01 bad bank identifier, DUPL duplicate.لا حجز ولا قبض: يتحقق بنك الدافع من الحالة والرصيد والحدود والعقوبات والاحتيال في مرور واحد، ويخصم فوراً، ويرسل pacs.008. ويجري بنك المستفيد فحوصاته (الحساب موجود، غير محظور، تطابق الاسم) ويرد بـpacs.002 بقبول أو رفض مع رمز سبب — AC01 حساب غير صحيح، AC04 مغلق، AM04 رصيد غير كافٍ، AG01 معاملة محظورة، RC01 معرّف بنك خاطئ، DUPL مكرر.
The design consequenceالنتيجة التصميمية
On cards, a failed capture leaves a hold that expires harmlessly. On instant rails, a debit with no credit is a customer's missing money — so the debtor bank must reverse its own debit on RJCT or timeout, automatically and quickly. Test that path more than the happy path.في البطاقات، يترك القبض الفاشل حجزاً ينتهي دون ضرر. وفي الأنظمة الفورية، الخصم دون إيداع هو مال مفقود للعميل — لذا يجب على بنك الدافع عكس خصمه تلقائياً وبسرعة عند الرفض أو انتهاء المهلة. اختبر هذا المسار أكثر من المسار الناجح.
Case 1 — 20:03 at Panda, Riyadh: why was Rania declined?الحالة 1 — 20:03 في بنده، الرياض: لماذا رُفضت رانيا؟
Reading an authorisation log · Saudi Arabiaقراءة سجل تفويض · السعودية
Participants: Rania (cardholder) · Riyad Bank (issuer) · Panda (merchant) · Geidea (acquirer) · mada switch · Riyad Bank customer care and card operationsالمشاركون: رانيا (حاملة البطاقة) · بنك الرياض (المُصدر) · بنده (التاجر) · جيديا (المستحوذ) · محوّل مدى · خدمة العملاء وعمليات البطاقات في بنك الرياض| Log fieldحقل السجل | Attempt 1 · 20:03:11المحاولة 1 · 20:03:11 | Attempt 2 · 20:03:48المحاولة 2 · 20:03:48 |
|---|---|---|
| MTI / DE3 | 0100 / 000000 (purchase)(شراء) | 0100 / 000000 |
| DE4 / DE49 | 234000 / 682 | 234000 / 682 |
| DE22 | 07 (contactless)07 (لاتلامسي) | 05 (chip + PIN)05 (شريحة + رقم سري) |
| DE18 MCC | 5411 | 5411 |
| DE39 | 61 | 61 |
| Issuer rule hitالقاعدة المطبقة | Daily POS limit 2,000 SAR (customer-set in app, March)حد نقاط البيع اليومي 2,000 ريال (حدده العميل في التطبيق، مارس) | |
What the agent saysما يقوله الموظف
"Your card was not blocked and the balance is fine. A daily purchase limit of 2,000 SAR was set on your card in March; today's basket was 2,340. You can raise it in the app under Card controls, and the change applies immediately." Response code 61 is one of the few a bank may explain plainly — and SAMA's consumer-protection rules expect exactly this clarity.«بطاقتك غير محظورة والرصيد جيد. تم تحديد حد شراء يومي بقيمة 2,000 ريال على بطاقتك في مارس؛ وسلة اليوم كانت 2,340. يمكنك رفعه في التطبيق تحت ضوابط البطاقة، ويسري التغيير فوراً.» رمز الاستجابة 61 من القلائل التي يجوز للبنك شرحها بوضوح — وقواعد حماية المستهلك لدى ساما تتوقع هذا الوضوح تحديداً.
What each role takes awayما يستخلصه كل دور
- Ops / care: the log answers the question in 30 seconds if agents can read DE39 and the rule-hit field. Give them that screen.العمليات / خدمة العملاء: يجيب السجل عن السؤال خلال 30 ثانية إذا استطاع الموظفون قراءة DE39 وحقل القاعدة المطبقة. امنحهم تلك الشاشة.
- Product: a limit the customer set should be shown to the customer at decline time — in the app notification, not only on the phone call.المنتج: الحد الذي حدده العميل ينبغي أن يُعرض له لحظة الرفض — في إشعار التطبيق لا في المكالمة فقط.
- Risk: code 05 would have meant a risk rule; those are never explained at the till — but must be explainable internally.المخاطر: الرمز 05 كان سيعني قاعدة مخاطر؛ وتلك لا تُشرح عند الكاشير أبداً — لكن يجب أن تكون قابلة للشرح داخلياً.
- Dev: retrying the same auth twice created two declines in the issuer's velocity counters; the second attempt with chip+PIN was pointless. Terminals should surface the reason to the cashier.المطور: إعادة التفويض نفسه مرتين أنشأت رفضين في عدّادات السرعة لدى المُصدر؛ والمحاولة الثانية بالشريحة والرقم السري كانت بلا جدوى. ينبغي للأجهزة إظهار السبب للكاشير.
Capture and clearing: turning approvals into moneyالقبض والمقاصة: تحويل الموافقات إلى مال
| Capture patternنمط القبض | Typical useالاستخدام المعتاد | Watch forانتبه إلى |
|---|---|---|
| Sale (auth + capture in one)بيع (تفويض + قبض معاً) | POS retail, most e-commerceتجزئة نقاط البيع، معظم التجارة الإلكترونية | Simplest; refunds are separate transactionsالأبسط؛ والاسترداد معاملات منفصلة |
| Auth then captureتفويض ثم قبض | Ship-later e-commerce, marketplacesالتجارة الإلكترونية بالشحن لاحقاً، الأسواق | Capture within the scheme window or the auth expires and interchange downgradesالقبض ضمن نافذة الشبكة وإلا انتهى التفويض وتراجعت رسوم التبادل |
| Partial / multiple capturesقبض جزئي / متعدد | Split shipmentsشحنات مجزأة | Each capture is its own clearing record linked to the authكل قبض سجل مقاصة مستقل مرتبط بالتفويض |
| Capture ≠ auth amountالقبض ≠ مبلغ التفويض | Tips, fuel, hotel folios, FXالإكراميات، الوقود، فواتير الفنادق، صرف العملات | Tolerances defined by scheme (e.g., +20% for restaurants); beyond → new authتسامحات تحددها الشبكة (مثلاً +20% للمطاعم)؛ وما فوقها ← تفويض جديد |
| Batch closeإقفال الدفعة | Terminal end-of-dayنهاية يوم الجهاز | A terminal that never closes never gets paid (Case 6)الجهاز الذي لا يُقفل أبداً لا يُدفع له أبداً (الحالة 6) |
What a clearing record carriesما يحمله سجل المقاصة
Original auth keys (RRN, STAN, auth code, ARN), captured amount and currency, MCC, merchant descriptor (what the customer sees on the statement), entry mode, interchange programme indicators, and — for refunds and chargebacks — the reference of the original.مفاتيح التفويض الأصلية (RRN، STAN، رمز التفويض، ARN)، المبلغ المقبوض والعملة، رمز الفئة، وصف التاجر (ما يراه العميل في كشف الحساب)، طريقة الإدخال، مؤشرات برنامج رسوم التبادل، و— للاسترداد والنزاعات — مرجع الأصل.
Three clearing failures that cost moneyثلاثة أعطال في المقاصة تكلّف مالاً
- Late clearing → interchange downgrade or loss of authorisation guarantee.المقاصة المتأخرة ← تراجع رسوم التبادل أو فقدان ضمان التفويض.
- Missing keys → clearing cannot be matched to auth → issuer treats it as a forced post; dispute exposure.المفاتيح المفقودة ← تعذر مطابقة المقاصة بالتفويض ← يعامله المُصدر كقيد قسري؛ تعرّض للنزاع.
- Wrong descriptor → customers do not recognise the charge → "not authorised" chargebacks that are really friendly fraud.وصف خاطئ ← لا يتعرف العملاء على الخصم ← نزاعات «غير مفوَّض» هي في الحقيقة احتيال ودّي.
Clearing on account rails: the ISO 20022 conversationالمقاصة على أنظمة الحسابات: محادثة ISO 20022
pacs — payments clearing & settlementpacs — مقاصة المدفوعات وتسويتها
pacs.008 credit transfer · pacs.002 status report · pacs.004 return · pacs.028 status request. The interbank conversation.pacs.008 تحويل دائن · pacs.002 تقرير حالة · pacs.004 إرجاع · pacs.028 طلب حالة. المحادثة بين البنوك.
pain — payment initiationpain — بدء الدفع
pain.001 customer credit transfer initiation (bulk files from ERPs) · pain.002 status back to the customer · pain.008 direct debit initiation. The customer-to-bank conversation.pain.001 بدء تحويل دائن من العميل (ملفات جماعية من أنظمة ERP) · pain.002 الحالة إلى العميل · pain.008 بدء الخصم المباشر. المحادثة بين العميل والبنك.
camt — cash managementcamt — إدارة النقد
camt.053 statement · camt.054 debit/credit notification · camt.056 recall/cancellation request · camt.029 resolution. The reporting and exception conversation.camt.053 كشف حساب · camt.054 إشعار خصم/إيداع · camt.056 طلب استرجاع/إلغاء · camt.029 القرار. محادثة التقارير والاستثناءات.
Chapter 05 covers ISO 20022 structure in depth. For the lifecycle, remember only this: EndToEndId is the customer's key, TxId is the bank's, UETR is the network's — carry all three into every log, statement and reconciliation.يغطي الفصل 05 بنية ISO 20022 بعمق. لدورة الحياة، تذكّر هذا فقط: EndToEndId مفتاح العميل، وTxId مفتاح البنك، وUETR مفتاح الشبكة — احمل الثلاثة في كل سجل وكشف ومطابقة.
Settlement I — cycles, cut-offs and the regional calendarالتسوية 1 — الدورات وأوقات الإقفال والتقويم الإقليمي
| Railالنظام | Cycleالدورة | Cut-off behaviourسلوك وقت الإقفال | Payee availabilityإتاحة الأموال للمستفيد |
|---|---|---|---|
| Card schemes (mada, Visa/MC)أنظمة البطاقات (مدى، فيزا/ماستركارد) | One or more clearing cycles per day; net settlement in RTGSدورة مقاصة أو أكثر يومياً؛ تسوية صافية في نظام التسوية | Captures after the acquirer's cut-off roll to the next cycleالقبض بعد وقت إقفال المستحوذ ينتقل إلى الدورة التالية | Merchant T+1 (T+2 for some international)التاجر في اليوم التالي (بعد يومين لبعض الدولي) |
| RTGS (SARIE)التسوية الإجمالية (سريع) | Continuous during operating hoursمستمرة خلال ساعات العمل | Published customer and interbank cut-offs; corporate cut-offs earlierأوقات إقفال منشورة للعملاء وبين البنوك؛ وللشركات أبكر | Same day if before cut-off; next business day otherwiseاليوم نفسه إذا كان قبل الإقفال؛ وإلا يوم العمل التالي |
| Instant (SARIE IPS)الفوري (سريع الفوري) | 24/7/365 clearing; settlement in several daily cyclesمقاصة على مدار الساعة؛ تسوية على عدة دورات يومية | None for customers; positions must stay within caps overnight and on holidaysلا شيء للعملاء؛ يجب أن تبقى المراكز ضمن السقوف ليلاً وفي العطلات | Secondsثوانٍ |
| Batch / ACH / bulkالدفعات / المقاصة الآلية / الجماعي | Fixed daily runsتشغيلات يومية ثابتة | File must arrive complete and valid before the runيجب أن يصل الملف كاملاً وصالحاً قبل التشغيل | Same or next day; returns within daysاليوم نفسه أو التالي؛ والإرجاع خلال أيام |
| Bill hub (SADAD)مركز الفواتير (سداد) | Daily settlement to billersتسوية يومية لجهات الفوترة | Bill status updates in real time; money follows the cycleتُحدَّث حالة الفاتورة فوراً؛ ويتبع المال الدورة | Biller next cycleجهة الفوترة في الدورة التالية |
Settlement II — finality, funding and what happens when it failsالتسوية 2 — النهائية والتمويل وما يحدث عند الفشل
Finalityالنهائية
Settlement is final when the RTGS says so — the legal moment after which a participant's insolvency cannot unwind the payment. Before that moment, the scheme's guarantee arrangements are what protect the payee. Operations must know, for each rail, the exact event that means "final" and log it.تكون التسوية نهائية عندما يقول نظام التسوية ذلك — اللحظة القانونية التي لا يمكن بعدها لإعسار مشارك أن يلغي الدفعة. وقبلها، ترتيبات الضمان في النظام هي ما يحمي المستفيد. على العمليات أن تعرف، لكل نظام، الحدث الذي يعني «نهائي» بالضبط وتسجّله.
Fundingالتمويل
Treasury forecasts each settlement window: yesterday's scheme positions, today's expected instant-rail net outflow, payroll files due, and a buffer. Central banks provide intraday credit against collateral; failing to fund is a reportable event and, repeated, a licensing problem.تتوقع الخزينة كل نافذة تسوية: مراكز الشبكة للأمس، وصافي التدفق الخارج المتوقع اليوم على الأنظمة الفورية، وملفات الرواتب المستحقة، واحتياطي. توفر البنوك المركزية ائتماناً خلال اليوم مقابل ضمانات؛ وعدم التمويل حدث يجب الإبلاغ عنه، وإذا تكرر أصبح مشكلة ترخيص.
When a participant cannot settleعندما يعجز مشارك عن التسوية
- Scheme draws on the participant's collateral / guarantee fund.يسحب النظام من ضمانات المشارك / صندوق الضمان.
- If insufficient, loss-sharing among survivors per the rulebook.إذا لم تكفِ، تقاسم الخسارة بين الباقين وفق كتاب القواعد.
- Last resort for DNS systems: partial unwind of the cycle — the scenario every central bank designs to avoid.الملاذ الأخير لأنظمة التسوية الصافية المؤجَّلة: إلغاء جزئي للدورة — السيناريو الذي يصمم كل بنك مركزي لتجنبه.
| Instrumentالأداة | Final for the payee atنهائية للمستفيد عند |
|---|---|
| Instant transferتحويل فوري | Acceptance (pacs.002 ACCP) — funds usable; interbank finality at the next cycleالقبول (pacs.002 ACCP) — الأموال قابلة للاستخدام؛ والنهائية بين البنوك في الدورة التالية |
| RTGSالتسوية الإجمالية | Settlement confirmation, real timeتأكيد التسوية، في الوقت الحقيقي |
| Card purchaseشراء بالبطاقة | Merchant: scheme settlement (T+1); still disputable for monthsالتاجر: تسوية الشبكة (اليوم التالي)؛ وقابلة للنزاع لأشهر |
| Chequeشيك | Clearing decision by drawer's bank (T+1); can still be reversed for fraudقرار المقاصة من بنك الساحب (اليوم التالي)؛ ويمكن عكسه للاحتيال |
| Cashنقد | Hand-overالتسليم |
Case 2 — The Eid cut-off: Noor Electronics (Riyadh) pays suppliers in three countriesالحالة 2 — إقفال العيد: نور للإلكترونيات (الرياض) تدفع لمورّدين في ثلاث دول
Cut-offs, calendars and value dates · KSA → UAE, Jordan, Egyptأوقات الإقفال والتقاويم وتواريخ القيمة · السعودية ← الإمارات، الأردن، مصر
Participants: Noor Electronics (fictional Riyadh distributor) · Riyad Bank (its bank) · SARIE · UAEFTS via AFAQ · Buna to Jordan · SWIFT to Egypt · suppliers' banks: Emirates NBD, Jordan Kuwait Bank, Banque Misrالمشاركون: نور للإلكترونيات (موزّع خيالي في الرياض) · بنك الرياض (بنكها) · سريع · UAEFTS عبر آفاق · بُنى إلى الأردن · سويفت إلى مصر · بنوك المورّدين: الإمارات دبي الوطني، البنك الأردني الكويتي، بنك مصر| Paymentالدفعة | Routeالمسار | Trapالفخ | What Hana didما فعلته هناء |
|---|---|---|---|
| 1.2M AED → Emirates NBD1.2 مليون درهم ← الإمارات دبي الوطني | SARIE → AFAQ → UAEFTSسريع ← آفاق ← UAEFTS | Friday–Saturday is the Saudi weekend, so SARIE's side of AFAQ closes Thursday; Eid begins on a different day in the UAEالجمعة والسبت عطلة سعودية، فيُغلق جانب سريع في آفاق الخميس؛ ويبدأ العيد في يوم مختلف بالإمارات | Released Thursday 11:00, before both the Riyad Bank corporate cut-off and SARIE'sأطلقتها الخميس 11:00، قبل وقت إقفال الشركات في بنك الرياض وقبل إقفال سريع |
| 90,000 JOD → JKB90,000 دينار ← البنك الأردني الكويتي | Bunaبُنى | JOD liquidity on the platform; Jordan's Eid holiday announced lateسيولة الدينار على المنصة؛ وعطلة العيد في الأردن أُعلنت متأخراً | Pre-funded JOD Wednesday; sent Thursday morning; status ACCP within minutesموّلت الدينار مسبقاً الأربعاء؛ وأرسلت الخميس صباحاً؛ والحالة مقبولة خلال دقائق |
| 4M EGP → Banque Misr4 ملايين جنيه ← بنك مصر | SWIFT via USD correspondent (supplier insisted on USD invoice)سويفت عبر مراسل بالدولار (أصر المورّد على فاتورة بالدولار) | Two cut-offs (Riyad Bank, correspondent) plus US time zone; compliance hold riskوقتا إقفال (بنك الرياض، المراسل) إضافة إلى المنطقة الزمنية الأمريكية؛ ومخاطر احتجاز الامتثال | Sent Tuesday; tracked with UETR on gpi; landed Thursdayأرسلتها الثلاثاء؛ وتابعتها بـUETR عبر gpi؛ ووصلت الخميس |
The rule Hana wrote afterwardsالقاعدة التي كتبتها هناء لاحقاً
"For every corridor, keep a calendar with three rows: our bank's cut-off, the rail's operating days, the beneficiary country's holidays. Release at least one business day before the earliest of the three. Instant rails ignore the calendar; everything else obeys it."«لكل ممر، احتفظ بتقويم بثلاثة صفوف: وقت إقفال بنكنا، وأيام عمل النظام، وعطلات بلد المستفيد. أطلق قبل أبكر الثلاثة بيوم عمل واحد على الأقل. تتجاهل الأنظمة الفورية التقويم؛ وكل ما عداها يلتزم به.»
For product and opsللمنتج والعمليات
- A corporate portal should compute and show the expected value date per corridor, including holidays, before the user clicks send.ينبغي لبوابة الشركات حساب تاريخ القيمة المتوقع لكل ممر وإظهاره، بما في ذلك العطلات، قبل أن ينقر المستخدم إرسال.
- Holiday calendars are data, not code: SAMA announces the Kingdom's Eid dates days ahead, and each corridor's central bank announces its own; make them updatable without a release.تقاويم العطلات بيانات لا شيفرة: تعلن ساما تواريخ عيد المملكة قبلها بأيام، ويعلن البنك المركزي لكل ممر تواريخه؛ اجعلها قابلة للتحديث دون إصدار.
- Ramadan working hours shrink every Saudi cut-off by hours — SAMA publishes the adjusted SARIE schedule; plan for it every year.تقلّص ساعات عمل رمضان كل وقت إقفال سعودي بساعات — وتنشر ساما جدول سريع المعدّل؛ خطط لذلك كل عام.
Reconciliation I — principlesالمطابقة 1 — المبادئ
Levelsالمستويات
Transaction level (each record matched), batch/cycle level (totals and counts), ledger level (GL balances vs bank/scheme balances). All three, every day; a green total can hide offsetting errors.مستوى المعاملة (مطابقة كل سجل)، ومستوى الدفعة/الدورة (الإجماليات والأعداد)، ومستوى الدفتر (أرصدة دفتر الأستاذ مقابل أرصدة البنك/الشبكة). الثلاثة كلها، كل يوم؛ فالإجمالي الأخضر قد يخفي أخطاء متعاكسة.
Keys and tolerancesالمفاتيح والتسامحات
Match on identifiers first (ARN/RRN, EndToEndId, UETR, SADAD reference), then amount with FX/fee tolerance, then date with a ±1 day window across cut-offs. Never match on amount alone — duplicates hide there.طابق على المعرّفات أولاً (ARN/RRN، EndToEndId، UETR، مرجع سداد)، ثم المبلغ بتسامح للصرف/الرسوم، ثم التاريخ بنافذة ±1 يوم عبر أوقات الإقفال. لا تطابق على المبلغ وحده أبداً — فالتكرارات تختبئ هناك.
Ownership and ageingالملكية والأعمار
Every break has an owner and an age. Breaks older than three business days escalate; older than a settlement cycle become a financial-control incident. Publish the ageing report — it is the single most honest KPI in payments.لكل فرق مسؤول وعمر. الفروقات الأقدم من ثلاثة أيام عمل تُصعَّد؛ والأقدم من دورة تسوية تصبح حادث رقابة مالية. انشر تقرير الأعمار — إنه المؤشر الأكثر صدقاً في المدفوعات.
Reconciliation II — designing one that runs itselfالمطابقة 2 — تصميم مطابقة تعمل بنفسها
| Design elementعنصر التصميم | Decision to documentالقرار الواجب توثيقه |
|---|---|
| Sourcesالمصادر | Which files/APIs, from whom, at what time, in what format (fixed-width scheme files, camt.053, PSP CSV, host extract)أي ملفات/واجهات، ومن مَن، وفي أي وقت، وبأي صيغة (ملفات الشبكة ثابتة العرض، camt.053، CSV من مقدّم الخدمة، مستخرج النظام) |
| Normalisationالتوحيد | Common schema: amount in minor units, currency, UTC time, canonical identifiers, transaction type mappingمخطط موحد: المبلغ بالوحدات الصغرى، العملة، التوقيت العالمي، معرّفات قياسية، تحويل أنواع المعاملات |
| Matching rulesقواعد المطابقة | Ordered passes: exact key → key + tolerance → many-to-one (partial captures, batch payouts) → suggested matches for reviewمراحل مرتبة: مفتاح دقيق ← مفتاح + تسامح ← متعدد إلى واحد (قبض جزئي، مدفوعات جماعية) ← مطابقات مقترحة للمراجعة |
| Break taxonomyتصنيف الفروقات | Timing, missing-left, missing-right, amount, fee/FX, duplicate, unknown — each with an owner and an SLAتوقيت، مفقود يساراً، مفقود يميناً، مبلغ، رسوم/صرف، مكرر، مجهول — لكل منها مسؤول واتفاقية مستوى خدمة |
| Workflowسير العمل | Auto-close timing breaks when the other side arrives; manual queue with notes, attachments and maker-checker for adjustmentsإغلاق آلي لفروقات التوقيت عند وصول الطرف الآخر؛ قائمة يدوية بملاحظات ومرفقات وصانع-مراجع للتعديلات |
| Outputsالمخرجات | GL postings, daily sign-off, ageing report, KPI feedقيود دفتر الأستاذ، اعتماد يومي، تقرير الأعمار، تغذية المؤشرات |
A daily break report (example)تقرير فروقات يومي (مثال)
| Categoryالفئة | Countالعدد | Amountالمبلغ | Owner · ageالمسؤول · العمر |
|---|---|---|---|
| Timing (post-cut-off captures)توقيت (قبض بعد الإقفال) | 312 | 41,880 | auto · 0dآلي · 0 يوم |
| In host, not in scheme fileفي النظام وليس في ملف الشبكة | 14 | 6,250 | card ops · 1dعمليات البطاقات · يوم |
| In scheme file, not in hostفي ملف الشبكة وليس في النظام | 3 | 920 | dev on-call · 1dالمطور المناوب · يوم |
| Fee / FX varianceفرق رسوم / صرف | 27 | 146 | finance · 2dالمالية · يومان |
| Duplicateمكرر | 2 | 1,780 | card ops · 0dعمليات البطاقات · 0 يوم |
| Unknownمجهول | 1 | 12,000 | risk · 4d ⚠المخاطر · 4 أيام ⚠ |
The 12,000 unknown break aged four days is the line the CFO should read first. Everything else is housekeeping.الفرق المجهول بقيمة 12,000 وعمره أربعة أيام هو السطر الذي ينبغي للمدير المالي قراءته أولاً. وكل ما عداه أعمال روتينية.
Case 3 — Jahez's finance team reconciles a Friday night (KSA)الحالة 3 — فريق المالية في جاهز يطابق ليلة جمعة (السعودية)
Marketplace reconciliation · orders vs PSP vs bank · Saudi Arabiaمطابقة سوق إلكترونية · الطلبات مقابل مقدّم الخدمة مقابل البنك · السعودية
Participants: Jahez (delivery platform) · HyperPay (PSP/gateway) · mada, Visa/Mastercard, Apple Pay, urpay (instruments) · Al Rajhi (Jahez's bank) · restaurants (payees) · couriers (COD cash)المشاركون: جاهز (منصة توصيل) · هايبرباي (مقدّم خدمة/بوابة) · مدى، فيزا/ماستركارد، Apple Pay، يوربي (الأدوات) · الراجحي (بنك جاهز) · المطاعم (المستفيدون) · المندوبون (نقد الدفع عند الاستلام)| Reconالمطابقة | Leftاليسار | Rightاليمين | Keyالمفتاح |
|---|---|---|---|
| 1 Orders vs PSP1 الطلبات مقابل مقدّم الخدمة | Order ledger (paid status)دفتر الطلبات (حالة مدفوع) | HyperPay transaction reportتقرير معاملات هايبرباي | order_id = merchant referenceمعرّف الطلب = مرجع التاجر |
| 2 PSP vs bank2 مقدّم الخدمة مقابل البنك | HyperPay settlement report (net of fees, per instrument)تقرير تسوية هايبرباي (صافي الرسوم، لكل أداة) | Al Rajhi statement creditsإيداعات كشف الراجحي | settlement batch IDمعرّف دفعة التسوية |
| 3 COD3 الدفع عند الاستلام | Orders marked COD deliveredالطلبات المعلّمة مسلّمة نقداً | Courier cash deposits (bank / kiosk)إيداعات المندوبين النقدية (بنك / منفذ) | courier_id + dayمعرّف المندوب + اليوم |
| 4 Payouts4 المدفوعات | Restaurant balances dueأرصدة المطاعم المستحقة | SARIE bulk file + returnsملف سريع الجماعي + الإرجاع | EndToEndId = payout_idEndToEndId = معرّف الدفعة |
Saturday's breaksفروقات السبت
- 2,140 orders paid at 23:58–00:02: in Friday's ledger, in Saturday's PSP batch — timing, auto-closed by the ±1 day rule.2,140 طلباً دُفعت بين 23:58 و00:02: في دفتر الجمعة، وفي دفعة السبت لدى مقدّم الخدمة — توقيت، أُغلقت آلياً بقاعدة ±1 يوم.
- 416 partial refunds (missing items) as separate PSP records without order_id — missing key: fixed by mandating the reference on refund API calls.416 استرداداً جزئياً (أصناف ناقصة) كسجلات منفصلة لدى مقدّم الخدمة دون معرّف الطلب — مفتاح مفقود: عولج بإلزام المرجع في نداءات واجهة الاسترداد.
- Apple Pay settled at a different fee tier than mada — fee variance of 0.3% on 22,000 orders: an invoicing error at the PSP, recovered.سُوّي Apple Pay بمستوى رسوم مختلف عن مدى — فرق رسوم 0.3% على 22,000 طلب: خطأ فوترة لدى مقدّم الخدمة، استُرد.
- One courier: 41 COD orders, deposit for 38 — missing right, escalated to field ops the same day.مندوب واحد: 41 طلباً نقدياً، وإيداع لـ38 — مفقود يميناً، صُعّد لعمليات الميدان في اليوم نفسه.
Lessonالدرس
Marketplaces run four reconciliations, not one, and the payout file is released only when recon 1–3 are signed off. Product decisions — allowing partial refunds, adding a new wallet — each add rows to this table.تدير الأسواق الإلكترونية أربع مطابقات لا واحدة، ولا يُطلق ملف المدفوعات إلا بعد اعتماد المطابقات 1–3. وقرارات المنتج — السماح بالاسترداد الجزئي، إضافة محفظة جديدة — يضيف كل منها صفوفاً إلى هذا الجدول.
Exceptions I — the taxonomyالاستثناءات 1 — التصنيف
| Exceptionالاستثناء | Railالنظام | Initiated byيبدأه | Whenمتى | Money movementحركة المال | Message / artefactالرسالة / الأداة |
|---|---|---|---|---|---|
| Authorisation reversalعكس التفويض | Cardsالبطاقات | Terminal / acquirerالجهاز / المستحوذ | Before clearing (seconds–days)قبل المقاصة (ثوانٍ–أيام) | None — hold releasedلا شيء — تحرير الحجز | 0400 / 0420 |
| Voidالإلغاء | Cardsالبطاقات | Merchantالتاجر | Same batch, before closeالدفعة نفسها، قبل الإقفال | Noneلا شيء | Batch adjustmentتعديل الدفعة |
| Refundالاسترداد | Cards, walletsالبطاقات، المحافظ | Merchantالتاجر | After clearingبعد المقاصة | New credit to the original instrumentإيداع جديد إلى الأداة الأصلية | Refund clearing record referencing originalسجل مقاصة استرداد يشير إلى الأصل |
| Returnالإرجاع | A2A (instant, ACH)بين الحسابات (فوري، مقاصة آلية) | Creditor bankبنك المستفيد | Cannot apply the credit (closed, mismatch)لا يستطيع تطبيق الإيداع (مغلق، عدم تطابق) | Funds sent backتُعاد الأموال | pacs.004 |
| Recallالاسترجاع | A2Aبين الحسابات | Debtor bank (on customer request)بنك الدافع (بطلب من العميل) | After acceptance; error or fraudبعد القبول؛ خطأ أو احتيال | Only if creditor consents or law requiresفقط إذا وافق المستفيد أو اقتضى القانون | camt.056 → camt.029 |
| Retrieval requestطلب استرجاع المستندات | Cardsالبطاقات | Issuerالمُصدر | Cardholder queryاستفسار حامل البطاقة | Noneلا شيء | Copy requestطلب نسخة |
| Chargebackالنزاع (تشارج باك) | Cardsالبطاقات | Issuerالمُصدر | Within reason-code window (~120 days)ضمن نافذة رمز السبب (نحو 120 يوماً) | Forced debit to acquirerخصم قسري من المستحوذ | Dispute record + reason codeسجل نزاع + رمز سبب |
| Representmentالرد بالأدلة | Cardsالبطاقات | Acquirerالمستحوذ | Within ~30 days of chargebackخلال نحو 30 يوماً من النزاع | Re-credit to acquirer if acceptedإعادة الإيداع للمستحوذ إذا قُبل | Evidence packحزمة الأدلة |
| Duplicateالتكرار | Anyأي نظام | Detected by recon or customerيكتشفه المطابقة أو العميل | Any timeأي وقت | Refund / reversal of the extraاسترداد / عكس الزائد | Idempotency key matchتطابق مفتاح عدم التكرار |
Two rules that prevent most exception pain: (1) refund and reverse through the same rail and to the same instrument the money came from; (2) never create a new financial record without a reference to the one it corrects.قاعدتان تمنعان معظم آلام الاستثناءات: (1) استرد واعكس عبر النظام نفسه وإلى الأداة نفسها التي جاء منها المال؛ (2) لا تنشئ سجلاً مالياً جديداً أبداً دون مرجع إلى السجل الذي يصحّحه.
Exceptions II — timeouts and the unknown outcomeالاستثناءات 2 — انتهاء المهلة والنتيجة المجهولة
The bug that costs the mostالخطأ الأكثر كلفة
Treating a timeout as a decline and letting the customer retry. On cards it creates duplicate holds; on instant rails it creates duplicate payments that are irrevocable. Every payment client needs an explicit UNKNOWN state and a resolution procedure.معاملة انتهاء المهلة كرفض والسماح للعميل بإعادة المحاولة. في البطاقات ينشئ حجوزات مكررة؛ وفي الأنظمة الفورية ينشئ دفعات مكررة غير قابلة للإلغاء. يحتاج كل عميل دفع إلى حالة «مجهول» صريحة وإجراء لحلها.
Idempotencyعدم التكرار
Same key + same request = same response, never a second payment. Keys: STAN + RRN + terminal ID (cards); EndToEndId / MsgId (ISO 20022); a client-generated UUID (APIs). Store the key before you send, expire it after the rail's own window.المفتاح نفسه + الطلب نفسه = الاستجابة نفسها، ولا دفعة ثانية أبداً. المفاتيح: STAN + RRN + معرّف الجهاز (البطاقات)؛ EndToEndId / MsgId (ISO 20022)؛ معرّف فريد يولّده العميل (واجهات البرمجة). خزّن المفتاح قبل الإرسال، وأنهِ صلاحيته بعد نافذة النظام نفسه.
Store-and-forwardالتخزين ثم الإرسال
Terminals and hosts queue advices and reversals when a link is down and replay them in order when it returns. Reconciliation catches whatever the replay misses. Design the replay to be idempotent too.تُدرج الأجهزة والأنظمة الإشعارات والعكوس في قائمة انتظار عند انقطاع الاتصال وتعيد إرسالها بالترتيب عند عودته. وتلتقط المطابقة ما يفوته الإرسال المتكرر. صمّم إعادة الإرسال لتكون غير مكرِّرة أيضاً.
Case 4 — 'Did my rent go through?' A SARIE IPS timeout in Riyadhالحالة 4 — «هل وصل إيجاري؟» انتهاء مهلة في سريع الفوري بالرياض
Timeout on an instant rail · Saudi Arabiaانتهاء المهلة على نظام فوري · السعودية
Participants: Mona (payer) · Alinma Bank (her bank's app) · SARIE IPS / Saudi Payments · SNB (landlord's bank) · Alinma operationsالمشاركون: منى (الدافعة) · مصرف الإنماء (تطبيق بنكها) · سريع الفوري / المدفوعات السعودية · البنك الأهلي (بنك المالك) · عمليات الإنماء- What happened technically. Alinma debited Mona and sent pacs.008; SARIE IPS forwarded to SNB; SNB's pacs.002 (ACCP) was delayed by a slow host; the app's 30-second timer expired first.ما حدث تقنياً. خصم الإنماء من منى وأرسل pacs.008؛ وأحال سريع الفوري إلى الأهلي؛ وتأخر pacs.002 (قبول) من الأهلي بسبب بطء نظامه؛ وانتهى مؤقت التطبيق البالغ 30 ثانية أولاً.
- What the app should have shown. "Pending — we are confirming with the receiving bank; do not resend." Not an error.ما كان ينبغي أن يعرضه التطبيق. «قيد التأكيد — نتحقق مع البنك المستقبِل؛ لا تعد الإرسال.» لا خطأ.
- What the bank did. Its host sent pacs.028 (status request); SARIE IPS returned ACCP at 21:41:12. The debit stood; the landlord was credited; Mona's app updated to Successful three minutes later.ما فعله البنك. أرسل نظامه pacs.028 (طلب حالة)؛ وأعاد سريع الفوري القبول في 21:41:12. بقي الخصم؛ وأُودع للمالك؛ وتحدّث تطبيق منى إلى «ناجحة» بعد ثلاث دقائق.
- If she had resent. A second 9,000 SAR, irrevocable. Recovery would have needed a camt.056 recall and the landlord's consent.لو أعادت الإرسال. 9,000 ريال ثانية، غير قابلة للإلغاء. وكان الاسترداد سيحتاج طلب استرجاع camt.056 وموافقة المالك.
Design rules from this caseقواعد تصميمية من هذه الحالة
- Three outcomes in the UI, not two: Successful, Failed, Pending. Pending blocks resend and polls for status.ثلاث نتائج في الواجهة لا اثنتان: ناجحة، فاشلة، قيد التأكيد. تمنع «قيد التأكيد» إعادة الإرسال وتستعلم عن الحالة.
- The debtor bank's own timer must exceed the scheme's maximum response time; only then may it auto-reverse a debit.يجب أن يتجاوز مؤقت بنك الدافع الحد الأقصى لزمن استجابة النظام؛ وعندها فقط يجوز له عكس الخصم تلقائياً.
- Same EndToEndId on any retry, so the scheme rejects duplicates (DUPL) instead of paying twice.EndToEndId نفسه في أي إعادة محاولة، حتى يرفض النظام التكرارات (DUPL) بدلاً من الدفع مرتين.
- Customer care needs the status lookup screen; "wait 24 hours" is not a procedure.تحتاج خدمة العملاء شاشة الاستعلام عن الحالة؛ «انتظر 24 ساعة» ليس إجراءً.
Saudi noteملاحظة سعودية
SARIE IPS publishes maximum end-to-end response times and requires participants to handle the "no response" state per the rulebook; SAMA's consumer-protection rules add complaint-resolution deadlines when money goes missing.ينشر سريع الفوري الحدود القصوى لزمن الاستجابة من طرف إلى طرف ويلزم المشاركين بمعالجة حالة «لا استجابة» وفق كتاب القواعد؛ وتضيف قواعد حماية المستهلك لدى ساما مهلاً لحل الشكاوى عند فقدان المال.
Exceptions III — refunds, returns and disputes in operationالاستثناءات 3 — الاسترداد والإرجاع والنزاعات في التشغيل
Refundsالاسترداد
- Always reference the original (ARN / order reference); partial refunds must sum to no more than the capture.أشر دائماً إلى الأصل (ARN / مرجع الطلب)؛ ويجب ألا يتجاوز مجموع الاستردادات الجزئية المبلغ المقبوض.
- Refund to an expired or cancelled card still works — the issuer maps it to the replacement account; do not refund to a bank account instead.الاسترداد إلى بطاقة منتهية أو ملغاة يعمل — يربطه المُصدر بالحساب البديل؛ ولا تسترد إلى حساب بنكي بدلاً منها.
- Refund timing: merchant releases → PSP clears → issuer posts: 3–7 days; tell the customer the range, not "immediately".توقيت الاسترداد: يطلقه التاجر ← يقاصّه مقدّم الخدمة ← يقيّده المُصدر: 3–7 أيام؛ أخبر العميل بالنطاق لا «فوراً».
- Refunds after the dispute window closed are still allowed; refunds during an open dispute create double credits — check the dispute queue first.الاسترداد بعد إغلاق نافذة النزاع لا يزال مسموحاً؛ والاسترداد أثناء نزاع مفتوح ينشئ إيداعاً مزدوجاً — تحقق من قائمة النزاعات أولاً.
Returns and recalls (A2A)الإرجاع والاسترجاع (بين الحسابات)
- Returns (pacs.004) are automatic and carry a reason code; post them against the original EndToEndId.الإرجاع (pacs.004) آلي ويحمل رمز سبب؛ قيّده مقابل EndToEndId الأصلي.
- Recalls (camt.056) are requests; the creditor bank answers within scheme deadlines and needs consent unless fraud or duplication is evident. Track them as cases, not as payments.الاسترجاع (camt.056) طلبات؛ يرد بنك المستفيد ضمن مهل النظام ويحتاج الموافقة ما لم يكن الاحتيال أو التكرار واضحاً. تابعها كقضايا لا كدفعات.
Disputes (cards)النزاعات (البطاقات)
| Stepالخطوة | Ops controlضابط العمليات |
|---|---|
| Intakeالاستلام | Classify reason code; check eligibility and window; provisional credit per regulator rulesتصنيف رمز السبب؛ التحقق من الأهلية والنافذة؛ إيداع مؤقت وفق قواعد الجهة التنظيمية |
| Filingالتقديم | Submit through scheme portal with required fields; diarise every deadlineالتقديم عبر بوابة الشبكة بالحقول المطلوبة؛ تدوين كل موعد نهائي |
| Representment reviewمراجعة الرد بالأدلة | Evidence checklist per reason code; decision by a second personقائمة أدلة لكل رمز سبب؛ قرار من شخص ثانٍ |
| Accountingالمحاسبة | Every stage posts to GL: provisional credit, chargeback received, representment, write-offكل مرحلة تُقيَّد في دفتر الأستاذ: إيداع مؤقت، نزاع مستلم، رد بالأدلة، شطب |
| Reportingالتقارير | Win rate by reason code and merchant; feed to fraud and to merchant riskمعدل الفوز بحسب رمز السبب والتاجر؛ تغذية لفريقي الاحتيال ومخاطر التجار |
SAMA's consumer-protection rules set complaint-resolution deadlines that are shorter than scheme dispute cycles — and Sanadak, the ombudsman, hears what banks fail to resolve. Provisional credit policy is where the two clocks meet — write it down.تضع قواعد حماية المستهلك لدى ساما مهلاً لحل الشكاوى أقصر من دورات نزاع الشبكات — وينظر سندك، جهة التظلم، فيما تعجز البنوك عن حله. وسياسة الإيداع المؤقت هي حيث يلتقي الوقتان — دوّنها.
Measuring processing health: the KPI setقياس صحة المعالجة: مجموعة المؤشرات
| KPIالمؤشر | Definitionالتعريف | Illustrative targetهدف توضيحي |
|---|---|---|
| Approval rateمعدل الموافقة | Approved ÷ attempted, by channel and instrumentالموافقات ÷ المحاولات، بحسب القناة والأداة | POS > 97% · e-commerce > 90%نقاط البيع > 97% · التجارة الإلكترونية > 90% |
| Decline mixتوزيع الرفض | Share by response codeالحصة بحسب رمز الاستجابة | 91/96 < 1% of declines91/96 < 1% من الرفض |
| Authorisation latencyزمن استجابة التفويض | p95 end-to-endالنسبة المئوية 95 من طرف إلى طرف | < 2 s cards · < 5 s instant< ثانيتين للبطاقات · < 5 ثوانٍ للفوري |
| Availabilityالإتاحة | Host uptime as measured by the schemeوقت تشغيل النظام كما يقيسه النظام | ≥ 99.9%≥ 99.9% |
| Timeout / unknown rateمعدل انتهاء المهلة / المجهول | Requests with no final status within SLAالطلبات دون حالة نهائية ضمن اتفاقية الخدمة | < 0.1%< 0.1% |
| Clearing timelinessالتزام مهل المقاصة | Captures cleared within scheme windowالقبض المقاصّ ضمن نافذة الشبكة | > 99.5%> 99.5% |
| Settlement funding on timeتمويل التسوية في الوقت | Windows funded before cut-offالنوافذ الممولة قبل الإقفال | 100%100% |
| Recon auto-matchالمطابقة الآلية | Records matched without human touchالسجلات المطابَقة دون تدخل بشري | > 98%> 98% |
| Ageing breaksالفروقات المتقادمة | Open breaks > 3 business days (count, value)فروقات مفتوحة > 3 أيام عمل (عدد، قيمة) | 0 above materiality0 فوق حد الأهمية |
| Dispute ratio / win rateنسبة النزاعات / معدل الفوز | Chargebacks ÷ sales; won ÷ representedالنزاعات ÷ المبيعات؛ المكسوبة ÷ المردودة | < 0.5% · > 40%< 0.5% · > 40% |
How to read a KPI pageكيف تقرأ صفحة مؤشرات
Approval rate falling with 05 rising = risk rules tightened (intended?) or a fraud attack. 91 rising = an availability incident somewhere upstream. Auto-match falling after a release = a new record type nobody told recon about. Every KPI should have a named owner and a "what I do when it moves" note.انخفاض معدل الموافقة مع ارتفاع 05 = تشديد قواعد المخاطر (مقصود؟) أو هجوم احتيالي. ارتفاع 91 = حادث إتاحة في مكان ما أعلى السلسلة. انخفاض المطابقة الآلية بعد إصدار = نوع سجل جديد لم يخبر أحد فريق المطابقة به. لكل مؤشر مسؤول مسمّى وملاحظة «ماذا أفعل عندما يتحرك».
Runbooks: the failures that recur, written downأدلة التشغيل: الأعطال المتكررة مكتوبة
A runbook containsيحتوي دليل التشغيل على
- Trigger — the alert or symptom, with the KPI threshold that fires it.المحفّز — التنبيه أو العرض، مع عتبة المؤشر التي تطلقه.
- Impact assessment — which rails, customers, merchants and money are affected; how to size it in 10 minutes.تقييم الأثر — أي أنظمة وعملاء وتجار وأموال متأثرة؛ وكيف تقدّر حجمه خلال 10 دقائق.
- Immediate actions — stop the bleeding: pause a file, enable stand-in, switch to DR, block a merchant.الإجراءات الفورية — إيقاف النزيف: إيقاف ملف، تفعيل المعالجة البديلة، التحويل إلى موقع التعافي، حظر تاجر.
- Communication — who tells the scheme, the regulator, customers, merchants; templates and deadlines.التواصل — من يخبر الشبكة والجهة التنظيمية والعملاء والتجار؛ القوالب والمواعيد.
- Recovery steps — ordered, with checkpoints and rollback.خطوات التعافي — مرتبة، مع نقاط تحقق وتراجع.
- Reconciliation & closure — how to prove nothing was lost or duplicated; the report that closes the incident.المطابقة والإغلاق — كيف تثبت أن شيئاً لم يُفقد أو يتكرر؛ والتقرير الذي يغلق الحادث.
- Post-incident — root cause, actions, owner, date; update the runbook.ما بعد الحادث — السبب الجذري، الإجراءات، المسؤول، التاريخ؛ تحديث الدليل.
| Runbookدليل التشغيل | First three actionsالإجراءات الثلاثة الأولى |
|---|---|
| Scheme settlement file not receivedلم يُستلم ملف تسوية الشبكة | Confirm with scheme portal/status line → check SFTP/connectivity and DR path → fund settlement from prior-day estimate if window is nearالتأكد عبر بوابة/خط حالة الشبكة ← فحص SFTP/الاتصال ومسار التعافي ← تمويل التسوية من تقدير اليوم السابق إذا اقتربت النافذة |
| Issuer host down (91s spiking)تعطل نظام المُصدر (ارتفاع 91) | Verify scheme stand-in is active with agreed parameters → fail over → prepare advice reconciliation for STIP-approved transactionsالتحقق من تفعيل المعالجة البديلة بالمعايير المتفق عليها ← التحويل الاحتياطي ← إعداد مطابقة الإشعارات للمعاملات المعتمدة بديلاً |
| Payroll file rejected at cut-offرُفض ملف الرواتب عند الإقفال | Read rejection reason (schema vs records) → fix and resubmit valid records, quarantine bad ones → notify employer with per-record status and new value dateقراءة سبب الرفض (المخطط مقابل السجلات) ← إصلاح السجلات الصالحة وإعادة إرسالها وعزل السيئة ← إبلاغ صاحب العمل بحالة كل سجل وتاريخ القيمة الجديد |
| Duplicate payments detectedاكتشاف دفعات مكررة | Freeze the source (batch/job) → size and list affected customers → reverse/recall per rail with references; communicate before customers noticeتجميد المصدر (الدفعة/المهمة) ← تحديد الحجم وقائمة العملاء المتأثرين ← العكس/الاسترجاع وفق كل نظام بالمراجع؛ والتواصل قبل أن يلاحظ العملاء |
| Instant-rail net debit cap approachingاقتراب سقف الصافي المدين للنظام الفوري | Alert treasury → top up collateral / settlement account → if breached, throttle outbound per scheme rules and notify the schemeتنبيه الخزينة ← تعزيز الضمانات / حساب التسوية ← عند التجاوز، تقييد الصادر وفق قواعد النظام وإبلاغه |
The lifecycle across rails: one table to keepدورة الحياة عبر الأنظمة: جدول واحد للاحتفاظ به
| Stageالمرحلة | Card (mada / Visa)بطاقة (مدى / فيزا) | Instant A2A (SARIE IPS)فوري بين الحسابات (سريع الفوري) | Batch / bulkالدفعات / الجماعي | RTGSالتسوية الإجمالية | Wallet (on-us)محفظة (داخلي) |
|---|---|---|---|---|---|
| Initiationالبدء | Terminal / gateway; ISO 8583 0100الجهاز / البوابة؛ ISO 8583 0100 | App; alias lookup; pacs.008التطبيق؛ البحث عن الاسم المستعار؛ pacs.008 | pain.001 / SIF fileملف pain.001 / SIF | Corporate channel; pacs.008/MT103قناة الشركات؛ pacs.008/MT103 | App; internal APIالتطبيق؛ واجهة داخلية |
| Authenticationالمصادقة | PIN / CDCVM / 3DSرقم سري / تحقق على الجهاز / 3DS | App biometrics + national ID; step-upقياسات حيوية + هوية وطنية؛ تصعيد | Maker-checkerصانع-مراجع | Dual approval, signaturesموافقة مزدوجة، توقيعات | App biometricsقياسات حيوية |
| Authorisationالتفويض | Issuer; hold; DE39المُصدر؛ حجز؛ DE39 | Debtor bank debits; creditor bank ACCP/RJCTيخصم بنك الدافع؛ ويقبل/يرفض بنك المستفيد | Validation + funds reserveالتحقق + حجز الأموال | Funds check + sanctionsفحص الرصيد + العقوبات | Ledger checkفحص الدفتر |
| Clearingالمقاصة | Capture → clearing file per cycleقبض ← ملف مقاصة لكل دورة | Real time, per transactionفوري، لكل معاملة | Batch runتشغيل الدفعة | None separate — grossلا منفصلة — إجمالية | None — same ledgerلا شيء — الدفتر نفسه |
| Settlementالتسوية | Net in RTGS; merchant T+1صافية في نظام التسوية؛ التاجر في اليوم التالي | Deferred net cycles, pre-fundedدورات صافية مؤجَّلة، ممولة مسبقاً | Net per runصافية لكل تشغيل | Immediate, finalفورية، نهائية | N/Aلا ينطبق |
| Reconciliationالمطابقة | Host / scheme / RTGS three-wayثلاثية: النظام / الشبكة / نظام التسوية | Host / scheme positions / RTGSالنظام / مراكز النظام / نظام التسوية | File vs status vs statementالملف مقابل الحالة مقابل الكشف | Statementالكشف | Ledger vs safeguarded bank balanceالدفتر مقابل رصيد البنك المخصص |
| Exceptionsالاستثناءات | Reversal, refund, chargebackعكس، استرداد، نزاع | Return, recall, timeout handlingإرجاع، استرجاع، معالجة انتهاء المهلة | Per-record returnsإرجاع لكل سجل | Cancellation before settlement onlyالإلغاء قبل التسوية فقط | Internal reversalعكس داخلي |
Case 5 — Salary day: Mudad payroll through Riyad Bank and SARIEالحالة 5 — يوم الراتب: رواتب مُدد عبر بنك الرياض وسريع
Bulk file lifecycle · Saudi Arabiaدورة حياة الملف الجماعي · السعودية
Participants: Al-Bina Contracting (fictional, 3,200 staff) · Riyad Bank (its bank) · Mudad (wage protection, linked to GOSI/MHRSD) · SARIE (SAMA) · employees' banks and wallets (Al Rajhi, SNB, STC Bank)المشاركون: البناء للمقاولات (خيالية، 3,200 موظف) · بنك الرياض (بنكها) · مُدد (حماية الأجور، مرتبط بالتأمينات الاجتماعية/وزارة الموارد البشرية) · سريع (ساما) · بنوك وموظفو المحافظ (الراجحي، الأهلي، بنك STC)| Failureالفشل | Recordsالسجلات | Reason codeرمز السبب | Fixالحل |
|---|---|---|---|
| Invalid IBAN check digitرقم تحقق IBAN غير صالح | 4 | Rejected at validationمرفوض عند التحقق | HR corrects; resubmit same dayتصحح الموارد البشرية؛ إعادة الإرسال في اليوم نفسه |
| Closed accountحساب مغلق | 3 | AC04 (pacs.004) | Returned funds re-credited; employee gives new IBANتُعاد الأموال المرتجعة؛ يقدم الموظف IBAN جديداً |
| Name mismatch (new joiner)عدم تطابق الاسم (موظف جديد) | 2 | BE04 / AC01BE04 / AC01 | Verify ID vs bank recordالتحقق من الهوية مقابل سجل البنك |
| Duplicate employee IDمعرّف موظف مكرر | 2 | DUPL (file validation)DUPL (التحقق من الملف) | One record kept, one removedالاحتفاظ بسجل وإزالة الآخر |
Why this is the lifecycle in miniatureلماذا هذه دورة الحياة مصغّرة
3,189 credits go through initiation, authentication (maker-checker), authorisation (funds reserved), clearing (batch), settlement (net in SARIE), reconciliation (status file vs statement) and exceptions (returns) — with one extra artefact: the Mudad compliance record proving wages were paid on time. Late or missing records are a labour-law problem before they are a payments problem.يمر 3,189 إيداعاً بالبدء والمصادقة (صانع-مراجع) والتفويض (حجز الأموال) والمقاصة (دفعة) والتسوية (صافية في سريع) والمطابقة (ملف الحالة مقابل الكشف) والاستثناءات (الإرجاع) — مع أداة إضافية واحدة: سجل امتثال مُدد الذي يثبت دفع الأجور في موعدها. السجلات المتأخرة أو المفقودة مشكلة في قانون العمل قبل أن تكون مشكلة مدفوعات.
Case 6 — The Jarir terminal that never closed its batchالحالة 6 — جهاز جرير الذي لم يُقفل دفعته أبداً
Store-and-forward, late clearing and a reconciliation break · Saudi Arabiaالتخزين ثم الإرسال والمقاصة المتأخرة وفرق في المطابقة · السعودية
Participants: Jarir Bookstore (merchant, Khobar branch) · Geidea (terminal provider/processor) · Alinma Bank (acquirer) · mada · issuers of the affected cardsالمشاركون: مكتبة جرير (التاجر، فرع الخبر) · جيديا (مزوّد الأجهزة/المعالج) · مصرف الإنماء (المستحوذ) · مدى · مُصدرو البطاقات المتأثرة- Offline approvals. EMV lets the chip and terminal approve low-value transactions offline (TVR/TC data); they are stored as advices (0220) for later upload.الموافقات دون اتصال. يتيح EMV للشريحة والجهاز الموافقة على معاملات منخفضة القيمة دون اتصال (بيانات TVR/TC)؛ وتُخزَّن كإشعارات (0220) لرفعها لاحقاً.
- Batch never closed. Without a link, no end-of-day; 214 transactions (18,900 SAR) sat in the terminal.لم تُقفل الدفعة. دون اتصال، لا نهاية يوم؛ وبقيت 214 معاملة (18,900 ريال) في الجهاز.
- Link restored Thursday. Store-and-forward uploaded the advices; Geidea submitted them in Thursday's clearing — two days late.عاد الاتصال الخميس. رفع التخزين ثم الإرسال الإشعارات؛ وأرسلتها جيديا في مقاصة الخميس — متأخرة يومين.
- Consequences. Some issuers had already expired holds or saw no hold at all; a handful of cards had insufficient funds by Thursday; mada rules on late presentment applied; Jarir's Tuesday/Wednesday recon showed a break the finance team could not explain.العواقب. كان بعض المُصدرين قد أنهوا الحجوزات أو لم يروا حجزاً أصلاً؛ وكان لدى بعض البطاقات رصيد غير كافٍ بحلول الخميس؛ وانطبقت قواعد مدى للتقديم المتأخر؛ وأظهرت مطابقة جرير للثلاثاء/الأربعاء فرقاً لم يستطع فريق المالية تفسيره.
What should have firedما كان ينبغي أن يُطلق
- Terminal heartbeat alert at Geidea: "terminal 7 silent > 2 hours during trading".تنبيه نبض الجهاز لدى جيديا: «الجهاز 7 صامت > ساعتين خلال التداول».
- Store-level control: daily batch-close confirmation per terminal, reconciled to the POS system's sales.ضابط على مستوى المتجر: تأكيد إقفال الدفعة يومياً لكل جهاز، مطابقاً لمبيعات نظام نقاط البيع.
- Acquirer control: merchant expected-volume monitoring flags a terminal at zero.ضابط المستحوذ: مراقبة الحجم المتوقع للتاجر تُعلّم جهازاً عند الصفر.
What each role takes awayما يستخلصه كل دور
- Ops: store-and-forward is a safety net with a cost; every queued transaction is a late-clearing and a hold-expiry risk.العمليات: التخزين ثم الإرسال شبكة أمان لها كلفة؛ كل معاملة في الانتظار مخاطرة مقاصة متأخرة وانتهاء حجز.
- Dev: advices must carry the original date-time (DE12/13) so issuers post to the right day and recon can match.المطور: يجب أن تحمل الإشعارات التاريخ والوقت الأصليين (DE12/13) حتى يقيّد المُصدرون في اليوم الصحيح وتتمكن المطابقة من المطابقة.
- BA: offline floor limits are a product decision balancing sales continuity against credit risk — document who owns it.المحلل: الحدود الأرضية دون اتصال قرار منتج يوازن استمرارية المبيعات مع مخاطر الائتمان — وثّق من يملكه.
- Risk: offline approvals are where cloned-card and insufficient-funds losses concentrate; keep the floor limit low.المخاطر: تتركز خسائر البطاقات المستنسخة والرصيد غير الكافي في الموافقات دون اتصال؛ أبقِ الحد الأرضي منخفضاً.
Identifiers: what to log so every transaction can be foundالمعرّفات: ما الذي تسجّله حتى يمكن العثور على كل معاملة
| Railالنظام | Identifierالمعرّف | Assigned byيعيّنه | Survives toيبقى حتى | Use it forاستخدمه لـ |
|---|---|---|---|---|
| Cardsالبطاقات | STAN (DE11) | Terminal / hostالجهاز / النظام | Auth response, reversalاستجابة التفويض، العكس | Idempotency, reversal matchingعدم التكرار، مطابقة العكس |
| Cardsالبطاقات | RRN (DE37) | Acquirerالمستحوذ | Clearing, disputesالمقاصة، النزاعات | Auth ↔ clearing link, customer receiptsربط التفويض بالمقاصة، إيصالات العملاء |
| Cardsالبطاقات | Auth code (DE38)رمز التفويض (DE38) | Issuerالمُصدر | Clearingالمقاصة | Proof of approvalإثبات الموافقة |
| Cardsالبطاقات | ARN | Acquirer (at clearing)المستحوذ (عند المقاصة) | Refunds, chargebacks, arbitrationالاسترداد، النزاعات، التحكيم | The dispute keyمفتاح النزاع |
| Cards (tokenised)البطاقات (مرمّزة) | Token + token requestor IDالرمز + معرّف طالب الرمز | TSPمزوّد خدمة الرموز | Lifecycle of the tokenدورة حياة الرمز | Never log the PAN; log token last 4 + issuerلا تسجّل رقم البطاقة أبداً؛ سجّل آخر 4 أرقام من الرمز + المُصدر |
| ISO 20022ISO 20022 | EndToEndId | Initiating customerالعميل المُبادر | Creditor's statementكشف المستفيد | Customer-side reconciliationالمطابقة من جانب العميل |
| ISO 20022ISO 20022 | TxId / InstrId / MsgId | Bankالبنك | Interbank legالشق بين البنوك | Bank-side tracingالتتبع من جانب البنك |
| ISO 20022 / SWIFTISO 20022 / سويفت | UETR | Originating bankالبنك المُنشئ | Every hop (gpi tracker)كل قفزة (متتبع gpi) | "Where is my payment?"«أين دفعتي؟» |
| Bill hubsمراكز الفواتير | SADAD payment reference + bill numberمرجع الدفع في سداد + رقم الفاتورة | Hubالمركز | Biller fileملف جهة الفوترة | Biller reconciliationمطابقة جهة الفوترة |
| Your platformمنصتك | Order / payout / intent IDمعرّف الطلب / الدفعة / النية | Youأنت | Sent as merchant reference / EndToEndIdيُرسل كمرجع تاجر / EndToEndId | The one key that ties all of the above togetherالمفتاح الوحيد الذي يربط كل ما سبق |
Logging rule: identifiers yes, PAN never, CVV never, full track data never, PIN never. Mask PANs to first 6 / last 4 at most, and only where PCI scope allows. A log file full of card numbers is a breach waiting for a date.قاعدة التسجيل: المعرّفات نعم، رقم البطاقة أبداً، رمز الأمان أبداً، بيانات الشريط الكاملة أبداً، الرقم السري أبداً. قنّع أرقام البطاقات إلى أول 6 / آخر 4 على الأكثر، وحيث يسمح نطاق PCI فقط. ملف سجل مليء بأرقام البطاقات اختراق ينتظر موعداً.
Who owns what in the lifecycleمن يملك ماذا في دورة الحياة
| Stageالمرحلة | BA / Productالمحلل / المنتج | Operationsالعمليات | Developersالمطورون | Compliance / Riskالامتثال / المخاطر | Artefactالمخرج |
|---|---|---|---|---|---|
| State modelنموذج الحالات | ● | ◐ | ● | ◐ | State diagram with timers and permissionsمخطط حالات بمؤقتات وصلاحيات |
| Message mappingتحويل الرسائل | ◐ | — | ● | — | Field mapping spec (ISO 8583 / 20022 ↔ internal)مواصفة تحويل الحقول (ISO 8583 / 20022 ↔ الداخلي) |
| Decision rulesقواعد القرار | ● | ◐ | ● | ● | Rule catalogue with owners and response codesكتالوج قواعد بمسؤولين ورموز استجابة |
| Cut-off calendarتقويم أوقات الإقفال | ◐ | ● | ◐ | — | Per-rail, per-corridor calendar incl. holidaysتقويم لكل نظام وممر شاملاً العطلات |
| Reconciliation designتصميم المطابقة | ● | ● | ● | ◐ | Sources, keys, tolerances, break taxonomyالمصادر، المفاتيح، التسامحات، تصنيف الفروقات |
| Exception proceduresإجراءات الاستثناءات | ● | ● | ◐ | ● | Refund/return/recall/dispute SOPs with SLAsإجراءات موحدة للاسترداد/الإرجاع/الاسترجاع/النزاع باتفاقيات مستوى خدمة |
| KPIs & runbooksالمؤشرات وأدلة التشغيل | ◐ | ● | ◐ | ● | KPI page with owners; runbook libraryصفحة مؤشرات بمسؤولين؛ مكتبة أدلة تشغيل |
| Logging & identifiersالتسجيل والمعرّفات | ◐ | ◐ | ● | ● | Logging standard (what, masked how, retained how long)معيار تسجيل (ماذا، كيف يُقنّع، كم يُحتفظ به) |
Six misconceptions to unlearn todayست مغالطات عليك التخلّص منها اليوم
"A timeout means it failed."«انتهاء المهلة يعني الفشل.»
It means you do not know. Reverse (cards) or query (instant) with the same key; never let the customer retry blind.يعني أنك لا تعرف. اعكس (البطاقات) أو استعلم (الفوري) بالمفتاح نفسه؛ ولا تدع العميل يعيد المحاولة عشوائياً أبداً.
"Approved means the merchant will get paid."«الموافقة تعني أن التاجر سيُدفع له.»
Only if it is captured and cleared within the window, with matching keys, and not disputed. Approval is the start of the guarantee, not the end.فقط إذا قُبضت وقوصّت ضمن النافذة، بمفاتيح مطابقة، ودون نزاع. الموافقة بداية الضمان لا نهايته.
"Reconciliation is a finance job."«المطابقة عمل المالية.»
Finance signs it off; product designs the keys, dev carries them, ops runs the queue, risk reads the ageing. A break is everyone's ticket.تعتمدها المالية؛ ويصمم المنتج المفاتيح، ويحملها المطورون، وتدير العمليات القائمة، وتقرأ المخاطر الأعمار. الفرق تذكرة للجميع.
"Instant rails have no exceptions."«الأنظمة الفورية بلا استثناءات.»
They have returns, recalls, timeouts, duplicates and settlement-cap breaches — just no chargebacks.لديها الإرجاع والاسترجاع وانتهاء المهلة والتكرار وتجاوز سقوف التسوية — فقط بلا نزاعات.
"The cut-off is the bank's problem."«وقت الإقفال مشكلة البنك.»
It is the product's promise. If your portal lets a user send after cut-off without showing the value date, the missed salary is your incident.هو وعد المنتج. إذا سمحت بوابتك للمستخدم بالإرسال بعد الإقفال دون إظهار تاريخ القيمة، فالراتب الفائت حادثك أنت.
"Log everything; we'll filter later."«سجّل كل شيء؛ سنصفّي لاحقاً.»
Logging card data is a PCI breach the day it happens. Log identifiers, mask PANs, and decide retention before go-live.تسجيل بيانات البطاقات اختراق لـPCI يوم حدوثه. سجّل المعرّفات، وقنّع أرقام البطاقات، وقرر مدة الاحتفاظ قبل الإطلاق.
Glossaryالمسرد
- Advice (0120 / 0220 / 0420)إشعار (0120 / 0220 / 0420)
- Message informing a party of something already done (offline approval, stand-in, reversal).رسالة تُعلم طرفاً بشيء تم بالفعل (موافقة دون اتصال، معالجة بديلة، عكس).
- Batch closeإقفال الدفعة
- Terminal end-of-day that submits captured transactions for clearing.نهاية يوم الجهاز التي ترسل المعاملات المقبوضة للمقاصة.
- Breakالفرق
- A reconciliation mismatch awaiting explanation.عدم تطابق في المطابقة ينتظر تفسيراً.
- CVMطريقة التحقق من حامل البطاقة
- Cardholder verification method: PIN, signature, device biometrics, none.رقم سري، توقيع، قياسات حيوية على الجهاز، لا شيء.
- DE (data element)عنصر البيانات (DE)
- A numbered field in an ISO 8583 message.حقل مرقّم في رسالة ISO 8583.
- Floor limitالحد الأرضي
- Amount below which a terminal may approve offline.المبلغ الذي يجوز للجهاز الموافقة دونه دون اتصال.
- Holdالحجز
- Reserved amount after authorisation, before posting.مبلغ محجوز بعد التفويض وقبل القيد.
- Idempotencyعدم التكرار
- Property that repeating a request with the same key produces the same result once.خاصية أن تكرار الطلب بالمفتاح نفسه ينتج النتيجة نفسها مرة واحدة.
- Maker-checkerصانع-مراجع
- One person prepares, another approves.يُعدّ شخص ويوافق آخر.
- MTIمؤشر نوع الرسالة
- Message type indicator in ISO 8583 (0100 request, 0110 response, 0400 reversal…).مؤشر نوع الرسالة في ISO 8583 (0100 طلب، 0110 استجابة، 0400 عكس…).
- Partial approvalالموافقة الجزئية
- Issuer approves less than requested (DE39 = 10).يوافق المُصدر على أقل من المطلوب (DE39 = 10).
- Postingالقيد
- Ledger entry that changes the account balance.قيد دفتري يغيّر رصيد الحساب.
- Provisional creditالإيداع المؤقت
- Temporary credit to a customer while a dispute is investigated.إيداع مؤقت للعميل أثناء التحقيق في نزاع.
- Reason codeرمز السبب
- Code explaining a rejection, return or dispute (AC01, AM04; scheme dispute codes).رمز يفسّر رفضاً أو إرجاعاً أو نزاعاً (AC01، AM04؛ رموز نزاعات الشبكة).
- Response code (DE39)رمز الاستجابة (DE39)
- Issuer's decision code in a card authorisation.رمز قرار المُصدر في تفويض البطاقة.
- Store-and-forwardالتخزين ثم الإرسال
- Queuing messages during an outage for later replay.إدراج الرسائل في قائمة انتظار أثناء الانقطاع لإعادة إرسالها لاحقاً.
- Three-way reconciliationالمطابقة الثلاثية
- Matching host, scheme/PSP and bank/RTGS records.مطابقة سجلات النظام والشبكة/مقدّم الخدمة والبنك/نظام التسوية.
- Toleranceالتسامح
- Allowed difference in amount or date for a match.الفرق المسموح في المبلغ أو التاريخ للمطابقة.
- UETRUETR
- Unique end-to-end transaction reference used in SWIFT gpi tracking.مرجع معاملة فريد من طرف إلى طرف يُستخدم في تتبع سويفت gpi.
- Value dateتاريخ القيمة
- Date funds count as received.التاريخ الذي تُعدّ فيه الأموال مستلمة.
- Voidالإلغاء
- Cancelling a captured transaction before batch close.إلغاء معاملة مقبوضة قبل إقفال الدفعة.
Knowledge checkاختبار الفهم
Ten questions. Click an answer to see immediate feedback; your score appears after the last one.عشرة أسئلة. انقر على إجابة لترى التغذية الراجعة فوراً؛ وتظهر نتيجتك بعد السؤال الأخير.
Workshop: write the runbook and the reconورشة عمل: اكتب دليل التشغيل والمطابقة
Teams of three (40 min). Pick one scenario. Deliver a one-page runbook and a reconciliation design table.فرق من ثلاثة (40 دقيقة). اختر سيناريو واحداً. سلّم دليل تشغيل من صفحة واحدة وجدول تصميم مطابقة.
Scenariosالسيناريوهات
- A Saudi wallet's SARIE IPS outbound transfers time out for 20 minutes on a Friday eveningتنتهي مهل التحويلات الصادرة عبر سريع الفوري لمحفظة سعودية لمدة 20 دقيقة مساء الجمعة
- A Saudi acquirer's mada settlement file arrives with 3% fewer records than its hostيصل ملف تسوية مدى لمستحوذ سعودي بسجلات أقل بنسبة 3% من نظامه
- A Saudi marketplace launches SARIE IPS request-to-pay at checkout and must reconcile it beside cardsتطلق سوق إلكترونية سعودية طلب الدفع عبر سريع الفوري في صفحة الدفع ويجب أن تطابقه بجانب البطاقات
- A Saudi contractor's Mudad bulk salary run is rejected at cut-off on the 27thيُرفض تشغيل رواتب مُدد الجماعي لمقاول سعودي عند الإقفال في اليوم 27
| Deliverable sectionقسم المخرج | Your answerإجابتك |
|---|---|
| State model touched (states, events, timers)نموذج الحالات المتأثر (الحالات، الأحداث، المؤقتات) | |
| Runbook: trigger and thresholdدليل التشغيل: المحفّز والعتبة | |
| Runbook: impact sizing in 10 minutesدليل التشغيل: تقدير الأثر خلال 10 دقائق | |
| Runbook: immediate actions and communicationsدليل التشغيل: الإجراءات الفورية والتواصل | |
| Runbook: recovery and closure proofدليل التشغيل: التعافي وإثبات الإغلاق | |
| Recon: sources and keysالمطابقة: المصادر والمفاتيح | |
| Recon: tolerances and break taxonomy with ownersالمطابقة: التسامحات وتصنيف الفروقات بمسؤولين | |
| KPIs that would have caught it earlierالمؤشرات التي كانت ستلتقطه مبكراً | |
| Identifiers to log (and what not to)المعرّفات التي تُسجَّل (وما لا يُسجَّل) |
Summary and what comes nextالخلاصة وما التالي
Seven things to carry forwardسبعة أمور تحملها معك
- Model every payment as states, events, timers and owners before building screens.نمذج كل دفعة كحالات وأحداث ومؤقتات ومسؤولين قبل بناء الشاشات.
- Read the message: DE39 and reason codes tell the truth; identifiers link everything.اقرأ الرسالة: يقول DE39 ورموز السبب الحقيقة؛ وتربط المعرّفات كل شيء.
- Authorisation reserves; capture and clearing move the claim; settlement moves the money; finality is a defined event.يحجز التفويض؛ وينقل القبض والمقاصة الادعاء؛ وتنقل التسوية المال؛ والنهائية حدث محدد.
- Cut-offs and calendars differ by rail and corridor — the Kingdom's Sunday–Thursday week vs its partners', Ramadan hours, Eid.تختلف أوقات الإقفال والتقاويم بحسب النظام والممر — أسبوع المملكة من الأحد إلى الخميس مقابل أسابيع شركائها، ساعات رمضان، العيد.
- Reconcile three ways, at transaction level, on keys with tolerances; publish the ageing.طابق ثلاثياً، على مستوى المعاملة، بالمفاتيح مع التسامحات؛ وانشر الأعمار.
- A timeout is UNKNOWN: reverse or query with the same key; never blind-retry.انتهاء المهلة نتيجة مجهولة: اعكس أو استعلم بالمفتاح نفسه؛ ولا تعد المحاولة عشوائياً أبداً.
- KPIs with owners, runbooks for what recurs, and logs that never contain a PAN.مؤشرات بمسؤولين، وأدلة تشغيل لما يتكرر، وسجلات لا تحتوي رقم بطاقة أبداً.
Next: Chapter 05 — Message Standards: ISO 20022, MT & MXالتالي: الفصل 05 — معايير الرسائل: ISO 20022 وMT وMX
We open the messages themselves: ISO 20022 structure and the business-application-message hierarchy, the pacs/pain/camt families in depth, SWIFT's MT to MX migration and coexistence rules, mapping and truncation risks, structured addresses and purpose codes, validation, and how SARIE, SARIE IPS and Buna each profile the standard.نفتح الرسائل نفسها: بنية ISO 20022 والتسلسل الهرمي لرسائل تطبيقات الأعمال، وعائلات pacs/pain/camt بعمق، والانتقال من MT إلى MX في سويفت وقواعد التعايش، ومخاطر التحويل والاقتطاع، والعناوين المنظمة ورموز الغرض، والتحقق، وكيف يصوغ كل من سريع وسريع الفوري وبُنى المعيار بطريقته.
Before the next sessionقبل الجلسة التالية
- Finish the workshop runbook and recon design.أكمل دليل التشغيل وتصميم المطابقة من الورشة.
- Get one real (redacted) authorisation log line and one pacs.002 from your team; label every field you recognise.احصل على سطر سجل تفويض حقيقي واحد (بعد حجب البيانات) ورسالة pacs.002 واحدة من فريقك؛ وسمِّ كل حقل تتعرف عليه.
- List your organisation's cut-offs for each rail and corridor, and the date they were last verified.عدّد أوقات الإقفال في مؤسستك لكل نظام وممر، وتاريخ آخر تحقق منها.
Sources and notesالمصادر والملاحظات
ISO 8583 and ISO 20022 public field definitions · scheme public rules on holds, clearing windows and dispute cycles · central-bank calendars (UAE weekend change, January 2022). Response-code shares, KPI targets, hold durations and case figures are illustrative; check your scheme's current tables.تعريفات الحقول العامة في ISO 8583 وISO 20022 · القواعد العامة للشبكات بشأن الحجوزات ونوافذ المقاصة ودورات النزاع · تقاويم البنوك المركزية (تغيير عطلة الإمارات، يناير 2022). حصص رموز الاستجابة وأهداف المؤشرات ومدد الحجز وأرقام الحالات توضيحية؛ راجع جداول شبكتك الحالية.