← Specifications

OCI-PAY-1 Payment Addressing

Version 0.1.0 · 2026-11-28 · Draft Changes
StatusDraft.
Version0.1.0, 2026-11-28
Profile ofNone: an OCI protocol
Depends onOCI-0 Core, OCI-1 Trust Registry
Used byOCI-PAY-2 Payments Switch, OCI-PAY-3 Payment Apps, OCI-PAY-4 Switch Link
Reference implementationocipay-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:

TermMeaning
Payment addressA string local@handle that a payer uses to pay, or to ask for money from, its holder (§4).
HandleThe part of an address after the @. It names the address’s issuer (§5).
IssuerThe participant that owns the handle and keeps the directory from its addresses to accounts: a bank or a provider.
ProviderA 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 appA 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 referenceThe opaque string a bank gave one provider for one account at bank connect (OCI-PAY-3). Only that bank can read it.
Home switchThe switch of the country in a provider’s registry entry. A provider is reached only through it (OCI-PAY-3).
HolderThe person an address belongs to.
ResolutionThe switch’s work to turn an address into the account’s bank, an account reference if any, and the account’s country (§7).
LookupA 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:
    1. it contains an @;
    2. split at the last @, the local part and the handle are both non-empty;
    3. the local part contains no @ (so a valid address has exactly one @);
    4. it contains no whitespace character;
    5. it is at most 200 characters long.
  • 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 /v1 and /link/v1 body in OCI-PAY-2 and OCI-PAY-4), the error code is VALIDATION_ERROR. Where it is checked later, the code is INVALID_ADDRESS. The message says that an address must look like name@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 422 BAD_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 bank or kind provider owns a handle. A handle is the participant’s address_suffix in the trust registry (OCI-1). A switch MUST ignore an address_suffix on 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 status is not active as unknown, so every address under it is not found (§10).
  • ADDR-5.7 A bank’s own app (a provider with acts_for naming a bank) MUST NOT have a handle. Its registry entry has no address_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@wren and asha@finch can 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 404 ADDRESS_NOT_FOUND when 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 kind bank or provider whose 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/resolve with the body {"address": "<the normalised address>"}. What the provider answers is its duty under OCI-PAY-3. The switch MUST require non-empty bank and account in the answer, and takes name and assurance from it when present.
  • ADDR-7.5 The switch MUST reach the provider only through the provider’s home switch. When the provider’s country is this switch’s country, the switch calls the provider directly. Otherwise it sends the call to the peer switch of the provider’s country as POST /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 bank a provider names MUST be the registry id of an active participant of kind bank. If it is not, the address is not found: HTTP 404 ADDRESS_NOT_FOUND.
  • ADDR-7.7 The account’s country is the country of 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 503 PEER_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/lookup resolves 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 without bank and account, MUST be treated as not found: HTTP 404 ADDRESS_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.

RequestTypeRequiredMeaningClause
addressstringyesThe address to look up. (at most 200 characters)SW-6.8
ResponseTypeRequiredMeaningClause
addressstringyesThe address looked up, lower-cased. (at most 200 characters)SW-6.8
namestringyesThe account holder's name.
verifiedbooleanyesWhether the name comes from a checked identity.
bank_namestringyesThe bank that holds the account; the switch falls back to its registry display_name.SW-7.2
countrystringyesThe ISO 3166-1 alpha-2 country of the account. (pattern ^[A-Z]{2}$)
assurance"low" | "substantial" | "high"yesHow strongly the holder's identity was checked (CORE-4).SW-8.1
cross_borderbooleanyesTrue 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.

RequestTypeRequiredMeaningClause
addressstringyesA payment address this app issued, such as ravi@wren. Compared in lower case. (at most 200 characters; at least 3)PSP-14.6
ResponseTypeRequiredMeaningClause
addressstringyesThe address, in lower case.
namestringyesThe account holder's name, for payer confirmation.
assurance"low" | "substantial" | "high"yesHow well the bank knows the holder, as the bank gave it at link.
bankstringyesThe bank that holds the account behind the address.PSP-14.7
accountstringyesThe 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.

RequestTypeRequiredMeaningClause
addressstringyesA payment address, such as asha@sbi or maya@bofa, in lower case. Its account must be in this switch's country.LINK-6.1
ResponseTypeRequiredMeaningClause
namestringyesThe holder's name, as their bank or the issuing app holds it.LINK-6.3
verifiedbooleanyesWhether the name comes from a checked identity.LINK-6.3
bank_namestringyesThe bank (or payment app) that answers for the address.LINK-6.3
assurance"low" | "substantial" | "high"yesHow 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.

ItemBank-issued addressProvider-issued address
Issuerthe bankthe provider
Account’s bankthe bankthe bank in the provider’s answer
Account referencenonethe account in the provider’s answer
Holder’s namenot yet known (asked at lookup)the name in the provider’s answer
Assurancenot yet known (asked at lookup)the assurance in the provider’s answer
Countrythe bank’s registry countrythe account’s bank’s registry country
Next hopthe bank if local, else the peer switchthe same
  • ADDR-8.1 The switch MUST pass a provider’s account reference only to the account’s bank, as to_account on 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:

    MemberTypeMeaning
    addressstringThe normalised address (ADDR-4.1).
    namestringThe holder’s name as the issuer holds it. This is the name check the payer sees.
    verifiedbooleantrue in this version whenever an answer is given (ADDR-9.6).
    bank_namestringThe display name of the address’s issuer (ADDR-9.2, ADDR-9.3).
    countrystringThe account’s country, ISO 3166-1 alpha-2 (CORE-3.2), from the registry (ADDR-7.7).
    assurancestringThe holder’s assurance level as carried (§12): low, substantial or high.
    cross_borderbooleantrue when 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. name and assurance are the provider’s. bank_name is the provider’s registry display_name, not the name of the account’s bank. verified is true.

  • 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 takes name, verified (default true), bank_name (default the bank’s registry display_name) and assurance. It MUST ignore everything else the bank sends, and MUST set country itself (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 only name, verified, bank_name and assurance. The asking switch then sets address, country (from the registry) and cross_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 verified does not report a separate check. It is true for 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.

RequestTypeRequiredMeaningClause
addressstringyesThe address to look up, as name@handle. (at most 200 characters)SW-6.8
ResponseTypeRequiredMeaningClause
addressstringyesThe address looked up, lower-cased. (at most 200 characters)SW-6.8
namestringyesThe account holder's name.
verifiedbooleanyesWhether the name comes from a checked identity.
bank_namestringyesThe bank that holds the account; the switch falls back to its registry display_name.SW-7.2
countrystringyesThe ISO 3166-1 alpha-2 country of the account. (pattern ^[A-Z]{2}$)
assurance"low" | "substantial" | "high"yesHow strongly the holder's identity was checked (CORE-4).SW-8.1
cross_borderbooleanyesTrue when the account is in the other country.SW-7.2

Errors

10. Not found and unavailable

CaseHTTPCode
The address is not valid (§4)422VALIDATION_ERROR or INVALID_ADDRESS (ADDR-4.3)
No active bank or provider owns the handle404ADDRESS_NOT_FOUND
The provider has no account behind the address404ADDRESS_NOT_FOUND
The provider names a bank that is not an active registered bank404ADDRESS_NOT_FOUND
The bank has no account with the address404ADDRESS_NOT_FOUND
The peer switch finds no account, or finds that the account is not in its country404ADDRESS_NOT_FOUND
The provider did not answer503PROVIDER_UNAVAILABLE
The bank did not answer503BANK_UNAVAILABLE
The peer switch did not answer, or none is registered503PEER_UNAVAILABLE
The trust registry cannot be reached and no copy is held503TRUST_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 assurance carries the holder’s level of assurance, one of the CORE-4 values low, substantial or high, 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 assurance through 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 assurance is 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"}
  1. The switch normalises the address to ravi@wren and splits it: handle wren.

  2. The owner of wren is provider:wren, kind provider, country IN. 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"}
  3. bank:hdfc is an active bank in the registry, country IN: the account is local.

  4. 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"}.

  1. The owner of finch is provider:finch, home US. 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"}}
  2. The US switch checks that Finch is registered with it, calls Finch’s /switch/v1/resolve signed as switch:US, and passes back Finch’s answer unchanged:

    {"address": "lena@finch", "name": "Lena Kask", "assurance": "high", "bank": "bank:chase", "account": "ref-lena"}
  3. bank:chase is in the US, so the account is not local. The Indian switch asks the US switch POST /link/v1/lookup {"address": "lena@finch"} (OCI-PAY-4).

  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"}
  5. The Indian switch adds address, country from the registry and cross_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/resolve only 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 name before 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_address on 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.json says 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.json has no verified or cross_border, sets additionalProperties: false, requires name and assurance, and limits assurance to 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) and oci-9-payment-addressing.yaml (no paths) match nothing that runs. Replace them with the lookup and resolve shapes, or remove them. The GAPS.md rows 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_suffix is case-sensitive, and the registry accepts a leading @. SBI, sbi and @sbi could 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_suffix on a switch or idp, 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. Make country required 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 passes high through (ADDR-12.2). Decide whether the asking switch applies the cap, and to what: the peer switch, or the bank’s country.
  • bank_name names the issuer. For a provider-issued address bank_name is 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.
  • verified means nothing yet. It is always true (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_provider and role/account_mapper in OCI-1 (PAY-4.1). The switch uses the registry’s kind instead.
  • 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

VersionDateWhat changed
0.1.02026-11-28First 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.