# PIP-0029 · Proximity presentment

The core of PATH PROXIMITY. A short-lived token, signed by the payee's member, designates a payment request or a PATH address. The payer's member binds it before paying, the payer confirms on its own device, and the receipt states the presentment. A channel profile only carries the token.

## Why

A payment made in person starts with two devices at the same place: a till and a phone, two phones, a terminal and a phone held against it. A QR code, a tap or a nearby radio exchange carries the start of the payment. What follows is the same on every channel: an object that designates what is paid, a binding of the payment to the presence of the two parties, the screen the payer confirms, and the receipt.

PATH PROXIMITY is one layer. This PIP is its core. A profile per channel states how the token travels: QR ([PIP-0030](/pips/0030)), Tap ([PIP-0031](/pips/0031)) and Air ([PIP-0032](/pips/0032)). The model is that of rails: [PIP-0003](/pips/0003) states what a rail profile is, and each rail has its own ([PIP-0023](/pips/0023)).

## Three axes

| Axis | Question | Values | Where it is defined |
|---|---|---|---|
| Channel | How the two devices exchange | `qr`, `tap`, `air` | One profile per channel |
| Proof | How the payer authorises | Passkey, biometrics, identity document | [PIP-0033](/pips/0033): an assertion signed by the payer's member |
| Instrument | What pays | An account, a card, a gift card | The capabilities and instructions of PATH ADDRESS ([PIP-0008](/pips/0008), [PIP-0009](/pips/0009)) |

The axes are independent. A channel states nothing about the proof or the instrument, and a proof is the same on every channel.

## Terms

| Term | Meaning |
|---|---|
| **Presenter** | The device that offers the token: a till, a terminal, the payee's phone. It acts for the payee's member and holds no PATH key |
| **Reader** | The device that reads the token: the payer's phone, running the wallet of the payer's member |
| **Token** | A `path.proximity` object, issued by the payee's member for one presentment |
| **Binding** | The claim of one payer's member on one token, signed by the payee's member |

## The token

```json
{
  "type": "path.proximity",
  "reference": "px7m2k9q4v8z3n",
  "issuer": "member-a",
  "payee": { "member": "member-a", "address": "path:4a91c2f7e8d3" },
  "designates": { "type": "path.request", "reference": "7fk2m9pq3vx8" },
  "channel": "tap",
  "presence": { "mode": "exchanged", "reader_nonce": "3f9c2a71b8e4d605a1c7e93b2d4f6a80" },
  "station": "Till 4",
  "status": "open",
  "issued_at": "2026-11-26T10:00:00Z",
  "expires_at": "2026-11-26T10:01:00Z",
  "protocol_version": "0.2.0",
  "signed_at": "2026-11-26T10:00:00Z",
  "kid": "op_member_a_2026_01",
  "signature": "…"
}
```

| Field | Rule |
|---|---|
| `reference` | From the common reference generator. The token is linkable at `/path/<reference>` |
| `issuer` | The payee's member. The token verifies against its keys |
| `payee` | The receiving party ([PIP-0006](/pips/0006)) |
| `designates` | `type` is `path.request` or `path.address`. `reference` is the reference of a request of the issuer, or the bare id of an address of the issuer |
| `channel` | The channel of the profile that carries the token |
| `presence` | `mode`, and `reader_nonce` when `mode` is `exchanged` |
| `station` | Optional. A label of the point of sale set by the payee's member, at most 32 characters. Display only |
| `status` | `open`, `bound`, `expired`, `revoked` |
| `issued_at`, `expires_at` | RFC 3339. `expires_at` is at most 300 seconds after `issued_at`. A profile may set less |

- The token carries no amount, no capability and no term. The terms are those of the designated object.
- The token carries no geographic position and no identifier of the payer, of the reader or of the payer's member.
- `station` never names a person.
- `open` moves to `bound` on a binding, to `expired` at `expires_at`, and to `revoked` when the issuer revokes it. The three are final.
- A token that is not `open` answers `410` at `/path/<reference>`, with `path.proximity.bound`, `path.proximity.expired` or `path.proximity.revoked`.

### Presence

| `presence.mode` | What the reader does | Used by |
|---|---|---|
| `shown` | Reads the token the presenter shows. It sends nothing to the presenter | QR; a tap read as a tag |
| `exchanged` | Sends the presenter a `reader_nonce` first. The presenter obtains a token issued for that nonce and returns its link | Tap; Air |

- `reader_nonce` is 16 bytes drawn at random by the reader for one exchange, written as 32 lower-case hexadecimal characters.
- With `exchanged`, the reader checks that the token carries its own `reader_nonce`. When it does not, the reader stops and the payer is shown nothing to pay.
- With `shown`, the presenter shows a token for at most the time its profile sets, then shows a new one.
- Presence is established by the channel, the lifetime of the token and, with `exchanged`, the nonce. No object of this PIP carries a position.

## Requests paid in person

A request issued for a sale at a presenter carries `presentment: "proximity"`.

```json
{
  "type": "path.request",
  "reference": "7fk2m9pq3vx8",
  "issuer": "member-a",
  "payee": { "member": "member-a", "address": "path:4a91c2f7e8d3" },
  "amount": { "value": "12.40", "asset_type": "fiat", "asset_code": "EUR" },
  "accepts": [ { "rail": "sepa-inst", "asset_type": "fiat", "asset_code": "EUR", "fees": [] } ],
  "presentment": "proximity",
  "status": "created",
  "settled_by": [],
  "expires_at": "2026-11-26T10:15:00Z",
  "grammar": 2
}
```

- `presentment` is inside the signed request. Its only value is `proximity`. It is absent on every other request.
- The payee's member issues an instruction for such a request only to the member that holds a binding in force of a token designating it.
- The request is read at `/path/<reference>` like any request.
- When a token designating a request is bound, the issuer revokes every other open token designating that request. A request has at most one binding in force.
- An address carries no `presentment`. A token designating an address records that a payment to it was made in person. The address stays payable on its standing terms.

## Binding

The payer's member binds the token before it obtains an instruction. Served by the payee's member, at `endpoints.proximity` of its discovery document. Member credential required.

```http
POST /api/path/v1/proximity/tokens/px7m2k9q4v8z3n/bind
```

```json
{ "nonce": "b0b5c4e2a9d14f6e" }
```

The answer is signed by the payee's member:

```json
{
  "kind": "proximity_binding",
  "token": "px7m2k9q4v8z3n",
  "issuer": "member-a",
  "requester": "member-b",
  "designates": { "type": "path.request", "reference": "7fk2m9pq3vx8" },
  "channel": "tap",
  "presence": "exchanged",
  "bound_at": "2026-11-26T10:00:12Z",
  "expires_at": "2026-11-26T10:05:12Z",
  "nonce": "b0b5c4e2a9d14f6e",
  "protocol_version": "0.2.0",
  "signed_at": "2026-11-26T10:00:12Z",
  "kid": "op_member_a_2026_01",
  "signature": "…"
}
```

| Field | Rule |
|---|---|
| `token` | The reference of the token bound |
| `requester` | The member whose credential signed the bind |
| `designates`, `channel` | Copied from the token |
| `presence` | The token's `presence.mode` |
| `expires_at` | At most 300 seconds after `bound_at`. Until then, the requester obtains the instruction |
| `nonce` | The `nonce` of the request, 8 to 128 characters |

- A token has at most one binding. A bind on a token that is bound answers `410 path.proximity.bound`, whoever asks.
- A binding past its `expires_at` gives no instruction. The request stays unpaid, and the presenter offers a new token.
- The body may carry `authorization`: a `payer_authorization` envelope of [PIP-0033](/pips/0033). The payee's member verifies it and keeps it with the binding. A payee's member never requires one.

## Instruction and receipt

`POST /instructions` ([PIP-0009](/pips/0009)) takes `proximity`.

```json
{
  "request": "7fk2m9pq3vx8",
  "via": { "rail": "sepa-inst", "asset_type": "fiat", "asset_code": "EUR" },
  "proximity": { "token": "px7m2k9q4v8z3n" }
}
```

- A call with `proximity` requires the credential of the member that holds the binding, while the binding is in force.
- A call for a request with `presentment: "proximity"` and without such a binding answers `403 path.proximity.binding_required`. A binding held by another member gives the same answer.
- The instruction issued carries `proximity`: `token`, `channel`, and `presence`, copied from the binding.
- A receipt about a payment made under that instruction carries the same `proximity` block, whichever side issues it ([PIP-0011](/pips/0011)). It is absent on every other receipt.
- A `payer_authorization` handed at bind is carried in `attestations[]` of the receipt the payee's member issues.

```json
{
  "type": "path.receipt",
  "issued_by": "payee",
  "request": "7fk2m9pq3vx8",
  "instruction": "k3v9n2x8p4q7r1s6t0w5yz",
  "proximity": { "token": "px7m2k9q4v8z3n", "channel": "tap", "presence": "exchanged" },
  "attestations": [ { "kind": "payer_authorization", "…": "…" } ],
  "status": "settled",
  "route": null,
  "grammar": 2
}
```

## Display and consent

Before the payer confirms, the wallet of the payer's member:

1. Passes the link the channel gave to the reading algorithm of [PATH INTEROP](/docs/interop), and completes the chain of trust: host, discovery, register, object, signature.
2. Checks the token: `type` is `path.proximity`, `status` is `open`, `expires_at` has not passed, `channel` and `presence.mode` are those of the channel it read, and with `exchanged`, `reader_nonce` is its own.
3. Reads the designated object, verifies it, and checks that its issuer is the token's issuer.
4. Shows the floor of [PIP-0016](/pips/0016): what leaves the payer's account, in that account's unit, fees included, and the verified name of the payee.
5. Shows that the payment is made in person, with `station` when present, and what the channel's profile adds.

- The payer confirms by an explicit act on its own device, after that screen. Reading a code, a tap and a nearby exchange are not consent.
- The verified name of the payee is the issuer's name in the member register and, for a payee that is a subject of the issuer, the name of a payee check in `display` mode ([PIP-0013](/pips/0013)).
- The `display` rules of the designated object apply above the floor ([PIP-0016](/pips/0016)).
- An amount or a name the presenter shows is not a term. The wallet shows the terms of the signed objects.

The presenter:

- shows the state of its token, `open` or `bound`, then the outcome of the payment once the payee's member holds the receipt;
- shows no name and no identifier of the payer. The payee's member learns the payer's member from the binding, as it does from a receipt.

## What a channel profile defines

| Item | The profile states |
|---|---|
| Channel | Its value of `channel` |
| Carriage | How the link, and the exchange when there is one, are encoded on the channel |
| Roles | Which device presents and which reads |
| Presence | The modes it supports, and how `reader_nonce` travels |
| Lifetimes | The lifetime of a token, and when the presenter offers a new one |
| Reading | The steps between the channel and the reading algorithm of PATH INTEROP |
| Confirmation | What the payer's screen shows beyond the floor |
| Exclusions | What the channel never carries |
| Rows that do not translate | Where the channel offers less than this PIP |
| Conformance | Its profile |

A profile adds no term, no field of the token and no way to pay. A channel that cannot carry the link, or cannot keep its exclusions, has no profile.

| `channel` | Profile |
|---|---|
| `qr` | [PIP-0030](/pips/0030) |
| `tap` | [PIP-0031](/pips/0031) |
| `air` | [PIP-0032](/pips/0032) |

## Codes presented by the payer

A code the payer shows and the payee scans is a `path.claim` ([PATH INTEROP](/docs/interop)). It is not a proximity token, and this PIP does not define it.

## Interface

| Call | Credential | Effect |
|---|---|---|
| `POST /proximity/tokens` | Local member | Issues a token: `{ designates, channel, presence, station }`. Answers the signed token |
| `GET /path/{reference}` | None | The token, while `open` |
| `POST /proximity/tokens/{reference}/bind` | Member | Binds the token. Answers a `proximity_binding` |
| `POST /proximity/tokens/{reference}/revoke` | Local member | Revokes an open token |
| `POST /requests` | Local member | Takes `presentment` |
| `POST /instructions` | Member, when `proximity` is present | Takes `proximity` |

The paths are those of the reference implementation; an operator publishes its own in its [discovery document](/docs/discovery). Every write above takes `Path-Idempotency-Key` ([PIP-0022](/pips/0022)).

The discovery document gains `endpoints.proximity`, `path.proximity` in `capabilities.interop_types`, and `capabilities.proximity_channels`: the channels the member presents or reads on.

| Code | Status | When | What the caller does |
|---|---|---|---|
| `path.proximity.bound` | 410 | The token is bound | Ask the presenter for a new token, unless the binding is the caller's |
| `path.proximity.expired` | 410 | The token or the binding is past `expires_at` | Ask the presenter for a new token |
| `path.proximity.revoked` | 410 | The payee's member revoked the token | Ask the presenter for a new token |
| `path.proximity.binding_required` | 403 | An instruction for a request with `presentment: "proximity"`, without a binding in force for the caller | Bind a token that designates the request |

## Conformance

| Profile | Requires |
|---|---|
| `PATH-PROXIMITY.Core` | Issue and serve tokens within their lifetimes; one binding per token, signed; instructions for a request with `presentment: "proximity"` only under a binding in force; `proximity` carried on instructions and receipts; the wallet's steps before consent |

A channel profile is declared with the core: `PATH-PROXIMITY.Core + PATH-PROXIMITY.QR`.

## Compatibility

Additive. A new object type, a new member on requests, instructions and receipts, new calls and four codes. No signed object of an earlier PIP changes shape.

- A reader that does not know `path.proximity` shows the upgrade prompt of PATH INTEROP.
- A request without `presentment`, and an instruction or a receipt without `proximity`, read as before.
- A payer's member that does not bind receives `403 path.proximity.binding_required` on a request with `presentment: "proximity"`, and no other change.