Skip to main content

IBAN format by country

San Marino IBAN format: length, structure and example

An IBAN from San Marino always has 27 characters: the country code SM, two check digits and the 23-character BBAN, made up of the 1-letter CIN check character, 5-digit ABI (bank code), 5-digit CAB (branch code) and 12-character conto (account number). Example: SM86 U032 2509 8000 0000 0270 100.

IBAN length
27 characters
Country code
SM (positions 1-2)
Check digits
Positions 3-4, mod-97
BBAN structure
1a 5n 5n 12c (1 letter, 5 digits, 5 digits, 12 letters or digits)
ABI (bank code)
Positions 6-10
SEPA
Yes, euro

Validate an IBAN from San Marino

Runs entirely in your browser. Nothing you type is sent, stored or tracked.

Try

San Marino IBAN structure

Positions count from the first character of the IBAN. Values in the last column come from the specimen for San Marino in the SWIFT IBAN Registry, release 102 (June 2026).

FieldPositionsLengthSpecimen
Country code1-22SM
IBAN check digits3-4286
CIN check character51U
ABI (bank code)6-10503225
CAB (branch code)11-15509800
Conto (account number)16-2712000000270100

SWIFT notation: SM2!n1!a5!n5!n12!c, where n = digits, a = upper-case letters, c = letters or digits and "!" means a fixed length.

San Marino IBAN example

SM86U0322509800000000270100

Print format: SM86 U032 2509 8000 0000 0270 100

  • Country code: SM
  • IBAN check digits: 86
  • CIN check character: U
  • ABI (bank code): 03225
  • CAB (branch code): 09800
  • Conto (account number): 000000270100

This is the published specimen from the SWIFT IBAN Registry, not a real customer account. It passes the mod-97 check, so use it to test forms and integrations; never send money to it.

National account format in San Marino

BBAN made of the CIN check character, ABI bank code, CAB branch code and a 12-character account number, as in Italy.

To find the ABI (bank code) in any IBAN from San Marino, read characters 6-10. The validator above splits every field out for you.

SEPA and direct debits in San Marino

San Marino uses the euro, so recurring collections from its IBANs can run on SEPA Direct Debit (Core for consumers, B2B for businesses).

SEPA Direct Debit lets a creditor collect from any SEPA IBAN under a signed mandate. Each mandate carries a unique mandate reference (UMR) and the creditor's SEPA Creditor Identifier. Under the Core scheme a payer can ask for a refund within 8 weeks of an authorised debit and within 13 months of an unauthorised one; the B2B scheme has no refund right.

Collections that fail come back as R-transactions: rejects before settlement, returns after it and refunds requested by the payer. Each carries an ISO 20022 reason code, for example AC04 (account closed), AM04 (insufficient funds), MD01 (no mandate) or MS02 (refused by the payer).

Every SEPA reason code, with what to do next, is in the SEPA Direct Debit reason code reference.

Why a direct debit fails even with a valid IBAN

An IBAN validator only proves the number is well formed. A direct debit can still come back unpaid because of what sits behind the account:

  • Account closed or moved: the IBAN was valid when the mandate was signed (SEPA reason code AC04).
  • Insufficient funds: the most common soft failure, and the one where the timing of the next attempt matters most (SEPA AM04).
  • Mandate problems: no valid mandate, a cancelled instruction or a payer who refused the debit (SEPA MD01 and MS02).
  • Account cannot be debited: savings accounts and some e-money or blocked accounts reject direct debits outright (SEPA AC06 and AG01).
  • Refunds after the fact: under the SEPA Core scheme a payer can reclaim an authorised debit for 8 weeks, so a collection that "succeeded" can still reverse.

Look up any return code in the SEPA Direct Debit reason codes, or see how Slicker handles failed direct debits.

Frequently asked questions

How many characters does an IBAN from San Marino have?

An IBAN from San Marino always has 27 characters: the country code SM, two check digits and a 23-character BBAN made up of the 1-letter CIN check character, 5-digit ABI (bank code), 5-digit CAB (branch code) and 12-character conto (account number).

What does an IBAN from San Marino look like?

The SWIFT IBAN Registry specimen for San Marino is SM86 U032 2509 8000 0000 0270 100 (electronic format SM86U0322509800000000270100). It is a published sample, not a real customer account, and it passes the mod-97 check.

Is San Marino part of SEPA?

Yes. San Marino is in the SEPA schemes' geographical scope. It uses the euro, so SEPA Direct Debit can collect from its IBANs.

Where is the bank code in an IBAN from San Marino?

Characters 6-10 (03225 in the specimen) are the ABI (bank code). Characters 11-15 (09800) are the CAB (branch code). The conto (account number) is characters 16-27. Positions count from the first letter of the country code.

Other IBAN formats

Losing subscription revenue to failed direct debits?

Slicker reads the reason code of every failed SEPA, Bacs or card payment and decides whether, when and how to retry, or when only the customer can fix it. Smart retries run on your existing billing platform, and you only pay when we outperform your current setup in a 50/50 test.

Cookie preferences

Your privacy matters

We use analytics to understand how you use our site and improve your experience. Privacy Policy