| Status | Draft. |
| Version | 0.1.0, 2026-11-28 |
| Profile of | None: an OCI protocol |
| Depends on | OCI-0 Core, OCI-1 Trust Registry |
| Used by | OCI-PAY-2 Payments Switch, OCI-PAY-3 Payment Apps, OCI-PAY-4 Switch Link |
| Reference implementation | ocipay-api (resolution at the switch), wren-api (a provider’s addresses), ocipay-bank-api (a bank’s addresses) |
1. Purpose
OCI-PAY-1 answers one question for a payments switch: “Who issued this payment address, which bank account stands behind it, and what may the payer be told about it?”
A payment address looks like asha@sbi or asha@wren. The part after the @ is the handle. The handle names who issued the address. It never names where the money is. A bank issues addresses for its own accounts (asha@sbi). A payment app issues addresses that point at an account in some bank (asha@wren may point at Asha’s account at SBI). The switch finds the issuer from the handle, asks the issuer about the address, and so learns which bank holds the account.
OCI-PAY-1 defines the address, the handle, the rules for issuing and pointing an address, how a switch resolves one, and what a payer sees on lookup. The messages that carry these steps belong to the sibling specs: OCI-PAY-2 (the switch and its bank-facing API), OCI-PAY-3 (payment apps and bank connect) and OCI-PAY-4 (the link between two countries’ switches).
2. Scope
In scope: address syntax and normalisation, handles and who owns them, the issuing and re-pointing rules, resolution at the switch, the lookup answer, assurance as carried, and the not-found and unavailable outcomes.
Out of scope, and specified elsewhere:
- The signature on every call, idempotency and the payment state machine. OCI-PAY-2.
- Bank connect, the protocol by which an address comes to point at an account, and the provider’s own endpoints. OCI-PAY-3.
- The link between switches and cross-border payments. OCI-PAY-4.
- Clearing, settlement, fees, FX, disputes, sanctions and transaction monitoring. OCI-PAY-2 and the scheme’s own rules.
3. Terms
OCI-PAY-1 uses the terms of OCI-0 §3, and these:
| Term | Meaning |
|---|---|
| Payment address | A string local@handle that a payer uses to pay, or to ask for money from, its holder (§4). |
| Handle | The part of an address after the @. It names the address’s issuer (§5). |
| Issuer | The participant that owns the handle and keeps the directory from its addresses to accounts: a bank or a provider. |
| Provider | A payment app registered in the trust registry with kind provider (OCI-PAY-3). It issues addresses, holds no accounts and holds no money. Example: Wren. |
| Bank’s own app | A provider whose registry entry has acts_for set to a bank. It has no handle and works on the bank’s addresses. Example: SBI Pay. |
| Account reference | The opaque string a bank gave one provider for one account at bank connect (OCI-PAY-3). Only that bank can read it. |
| Home switch | The switch of the country in a provider’s registry entry. A provider is reached only through it (OCI-PAY-3). |
| Holder | The person an address belongs to. |
| Resolution | The switch’s work to turn an address into the account’s bank, an account reference if any, and the account’s country (§7). |
| Lookup | A payer-side request to the switch, POST /v1/lookup (OCI-PAY-2), whose answer is what the payer is shown before paying (§9). |
4. Payment address
A payment address is local@handle. The local part names the holder within the issuer. The handle names the issuer.
- ADDR-4.1 Before any other check, a party that receives an address MUST normalise it: remove leading and trailing whitespace, then lower-case every character. The normalised form is the address. Two addresses are the same address only when their normalised forms are equal as strings.
- ADDR-4.2 A normalised address is valid when all of these hold:
- it contains an
@; - split at the last
@, the local part and the handle are both non-empty; - the local part contains no
@(so a valid address has exactly one@); - it contains no whitespace character;
- it is at most 200 characters long.
- it contains an
- ADDR-4.3 A switch MUST refuse an invalid address with HTTP 422, and MUST NOT look up its handle. Where the address is a field of a request body checked on arrival (every
/v1and/link/v1body in OCI-PAY-2 and OCI-PAY-4), the error code isVALIDATION_ERROR. Where it is checked later, the code isINVALID_ADDRESS. The message says that an address must look likename@handle. - ADDR-4.4 Beyond ADDR-4.2, the switch places no limit on the characters of an address. An issuer MAY issue only a narrower set, and SHOULD issue only lower-case ASCII letters, digits,
.,_and-in the local part (§14, look-alike addresses). - ADDR-4.5 An issuer that lets a holder choose the local part MUST refuse a name it would not issue. The reference provider issues local parts that match
^[a-z0-9][a-z0-9._-]{2,29}$: 3 to 30 characters, starting with a letter or a digit. It first trims and lower-cases the requested name and removes a trailing@<its handle>. It refuses any other name with HTTP 422BAD_ADDRESS. - ADDR-4.6 An address MUST NOT contain a national ID number, an account number, or any value derived from either that others could reverse. This is a duty of the issuer.
5. Handles
- ADDR-5.1 A handle names the participant that issued the address. It MUST NOT be read as naming the bank that holds the account, except when the issuer is that bank.
- ADDR-5.2 Only a participant of kind
bankor kindproviderowns a handle. A handle is the participant’saddress_suffixin the trust registry (OCI-1). A switch MUST ignore anaddress_suffixon a participant of any other kind. - ADDR-5.3 A bank owns its handle for the addresses of its own accounts (
asha@sbi). A provider owns its handle for the addresses it issues (asha@wren). - ADDR-5.4 A handle MUST be unique across the whole trust registry: across every country and every kind of participant. The registry enforces this with a unique index on
address_suffix. A handle belongs to no country. The account an address points at does. - ADDR-5.5 A switch MUST compare handles after removing one leading
@from the registry value and lower-casing both sides. A registry SHOULD store handles already in that form. - ADDR-5.6 Only an active participant owns its handle. A switch MUST treat the handle of a participant whose
statusis notactiveas unknown, so every address under it is not found (§10). - ADDR-5.7 A bank’s own app (a provider with
acts_fornaming a bank) MUST NOT have a handle. Its registry entry has noaddress_suffix. The bank stays the owner of its handle and of every address under it. Adding or removing the app MUST NOT change how the bank’s addresses resolve. - ADDR-5.8 A handle is registered by writing the participant’s entry in the trust registry. The registry has no public API to create one: an operator provisions it. A provider’s entry also carries
country, its home (OCI-PAY-3).
6. Issuing and pointing addresses
These are the rules of the model. They come from oci-docs plan 005.
- ADDR-6.1 The issuer keeps the directory from each of its addresses to one account. For a bank, the account is its own. For a provider, the directory entry holds the account’s bank (its registry id) and the account reference that bank gave this provider at bank connect (OCI-PAY-3). A provider MUST NOT store an account number.
- ADDR-6.2 An address points at exactly one account at a time.
- ADDR-6.3 A holder MAY have several addresses. They MAY be at one provider or at several, and addresses at several providers MAY point at the same account. Each provider then holds its own account reference for that account (
asha@wrenandasha@finchcan both pay into Asha’s SBI account). - ADDR-6.4 An issuer MUST NOT issue an address that is already issued. The reference provider refuses with HTTP 409
ADDRESS_TAKEN. - ADDR-6.5 Only the issuer re-points an address, at its holder’s request, and only to another account that the same holder has connected at that issuer. The new account MAY be at another bank and in another country. People who pay the address change nothing. The reference provider does this at
PUT /v1/addresses/{address}and answers HTTP 404ADDRESS_NOT_FOUNDwhen the address is not the caller’s. - ADDR-6.6 When the holder disconnects the account an address points at, the issuer MUST stop resolving that address. The reference provider deletes the address, and the name can be issued again (§14, reused addresses).
- ADDR-6.7 A bank’s own app MUST NOT issue addresses. When an account is connected in it, the app takes the address the bank already issued for that account. The reference provider, run as a bank’s own app, refuses to create or re-point an address with HTTP 403
ADDRESSES_ARE_THE_BANKS. - ADDR-6.8 Money never goes to the issuer. A payment to a provider’s address credits the account at its bank (OCI-PAY-2). A provider holds no money.
7. Resolution
Resolution happens at a switch, whenever it needs to know where an address leads: on a lookup (§9), a quote, a payment, or a request for money (OCI-PAY-2). The input is one address.
- ADDR-7.1 The switch MUST normalise and check the address (§4), split it at the last
@, and find the handle’s owner: the active participant of kindbankorproviderwhose handle equals the address’s handle (§5). - ADDR-7.2 If no participant owns the handle, the address is not found: HTTP 404
ADDRESS_NOT_FOUND. - ADDR-7.3 If the owner is a bank, that bank is both the issuer and the account’s bank. The switch does not ask the bank during resolution. It asks the bank later, at lookup (§9) or in the payment (OCI-PAY-2).
- ADDR-7.4 If the owner is a provider, the switch MUST ask that provider: a signed
POST /switch/v1/resolvewith the body{"address": "<the normalised address>"}. What the provider answers is its duty under OCI-PAY-3. The switch MUST require non-emptybankandaccountin the answer, and takesnameandassurancefrom it when present. - ADDR-7.5 The switch MUST reach the provider only through the provider’s home switch. When the provider’s
countryis this switch’s country, the switch calls the provider directly. Otherwise it sends the call to the peer switch of the provider’s country asPOST /link/v1/to-provider(OCI-PAY-4), which forwards it and passes the provider’s answer back unchanged. If no peer switch of that country is registered, the provider counts as not answering (ADDR-7.10). - ADDR-7.6 The
banka provider names MUST be the registry id of an active participant of kindbank. If it is not, the address is not found: HTTP 404ADDRESS_NOT_FOUND. - ADDR-7.7 The account’s country is the
countryof the account’s bank in the trust registry. The switch MUST take it from the registry, never from the provider’s or the bank’s answer. When it is the switch’s own country, the account is local. Otherwise the switch MUST route through the peer switch of that country (OCI-PAY-4). If none is registered: HTTP 503PEER_UNAVAILABLE. - ADDR-7.8 A switch MUST NOT cache a resolution. Every switch that handles a lookup or a payment resolves the address for itself, each time. So a peer switch that receives
/link/v1/lookupresolves the address again. - ADDR-7.9 A switch MAY cache the trust registry’s participant list. The reference keeps it for 60 seconds and serves the last good copy when the registry cannot be reached. A switch that has never fetched it answers HTTP 503
TRUST_UNAVAILABLE. - ADDR-7.10 When the provider does not answer (a network error, a timeout, a 5xx, or an answer the switch cannot tell apart from one), the switch MUST answer HTTP 503
PROVIDER_UNAVAILABLE. Any other answer that is not a success, and a success withoutbankandaccount, MUST be treated as not found: HTTP 404ADDRESS_NOT_FOUND. The reference waits 4 seconds for a provider in its own country and 7 seconds over the link.
POST /switch/v1/lookup Look up one of the bank's addresses · served by a bank
Returns the holder of one of the bank's own customer addresses, never an internal account. Called by the switch of the bank's own country. Defined in SW-8.1, SW-7.1.
| Request | Type | Required | Meaning | Clause |
|---|---|---|---|---|
address | string | yes | The address to look up. (at most 200 characters) | SW-6.8 |
| Response | Type | Required | Meaning | Clause |
|---|---|---|---|---|
address | string | yes | The address looked up, lower-cased. (at most 200 characters) | SW-6.8 |
name | string | yes | The account holder's name. | |
verified | boolean | yes | Whether the name comes from a checked identity. | |
bank_name | string | yes | The bank that holds the account; the switch falls back to its registry display_name. | SW-7.2 |
country | string | yes | The ISO 3166-1 alpha-2 country of the account. (pattern ^[A-Z]{2}$) | |
assurance | "low" | "substantial" | "high" | yes | How strongly the holder's identity was checked (CORE-4). | SW-8.1 |
cross_border | boolean | yes | True when the account is in the other country. | SW-7.2 |
Errors
404 ADDRESS_NOT_FOUND(SW-8.1)
POST /switch/v1/resolve Whose address is this? · served by a provider
For an address this app issued that points at an active link: the holder's name, the bank behind it, and the reference that bank gave the app. Called by Its home switch. Defined in PSP-14.6, PSP-14.7.
| Request | Type | Required | Meaning | Clause |
|---|---|---|---|---|
address | string | yes | A payment address this app issued, such as ravi@wren. Compared in lower case. (at most 200 characters; at least 3) | PSP-14.6 |
| Response | Type | Required | Meaning | Clause |
|---|---|---|---|---|
address | string | yes | The address, in lower case. | |
name | string | yes | The account holder's name, for payer confirmation. | |
assurance | "low" | "substantial" | "high" | yes | How well the bank knows the holder, as the bank gave it at link. | |
bank | string | yes | The bank that holds the account behind the address. | PSP-14.7 |
account | string | yes | The account reference that bank gave this app. | PSP-14.7 |
Errors
POST /link/v1/lookup Look up an address abroad · served by the switch
Who holds an address whose account is in this switch's country. Called by the other country's switch. Defined in LINK-6.1, LINK-6.2, LINK-6.3, LINK-6.4.
| Request | Type | Required | Meaning | Clause |
|---|---|---|---|---|
address | string | yes | A payment address, such as asha@sbi or maya@bofa, in lower case. Its account must be in this switch's country. | LINK-6.1 |
| Response | Type | Required | Meaning | Clause |
|---|---|---|---|---|
name | string | yes | The holder's name, as their bank or the issuing app holds it. | LINK-6.3 |
verified | boolean | yes | Whether the name comes from a checked identity. | LINK-6.3 |
bank_name | string | yes | The bank (or payment app) that answers for the address. | LINK-6.3 |
assurance | "low" | "substantial" | "high" | yes | How strongly the holder's identity was checked. | LINK-6.3 |
Errors
8. The resolution result
A resolution gives the switch the following. It is internal to the switch. §9 says what of it a payer may see.
| Item | Bank-issued address | Provider-issued address |
|---|---|---|
| Issuer | the bank | the provider |
| Account’s bank | the bank | the bank in the provider’s answer |
| Account reference | none | the account in the provider’s answer |
| Holder’s name | not yet known (asked at lookup) | the name in the provider’s answer |
| Assurance | not yet known (asked at lookup) | the assurance in the provider’s answer |
| Country | the bank’s registry country | the account’s bank’s registry country |
| Next hop | the bank if local, else the peer switch | the same |
- ADDR-8.1 The switch MUST pass a provider’s account reference only to the account’s bank, as
to_accounton the credit (OCI-PAY-2). It MUST NOT give it to the payer, to the payer’s bank or app, or to any other party. - ADDR-8.2 A bank-issued address has no account reference. The bank finds the account by the address itself.
- ADDR-8.3 The provider’s answer carries no country. A provider’s answer that includes one MUST NOT change the result (ADDR-7.7).
9. Lookup: what the payer sees
A payer’s bank, or a payer’s provider, asks the switch POST /v1/lookup {"address": ...} (OCI-PAY-2) before paying, to show the payer who they are paying.
-
ADDR-9.1 A lookup answer MUST carry exactly these members:
Member Type Meaning addressstring The normalised address (ADDR-4.1). namestring The holder’s name as the issuer holds it. This is the name check the payer sees. verifiedboolean truein this version whenever an answer is given (ADDR-9.6).bank_namestring The display name of the address’s issuer (ADDR-9.2, ADDR-9.3). countrystring The account’s country, ISO 3166-1 alpha-2 (CORE-3.2), from the registry (ADDR-7.7). assurancestring The holder’s assurance level as carried (§12): low,substantialorhigh.cross_borderboolean truewhen the account is in another country than the switch’s. -
ADDR-9.2 For a provider-issued address, the switch MUST answer from the resolution (§8) and MUST NOT ask the account’s bank.
nameandassuranceare the provider’s.bank_nameis the provider’s registrydisplay_name, not the name of the account’s bank.verifiedistrue. -
ADDR-9.3 For a bank-issued address in the switch’s country, the switch MUST ask the bank: a signed
POST /switch/v1/lookup {"address": ...}(OCI-PAY-2). From the bank’s answer it takesname,verified(defaulttrue),bank_name(default the bank’s registrydisplay_name) andassurance. It MUST ignore everything else the bank sends, and MUST setcountryitself (ADDR-7.7). -
ADDR-9.4 For an account in the other country, the switch MUST ask the peer switch,
POST /link/v1/lookup(OCI-PAY-4). The peer resolves the address itself (ADDR-7.8) and answers onlyname,verified,bank_nameandassurance. The asking switch then setsaddress,country(from the registry) andcross_border: true. -
ADDR-9.5 A lookup answer MUST NOT contain an account number, an account reference, the registry id of the account’s bank, a national ID number, a phone number, or any member not listed in ADDR-9.1.
-
ADDR-9.6 In this version
verifieddoes not report a separate check. It istruefor every address that is found. A payer MUST NOT read more into it than “the issuer answered for this address”. -
ADDR-9.7 A lookup changes nothing. It MAY be repeated.
POST /v1/lookup Look up an address · served by the switch
Returns who holds an address, so the payer can confirm the name before paying. Called by a bank of the switch's country. Defined in SW-7.1, SW-7.2, SW-7.3.
| Request | Type | Required | Meaning | Clause |
|---|---|---|---|---|
address | string | yes | The address to look up, as name@handle. (at most 200 characters) | SW-6.8 |
| Response | Type | Required | Meaning | Clause |
|---|---|---|---|---|
address | string | yes | The address looked up, lower-cased. (at most 200 characters) | SW-6.8 |
name | string | yes | The account holder's name. | |
verified | boolean | yes | Whether the name comes from a checked identity. | |
bank_name | string | yes | The bank that holds the account; the switch falls back to its registry display_name. | SW-7.2 |
country | string | yes | The ISO 3166-1 alpha-2 country of the account. (pattern ^[A-Z]{2}$) | |
assurance | "low" | "substantial" | "high" | yes | How strongly the holder's identity was checked (CORE-4). | SW-8.1 |
cross_border | boolean | yes | True when the account is in the other country. | SW-7.2 |
Errors
10. Not found and unavailable
| Case | HTTP | Code |
|---|---|---|
| The address is not valid (§4) | 422 | VALIDATION_ERROR or INVALID_ADDRESS (ADDR-4.3) |
| No active bank or provider owns the handle | 404 | ADDRESS_NOT_FOUND |
| The provider has no account behind the address | 404 | ADDRESS_NOT_FOUND |
| The provider names a bank that is not an active registered bank | 404 | ADDRESS_NOT_FOUND |
| The bank has no account with the address | 404 | ADDRESS_NOT_FOUND |
| The peer switch finds no account, or finds that the account is not in its country | 404 | ADDRESS_NOT_FOUND |
| The provider did not answer | 503 | PROVIDER_UNAVAILABLE |
| The bank did not answer | 503 | BANK_UNAVAILABLE |
| The peer switch did not answer, or none is registered | 503 | PEER_UNAVAILABLE |
| The trust registry cannot be reached and no copy is held | 503 | TRUST_UNAVAILABLE |
- ADDR-10.1 Every not-found case MUST use the one code
ADDRESS_NOT_FOUND. A caller MUST NOT be able to tell from the code which step failed. - ADDR-10.2 A switch MUST NOT report an unavailable participant as not found, and MUST NOT report a not-found address as unavailable. A payer’s app MAY retry an unavailable answer. It SHOULD NOT retry a not-found answer unchanged.
- ADDR-10.3 A not-found answer carries no body other than the error. It MUST NOT say who holds the address or whether it once existed. (Whether the handle exists is public in the registry; see §17 on messages.)
- ADDR-10.4 The error body is the switch’s error format (OCI-PAY-2, SW-13.1).
11. Requests and notices reach the issuer
The handle decides who hears about an address, not only where the money goes.
- ADDR-11.1 A request for money (a collect request, OCI-PAY-2) whose payer address a provider issued MUST be delivered to that provider and to nobody else. The account’s bank is not told. The switch of the account’s country delivers it. When that is the other country, the payee’s switch sends it over the link (OCI-PAY-4) and the peer delivers it, reaching the provider through its home switch (ADDR-7.5).
- ADDR-11.2 A request for money whose payer address a bank issued MUST be delivered to that bank. When the bank has its own app (ADDR-5.7), the switch MUST also deliver a copy to the app. A bank with no app is told nothing new.
- ADDR-11.3 When money arrives at a provider-issued address, the switch SHOULD tell the issuing provider (
/switch/v1/payments/received, OCI-PAY-3). When it arrives at a bank-issued address and the bank has its own app, the switch SHOULD tell the app. This is best effort: the money has moved whether or not the app hears. - ADDR-11.4 Only the issuer may use an address as the paying address of a payment or the payee address of a request for money. A switch MUST refuse any other caller with HTTP 403
ADDRESS_NOT_OWNED. A bank’s own app may also use the bank’s addresses, at the switch of the bank’s country, and only for that bank’s accounts (OCI-PAY-2, OCI-PAY-3).
12. Assurance
- ADDR-12.1
assurancecarries the holder’s level of assurance, one of the CORE-4 valueslow,substantialorhigh, as the account’s bank established it (OCI-3). For a provider-issued address, the provider repeats the level the bank gave it at bank connect (OCI-PAY-3). - ADDR-12.2 A switch passes
assurancethrough as the issuer gave it, once it has checked that the value is a CORE-4 level (ADDR-12.3). In this version it does not lower it to a cross-country recognition cap (TR-6.2). See §17. - ADDR-12.3
assuranceis never null in a lookup answer. An issuer’s answer with no name, or with no CORE-4 level, is not an answer: the switch MUST treat that issuer as unavailable (ADDR-10.2, OCI-PAY-2 SW-7.3), never pass the gap on. - ADDR-12.4 A payer’s bank or app MAY show the level to the payer. It MUST NOT treat it as proof of the holder’s identity.
13. Worked examples
The examples use the reference deployment: switches switch:IN and switch:US; banks bank:sbi and bank:hdfc (IN) and bank:chase (US); providers provider:wren (handle wren, home IN) and provider:finch (handle finch, home US). All data is synthetic (CORE-7.4).
13.1 Resolving ravi@wren to HDFC
SBI asks the Indian switch, signed (OCI-PAY-2):
POST /v1/lookup
{"address": "Ravi@Wren"}
-
The switch normalises the address to
ravi@wrenand splits it: handlewren. -
The owner of
wrenisprovider:wren, kindprovider, countryIN. Wren’s home is this switch, so the switch calls Wren directly:POST https://<wren>/switch/v1/resolve {"address": "ravi@wren"}Wren answers:
{"address": "ravi@wren", "name": "Ravi Menon", "assurance": "high", "bank": "bank:hdfc", "account": "ref-ravi"} -
bank:hdfcis an active bank in the registry, countryIN: the account is local. -
The switch does not ask HDFC (ADDR-9.2). It answers SBI:
{"address": "ravi@wren", "name": "Ravi Menon", "verified": true, "bank_name": "Wren", "country": "IN", "assurance": "high", "cross_border": false}
SBI learns neither the bank nor ref-ravi. When SBI then pays ravi@wren, the switch resolves the address again and credits HDFC with to_address: "ravi@wren" and to_account: "ref-ravi" (ADDR-8.1).
13.2 Resolving lena@finch from the IN switch through the US switch
SBI asks the Indian switch POST /v1/lookup {"address": "lena@finch"}.
-
The owner of
finchisprovider:finch, homeUS. The Indian switch may not call Finch itself (ADDR-7.5). It asks the US switch:POST https://<switch:US>/link/v1/to-provider {"provider": "provider:finch", "path": "/switch/v1/resolve", "body": {"address": "lena@finch"}} -
The US switch checks that Finch is registered with it, calls Finch’s
/switch/v1/resolvesigned asswitch:US, and passes back Finch’s answer unchanged:{"address": "lena@finch", "name": "Lena Kask", "assurance": "high", "bank": "bank:chase", "account": "ref-lena"} -
bank:chaseis in the US, so the account is not local. The Indian switch asks the US switchPOST /link/v1/lookup {"address": "lena@finch"}(OCI-PAY-4). -
The US switch resolves the address again for itself (ADDR-7.8). Finch is its own, so it asks Finch directly. The account is local to it, so it answers only:
{"name": "Lena Kask", "verified": true, "bank_name": "Finch", "assurance": "high"} -
The Indian switch adds
address,countryfrom the registry andcross_border, and answers SBI:{"address": "lena@finch", "name": "Lena Kask", "verified": true, "bank_name": "Finch", "country": "US", "assurance": "high", "cross_border": true}
Finch is asked twice, both times by switch:US. It is never called by switch:IN.
13.3 A not-found
SBI asks POST /v1/lookup {"address": "nobody@wren"}. The switch asks Wren /switch/v1/resolve {"address": "nobody@wren"}. Wren has no active account behind it and answers HTTP 404. The switch answers SBI:
HTTP/1.1 404
{"error": {"code": "ADDRESS_NOT_FOUND", "message": "No account has this address."}}
ravi@nohandle (no participant owns nohandle) and an address whose provider names a bank that is not registered give the same code (ADDR-10.1). If Wren had not answered at all, the answer would be HTTP 503 PROVIDER_UNAVAILABLE instead (ADDR-10.2).
14. Security considerations
- Who may ask. Every call in resolution carries the sender’s OCI-Signature and is checked against the trust registry (OCI-PAY-2 §4). A provider accepts
/switch/v1/resolveonly from its home switch (OCI-PAY-3). A peer switch forwards to a provider only when the provider is registered with it (OCI-PAY-4). So a resolve answer, which carries an account reference, goes only to a switch. - The handle decides. A request for money reaches the issuer and nobody else (ADDR-11.1). A payment from an address is accepted only from its issuer (ADDR-11.4). A second app cannot speak for another app’s addresses, and a bank’s own app cannot speak for another bank’s.
- A provider is trusted about its own addresses. The switch believes the bank and the account reference a provider names. It checks that the bank is an active registered bank (ADDR-7.6), and the bank credits only an account reference it issued and that is still active (OCI-PAY-3). The reference bank does not check, on a credit, that the reference was given to the provider whose address was paid (§17).
- Reused addresses. When an address is released (ADDR-6.6) its name can be issued to someone else. A payer who saved the old address would then pay the new holder. The lookup name check (ADDR-9.1) is the defence. Payers’ apps SHOULD show
namebefore every payment to a saved address. - Look-alike addresses. The switch allows any non-space character (ADDR-4.4). An address with a letter from another script that looks the same as a Latin one is a different address. Issuers that issue only ASCII (ADDR-4.4, ADDR-4.5) close this for their own handle. Handles themselves are provisioned by an operator (ADDR-5.8).
- Handle squatting. Handles are unique across the registry (ADDR-5.4) and only an operator writes them. A suspended participant’s addresses stop resolving at once (ADDR-5.6), within the switch’s registry cache time (ADDR-7.9).
- No cache to poison. Resolutions are not cached (ADDR-7.8). Re-pointing takes effect on the next payment.
- Enumeration. A lookup reveals whether an address exists and its holder’s name. The reference implementations do not rate-limit lookups (§17). Only signed participants can call
/v1/lookup, which limits who can try.
15. Privacy considerations
- No account numbers. No step of resolution carries an account number. A provider stores the bank’s account reference, never the number (ADDR-6.1). The reference leaves the switch only towards the account’s bank (ADDR-8.1).
- Minimum data on lookup. A lookup answer has seven members and no others (ADDR-9.1, ADDR-9.5). For a provider-issued address it names the provider, not the account’s bank, so the payer does not learn where the holder banks (ADDR-9.2).
- The link carries less. A peer switch returns four members on
/link/v1/lookup, and no account reference (ADDR-9.4). - One issuer hears. A request for money to a provider’s address is shown in that app only. The account’s bank does not learn which addresses its customer holds at which apps from requests (ADDR-11.1). It does learn the address used when money arrives (
to_addresson the credit, OCI-PAY-2). - No national ID. An address must not carry one (ADDR-4.6), and no answer carries one (ADDR-9.5).
- Names are personal data. The holder’s name is shown to anyone who can look up the address. Logs follow CORE-7.3.
16. Conformance
The reference tests cite these behaviours:
ocipay-api/tests/test_units.py · test_address_parsing: ADDR-4.1, ADDR-4.2.ocipay-api/tests/test_switch.py · test_lookup_local_cross_border_and_unknown: ADDR-4.3, ADDR-7.2, ADDR-9.1, ADDR-9.3, ADDR-9.4.ocipay-api/tests/test_providers.py: ADDR-7.4 to ADDR-7.7, ADDR-7.10, ADDR-8.1, ADDR-9.2, ADDR-10.1, ADDR-10.2 (lookup, not-found, timeout, the other country, the home switch, requests to a provider’s address), ADDR-11.1, ADDR-11.3.ocipay-api/tests/test_bank_app.py: ADDR-5.7, ADDR-11.2, ADDR-11.4.wren-api/tests/test_wren.py: ADDR-4.5, ADDR-6.1, ADDR-6.4 to ADDR-6.7, and the provider’s side of ADDR-7.4.
The tests do not yet carry ADDR clause IDs. ADDR-4.6, ADDR-5.4 (across every kind and country), ADDR-5.5 and ADDR-12 are not tested. A conformance harness that runs these checks against a running switch, bank and provider is planned (oci-docs plan 011, step 4).
An implementation conforms to OCI-PAY-1 0.1 when its switch resolves addresses as §7 says, answers lookups as §9 and §10 say, delivers as §11 says, and every address it issues meets §4 and §6.
17. Open questions
Divergences between the reference implementation, the proposal of 2026-11-18 and the drafts in docs/api:
- The address schema is wrong.
docs/api/schemas/payments-address.jsonsays the handle “names the resident’s bank” and restricts addresses to^[a-z0-9][a-z0-9._-]{0,63}@[a-z0-9][a-z0-9-]{0,31}$. The switch allows any non-space characters up to 200 (ADDR-4.2), and the handle names the issuer (ADDR-5.1). Decide whether the switch should enforce a character set; then fix the schema. - The resolution schema is wrong.
docs/api/schemas/payments-resolution.jsonhas noverifiedorcross_border, setsadditionalProperties: false, requiresnameandassurance, and limitsassuranceto the CORE-4 enum. The switch returns seven members, none of them null (ADDR-9.1). - The record schema and the OpenAPI file describe the proposal.
payment-address-record.json(exists,scheme_routing_data,trust_anchor_country,iat,exp) andoci-9-payment-addressing.yaml(no paths) match nothing that runs. Replace them with the lookup and resolve shapes, or remove them. TheGAPS.mdrows for OCI-PAY-1 (PAY-3 to PAY-7) are answered by this spec or listed here. - Lengths differ. The switch and the reference provider allow 200 characters. The reference bank connector allows 120 and splits at the first
@rather than the last. With one@the split is the same, but a 121- to 200-character bank address passes the switch and fails at the bank. - Case-sensitive uniqueness. The registry’s unique index on
address_suffixis case-sensitive, and the registry accepts a leading@.SBI,sbiand@sbicould be registered together, and a switch would take whichever it finds first (ADDR-5.5). Index the normalised handle. - Nothing stops a handle on the wrong participant. The registry does not refuse an
address_suffixon aswitchoridp, or on a bank’s own app (ADDR-5.2, ADDR-5.7). The switch ignores the first. The second would make the app own a handle. The store wiring prevents it; the registry does not. - A provider with no country. Registry migration 002 says a provider’s country may be empty. Plan 010 makes it the home, and the wiring refuses to register a provider without one. A provider with no country is unreachable: every resolve answers
PROVIDER_UNAVAILABLE. Makecountryrequired for a provider. - No recognition cap on assurance. The proposal (PAY-6.3) lowered a cross-border assurance level to the recognition cap. The registry holds a cap (India recognises the US switch at
substantial), but the switch passeshighthrough (ADDR-12.2). Decide whether the asking switch applies the cap, and to what: the peer switch, or the bank’s country. bank_namenames the issuer. For a provider-issued addressbank_nameis the provider’s name (ADDR-9.2). That keeps the holder’s bank private, but the member’s name says otherwise. Rename it (issuer_name) in a later version, or add the issuer as its own member.verifiedmeans nothing yet. It is alwaystrue(ADDR-9.6). Define a check behind it, or drop it.- The provider is asked more than once. Each switch resolves for itself (ADDR-7.8). A cross-border lookup asks the provider twice, and a payment asks again. A signed, short-lived resolve answer (the proposal’s PAY-5.4) would let the second switch trust the first switch’s answer.
- Not-found messages differ. The code is always
ADDRESS_NOT_FOUND(ADDR-10.1), but the human-readable message differs between “nobody is registered for this address” and “no account has this address”, which tells a caller whether the handle exists. Handles are public in the registry, so the leak is small. Use one message. - Error body. The switch answers
{"error": {"code", "message"}}, not CORE-9.1’s{"error", "error_description"}. OCI-PAY-2 owns this. - Credits are not bound to the provider. On a credit with
to_account, the reference bank looks up the reference without checking which provider it was given to (debits do check). A provider could point its address at a reference given to another provider for the same bank (§14). - No rate limit. The proposal required providers to rate-limit resolution and prevent enumeration (PAY-5.5). Nothing does yet.
- Re-pointing across issuers. An address cannot move from one provider to another. A holder who leaves a provider loses the address.
- One account per address. Plan 005 defers several accounts behind one address, with a default.
Proposal ideas that are not implemented and are not part of 0.1:
- Proving who owns an address with an OCI-3 KYC or an OCI-4 presentation at the bound level (PAY-6.1). Today the level comes from the account’s bank through bank connect (ADDR-12.1).
- Suspending an address on an OCI-7 event (death, deactivation, compromise; PAY-6.2).
- Payment trust marks
role/payment_address_providerandrole/account_mapperin OCI-1 (PAY-4.1). The switch uses the registry’skindinstead. - A government account mapper after G2P Connect, paying a beneficiary by programme identifier (PAY-7).
- ISO 20022 party and proxy identification, and mapping to Mojaloop’s account lookup or to Nexus (proposal §1, §8). OCI-PAY-1 defines its own JSON over HTTPS.
- Signed, short-lived resolution responses (PAY-5.4, at most 5 minutes). Requests are signed (OCI-PAY-2 §4). Responses are not.
- A purpose on each resolution (
pay,request_to_pay,g2p; PAY-5.1). - Merchant addresses and QR payments. The reference apps make QR codes for an address, but no QR format is specified.
Kept from the proposal and still true: the local@handle form (PAY-3.1), no national ID in an address (PAY-3.2, now ADDR-4.6), several addresses per holder and one account per address at a time (PAY-3.3, now ADDR-6.2 and ADDR-6.3), the display name for payer confirmation (PAY-5.3, now ADDR-9.1), no national ID in a response (PAY-5.2), and the rule that moving money is out of scope.
Changes
| Version | Date | What changed |
|---|---|---|
| 0.1.0 | 2026-11-28 | First version: promoted from the proposal of 2026-11-18 and rewritten to what the reference implementation does. Numbered OCI-PAY-1 in the payments family (first drafted as OCI-9). Message tables for each call. |