Payment reference rule examples
Use these examples as templates when you configure payment reference rules in Continia Banking. Each example shows how to match common payment reference formats.
Example 1: Finnish Reference Number (FI)
- Format: Numeric, includes a check digit (Modulus 10)
- Sample Reference:
12345672
Configuration
- Validation Pattern:
^\d{8}$ - Check Digit: Enabled (Modulus 10)
- Direct Match: Enabled
- Match to Table: Customer Ledger Entry
- Match to Field: Document No.
Note
When Direct Match is enabled, Reference Start Position and Reference Length are automatically cleared and not used.
Example 2: Swedish OCR Number
- Format: Numeric, variable length, check digit (Modulus 10)
- Sample Reference:
12345678903
Configuration
- Validation Pattern:
^\d{10,12}$ - Check Digit: Enabled (Modulus 10)
- Direct Match: Enabled
- Match to Table: Customer Ledger Entry
- Match to Field: Document No.
Example 3: Norwegian KID Number
- Format: Numeric, variable length, check digit (Modulus 10 or 11)
- Sample Reference:
12345678903
Configuration
- Validation Pattern:
^\d{5,25}$ - Check Digit: Enabled (Modulus 10 or 11)
- Direct Match: Enabled
- Match to Table: Customer Ledger Entry
- Match to Field: Document No.
Example 4: Reference with embedded document type
- Format: "INV2024001" (where "INV" is the document type indicator, "2024001" is the reference)
- Sample References:
INV2024001(Invoice)CM2024002(Credit Memo)
Configuration
- Create document type mappings:
- Code = "INV_MAPPING", Document Type Indicator = "INV", Document Type = "Invoice"
- Code = "CM_MAPPING", Document Type Indicator = "CM", Document Type = "Credit Memo"
- Configure the rule:
- Validation Pattern:
^[A-Z]{2,3}\d{7}$ - Direct Match: Disabled
- Reference Start Position: 4
- Reference Length: 7
- Match Document Type: Enabled
- Document Type Start Position: 1
- Document Type Length: 3
- Match to Table: Customer Ledger Entry
- Match to Field: Document No.
- Validation Pattern:
- Link mappings to the rule:
- Use the Related Document Types to link "INV_MAPPING" and "CM_MAPPING".
Expected behavior
The system extracts "2024001" for matching and identifies it as an invoice document type.
Example 5: Bank-specific reference format
- Format: Varies by bank
- Examples:
- Bank A: 10-digit reference
^\d{10}$ - Bank B: 12-digit reference
^\d{12}$
- Bank A: 10-digit reference
Configuration:
- Create separate rules filtered by Bank Code:
- Rule 1: Bank Code BANKA
- Rule 2: Bank Code BANKB
Each rule applies only to transactions from the specified bank.
Example 6: Modulus 10 Recursive check digit
- Format: Scandinavian payment reference using Modulus 10 recursive check digit
- Sample Reference:
1234567890(where the last digit is the check digit)
Configuration
- Validation Pattern:
^\d{10,15}$ - Check Digit: Enabled
- Check Digit Algorithm: Modulus 10 recursive
- Check Digit Position: 10 (position of the check digit)
- Check Digit Calc. Start Pos.: 1
- Check Digit Calc. Length: 9
- Direct Match: Enabled
- Match to Table: Customer Ledger Entry
- Match to Field: Document No.
Expected behavior
The system validates the check digit using the Modulus 10 recursive algorithm before matching the reference.
Example 7: Combined filters
- Format: CAMT053 statements from specific bank with ISO transaction codes
- Sample Reference:
98765432
Configuration
- Validation Pattern:
^\d{8}$ - Direct Match: Enabled
- Statement Type: CAMT053
- Bank Code: NORDEA
- Domain Code: PMNT
- Family Code: RCDT
- Sub-Family Code: ESCT
- Match to Table: Customer Ledger Entry
- Match to Field: Document No.
Expected behavior
This rule only applies to:
- CAMT053 statements
- From bank NORDEA
- With ISO transaction code PMNT-RCDT-ESCT (payment received credit transfer)
Example 8: Convert a 32‑character hex value to a GUID
- Format: 32‑character hexadecimal string without hyphens
- Sample Reference:
00112233445566778899aabbccddeeff - Converted Format:
00112233-4455-6677-8899-aabbccddeeff
Configuration
Create the validation pattern:
Validation Pattern Code:
INVALIDGUIDDescription:
GUID without '-'Pattern Text:
(?<![0-9a-f])[0-9a-f]{32}(?![0-9a-f])
This pattern identifies transaction text that contains exactly 32 hex characters.
Create the transformation pattern:
Pattern Code:
GUIDDescription:
Add - to GUIDPattern Text:
(?<=[0-9a-f]{8})(?=[0-9a-f]{24}$)|(?<=[0-9a-f]{12})(?=[0-9a-f]{20}$)|(?<=[0-9a-f]{16})(?=[0-9a-f]{16}$)|(?<=[0-9a-f]{20})(?=[0-9a-f]{12}$)
The pattern marks positions where hyphens should be inserted to form the standard GUID format.
Create a Continia Banking Import Transformation Rule:
- Code:
ADD-GUID - Description:
Add missing '-' to GUID - Transformation Type: Regular Expression – Replace
- Find Value by Pattern:
GUID - Replace Value:
- - Test Input:
00112233445566778899aabbccddeeff - Expected Result:
00112233-4455-6677-8899-aabbccddeeff
- Code:
Create the payment reference rule:
- Code:
ING - Description:
GUID Reference - Search Field Template:
DESCTRANSACDETAILS - Validation Pattern Code:
INVALIDGUID - Match to Table: Bank Account Ledger Entry
- Match to Field: CTS‑CB Unique ID
- Transformation Rule:
ADD-GUID - Direct Match: Enabled
- Code:
Expected behavior
The system detects the 32‑character hex value, converts it to a hyphenated GUID, and performs a direct lookup against the CTS‑CB Unique ID field in the Bank Account Ledger Entries.
Related information
Setting up a payment reference rule
Validation pattern codes for matching payment references
Default payment reference rules
Configuring check digit validation
Payment reference rules FAQ