Guides
Settlement and exchanges
What a guarantee level promises, how a SETTL and its execution read from the client's side, the receipts of a route, where the value sits while a payment runs, and two-party exchanges on the book.
Needs: a test key with settlement; accounts and proof as well for an exchange.
Every payment Path Global settles has a SETTL, the settlement obligation a client follows, and an execution, the legs that carry it out. Both carry a guarantee level. Every balance they move is an account of one double-entry ledger: a movement is applied whole or not at all, a line of the ledger never changes, and a correction is a new line.
Guarantee levels
A level states what holds if one side of a payment does not complete. It is on the quote
(guarantee), the execution, the SETTL, the receipt and every liquidity offer.
| Level | What it promises |
|---|---|
atomic | Both sides post together, in one ledger movement or one chain transaction, or neither does |
conditional | One side is held and released only on definitive evidence about the other. An unresolved delivery leaves the hold in place |
receipt_first | Path Global delivers from a prefunded position only after final receipt. A later failure is corrected by a new payment |
value_dated | The exchange waits for the finality of the slower network. Until a recall or dispute window has passed, a receipt can still be recalled; a recall after settlement is a new return execution |
bounded_exposure | Delivery comes before the end of the window in which the receipt can be returned. The account that bears the exposure and the capped amount are on the execution |
The levels are listed from the strongest. The level follows from the kind of network value is
received on and the kind it is delivered on: book, blockchain, irrevocable_instant, deferred,
revocable. An exchange has two directions, and its level is the weaker of the two.
GET /settlement/guarantees answers the level of a pair:
const answer = await pg.settlement.guarantees({ in: 'book', out: 'irrevocable_instant' });
console.log(answer.guarantee); // "conditional"| Query | Notes |
|---|---|
in, out | Required: a kind of network |
lockable_in, lockable_out | true when the paying or the delivering chain takes an escrow |
same_chain_tx | true for one transaction on one chain |
out_final_within_hold | Default true |
provider_delivers | true when a provider delivers to the beneficiary |
The table of every pair is in Guarantee levels. A level states what the API does; legal finality comes from scheme rules and contracts.
The SETTL
GET /settlement/settlements/:id, or pg.settlement.get(route.settlement). A SETTL is created once
the value of its route is held, received, or expected on the source network; a route refused before
that has none. It is not an asset and is
not transferable.
| Field | Notes |
|---|---|
state | Below |
history | Every state, with its instant |
guarantee | The level of the exchange |
funding | How the value was secured: held on a holding, collected on a network, or net under clearing |
execution | The execution behind it |
holding | Where the value sits now, one entry per asset |
held | When the route does not deliver: the value it stopped with |
legs | Each leg done, with its amounts and rail reference |
refs | The route, the reference of the intent, the PATH instruction a route to a PATH destination pays, and every rail reference: each one finds the SETTL |
failure_reason | Once the SETTL leaves the path of a payment that settles: the reason of the first leg that failed, provider for a conversion that failed, or expired |
receipt | The signed receipt, once closed |
The main path is funded → routed → liquidity_locked → executing → sent → confirmed → final → closed.
| State | Next |
|---|---|
funded | routed, review, refund_required, expired |
review | routed, refund_required |
routed | liquidity_locked, executing, refund_required |
liquidity_locked | executing, provider_failed, refund_required |
executing | sent, in_doubt, settlement_failed, provider_failed |
sent | confirmed, in_doubt, settlement_failed |
in_doubt | sent, confirmed, settlement_failed, manual_review |
confirmed | final |
final | closed |
provider_failed, settlement_failed | rerouting, refund_required |
rerouting | liquidity_locked, executing, refund_required |
refund_required | refunding, closed, manual_review |
refunding | closed, manual_review |
manual_review | refunding, confirmed, closed |
closed and expired are terminal. refund_required is not: it moves on to refunding, closed or
manual_review. A SETTL is final only once every pay-out is final.
The receipts of a route
| Receipt | What it is |
|---|---|
| Settlement receipt | kind: "settlement.receipt", signed by Path Global once the SETTL closes: what was sent, what was received, each leg with its rail reference, and the guarantee level. GET /settlement/receipts/:id |
| Payer receipt | For a route to a PATH address or an alias: a path.receipt of the PATH protocol, issued_by: "payer", that Path Global states as the payer's member. pending once the SETTL exists, failed with a PATH reason when the route is refunded or its SETTL expires. The route names it in payer_receipt (Router) |
The payer receipt of a delivered route stays pending; the payee's member states the settlement in
its own receipt. A deposit on a PATH address of Path Global has a payee receipt
(Endpoints).
failure_reason of the SETTL | reason_code of the payer receipt |
|---|---|
expired | expired |
insufficient_funds | insufficient_funds |
limit | limit_exceeded |
compliance | compliance_blocked |
account_closed, account_unknown, name_mismatch, format, duplicate, reverted, recalled, disputed | rail_rejected |
network_closed, timeout, gate, nonce_replaced, validity_expired, other, provider, none | rail_unavailable |
The execution
GET /settlement/executions/:id, or GET /settlement/executions?settl= for the executions of a
SETTL. GET /settlement/instructions/:id and GET /settlement/instructions?settl= answer the same.
An execution is Path Global's own object (kind: "pathglobal.execution"); it is not a payment
instruction of the PATH protocol.
| Field | Notes |
|---|---|
type | payment, pvp, dvp, transfer, net_settlement, return |
mode | capture_on_final: the pay-in is captured when the pay-out is final. commit_first: the exchange is committed before the pay-out leaves |
guarantee | Its level |
legs | Each leg with its role, kind of network, amount and state |
holding | Where its value sits: one entry per asset, { account, asset, amount }. account is an opaque reference |
state, history | Below |
refs | Its references |
Leg role | |
|---|---|
pay_in | Value received from the payer |
exchange | A conversion |
pay_out | Value delivered to the beneficiary |
move | Value moved between two networks |
pay_provider | A provider paid for what it delivers |
A leg is pending, securing, secured, submitted, unknown, final, failed, released,
returning, returned or blocked.
An execution moves through created, admitted, review, awaiting_funds, preparing,
prepared, committed and delivering to settled. Beside that path: in_doubt, rerouting,
aborting, aborted, abort_blocked, delivery_blocked, unwinding, unwound.
The SDK names the entries of holding SettlementHolding, apart from Holding, the holding of an
Omni Account.
When a delivery is in doubt
A delivery is in_doubt when the network has not said whether it went through. From the client's
side:
- The value of the payment stays held. Nothing is released while the delivery is unresolved.
- No second order is sent for the same delivery.
- The SETTL resolves on the network's evidence:
sentorconfirmedwhen the delivery went through,settlement_failedwhen it did not,manual_reviewwhen it needs a decision. A decision on an execution is taken by Path Global, under an approval.
Poll the SETTL; do not send the payment again. In test mode, a payment whose reference contains
timeout or unknown exercises this path.
Exchanges
POST /settlement/exchanges settles two sides together: a payment versus payment (pvp) or a
delivery versus payment (dvp). Both pay-ins are secured before either side is delivered. The level
is atomic only when both pay-ins are on the book.
Each side pays in from an account of the caller: a holding of the caller, client:-:<holding>:<asset>,
or the account of the clearing participant the key acts for, participant:<network>:<participant>:<asset>.
A side can also name an endpoint on a network, { network, identifier, holder? }.
{
"type": "pvp",
"reference": "fx-2026-11-19-001",
"timeout_seconds": 600,
"a": {
"party": "acme-usd",
"gives": { "value": "1000.00", "asset": "USD" },
"on": { "asset": "USD", "network": "book" },
"from": "client:-:<USD holding>:USD",
"receives_at": "client:-:<EUR holding>:EUR",
"verdict": "…",
"subject": {
"amount": { "value": "1000.00", "asset": "USD" },
"from": { "asset": "USD", "network": "book" },
"to": { "asset": "EUR", "network": "book" },
"networks": ["book"],
"payer": { "name": "Acme Treasury" },
"payee": { "name": "Example Treasury Ltd" },
"destination_digest": "…"
}
},
"b": { "…": "the other side, in the same shape" }
}| Field | Notes |
|---|---|
type | pvp or dvp |
reference | Up to 140 characters |
timeout_seconds | Up to 86 400 |
party | A name for the side, [A-Za-z0-9_.-], up to 64 characters |
gives, on | What the side pays and the asset and network it pays on |
from, receives_at | An account reference or an endpoint |
asset_role | cash or asset, for a dvp |
verdict | A Proof verdict for this side |
subject | What the verdict was given for: amount, from, to, and networks, payer, payee, destination_digest |
Verdicts. Ask Proof for one verdict per side, POST /proof/checks, with the same amount, payer,
payee and networks as the side's subject. A verdict is checked against the subject and must be
recent. destination_digest is a stable digest that names the destination of the side, for instance
the hexadecimal SHA-256 of receives_at.
const execution = await pg.settlement.exchange({ type: 'pvp', reference: 'fx-2026-11-19-001', a, b });
console.log(execution.type, execution.guarantee, execution.state); // "pvp" "atomic" …201 with the execution. The exchange is idempotent per caller and reference: the same request
returns the same execution; other content under the same reference is refused.
| Error | When |
|---|---|
404 pathglobal.core.not_found | A from the caller does not own |
409 pathglobal.core.conflict | The reference was used with other content |
422 pathglobal.risk.verdict_invalid | A verdict is missing, not signed by Proof, outside its validity or given for another subject |
422 pathglobal.proof.failed | A verdict is fail |
409 pathglobal.proof.review | A verdict is in review |
The execution of an exchange is read by the client that submitted it.
Route a payment
From an Omni Account to a beneficiary on another network or to a PATH address — quote, execute once, follow the route to settled, then read and verify its SETTL, execution and receipts.
Clearing by period
Obligations between clearing participants, netted per netting set and settled per period — recording, proposals, caps and headroom, closing, net settlement and signed period reports.