API reference
Settlement
/settlement — SETTLs and receipts, the SETTL states, where the value sits, executions, guarantee levels and two-party exchanges.
Scope settlement.
https://api.pathglobal.finance/settlementA route of the router is settled by one execution: the legs that secure the pay-in, convert and deliver, executed as ledger batches and orders on the networks. The SETTL is what the client reads of it: one route, its funding, its state, where its value sits, and the signed receipt at the end. A SETTL, its receipt and its execution are read by the client the route belongs to; those of another client answer as objects that do not exist.
An execution is Path Global's own object. A payment instruction of the PATH protocol
(PIP-0009) is the one a route to a PATH destination pays, named by the route's
path_instruction.
SETTLs and receipts
| Route | Answer |
|---|---|
GET /settlements?reference= | { "settlements": [ … ] }: the caller's SETTLs whose route, intent reference, PATH instruction or rail reference is reference, at least 4 characters |
GET /settlements/:id | One SETTL |
GET /receipts/:id | The signed receipt of a SETTL |
A receipt is a PATH envelope signed by Path Global; verify it against the keys of
GET /.well-known/path-keys (Verify a signature). It is
Path Global's settlement receipt (kind: "settlement.receipt"). A route to a PATH destination also
has a payer path.receipt of the PATH protocol, named by the route's
payer_receipt.
The SETTL
The SETTL carries execution, the id of its execution, guarantee (the
guarantee level of the exchange), holding, refs and
version, beside its funding, legs and history. The receipt carries guarantee as well.
| Field | Notes |
|---|---|
execution | The execution that settles the route, read at GET /executions/:id |
refs | The route, the reference of the intent, the PATH instruction it pays for a PATH destination, and every order and rail reference of the funding and the legs |
failure_reason | Once the SETTL leaves the path of a payment that settles: the reason of the first leg that failed (insufficient_funds, account_closed, account_unknown, name_mismatch, limit, compliance, duplicate, format, network_closed, timeout, reverted, nonce_replaced, validity_expired, recalled, disputed, gate, other), provider for a conversion that failed, or expired. Path Global's diagnosis; the payer receipt states the reason of the PATH protocol |
destination names where the route delivers: { network, identifier } for an identifier or an Omni
Account, { network, path_address } for a PATH address or an alias. The SETTL, the receipt and the
execution of a route to a PATH destination do not carry the beneficiary the payee's member named; a
pay_out leg of that execution names credit: { network, path_address }. A SETTL of a route to a
PATH destination is found by the reference of its PATH instruction.
States
The path of a payment that settles is funded, routed, liquidity_locked, executing, sent,
confirmed, final, closed.
| From | To |
|---|---|
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. in_doubt is a delivery whose outcome is not known yet: it
keeps its holds and leaves only on definitive evidence from the network or on a decision under
approval. A delivery in doubt is never sent again under another order. refund_required is not
terminal: the value is returned to the payer (refunding), then the SETTL is closed.
Where the value sits
holding lists, one entry per asset, the ledger account the value of the payment is on now:
"holding": [
{ "account": "…", "asset": "MXN", "network_account": "na_sandbox_MXN_liquidity", "amount": { "value": "4318.29", "asset": "MXN" } }
]account is an opaque reference. These entries are positions of the ledger, not the holdings of an
Omni Account (wallets and virtual
accounts). held gives the first entry as { amount, network }, the network of its physical
account: after a failed pay-out, it is where the value stopped.
Executions
GET /executions/:id
GET /instructions/:id answers the same. Abridged:
{
"id": "in_3f9c41a8b2e7d0c9f1a2b3c4",
"kind": "pathglobal.execution",
"type": "payment",
"mode": "capture_on_final",
"guarantee": "receipt_first",
"origin": { "route": "rt_7d1x9p", "settl": "st_2m8q4w" },
"legs": [
{ "id": "leg_myx0mms25whp", "role": "pay_in", "executor": "rail", "kind": "irrevocable_instant", "network": "fednow", "amount": { "value": "249.38", "asset": "USD" }, "state": "final", "attempts": 1 },
{ "id": "leg_derm77ernaxf", "role": "exchange", "executor": "provider", "kind": "book", "provider": "meridian-markets", "amount": { "value": "249.33", "asset": "USD" }, "state": "final", "attempts": 1 },
{ "id": "leg_q41c8vds09ma", "role": "pay_out", "executor": "rail", "kind": "irrevocable_instant", "network": "spei", "amount": { "value": "4318.29", "asset": "MXN" }, "state": "final", "attempts": 1 }
],
"holding": [],
"state": "settled",
"refs": ["rt_7d1x9p", "st_2m8q4w"],
"prepare_deadline": "2026-11-19T10:04:32.000Z",
"commit_deadline": "2026-11-19T10:04:42.000Z",
"history": [{ "state": "created", "at": "2026-11-19T10:04:12.000Z", "cause": "route", "actor": "router" }],
"version": 9
}| Field | Notes |
|---|---|
type | payment, pvp, dvp, transfer, net_settlement, return |
mode | capture_on_final: nothing is posted before the delivery is final. commit_first: the exchange is posted first; a failed delivery refunds from where the value sits |
legs[].role | pay_in, exchange, pay_out, move, pay_provider |
legs[].state | pending, securing, secured, submitted, unknown, final, failed, released, returning, returned, blocked |
legs[].exposure | On a bounded_exposure leg: the bearer account, the capped amount and until when |
state | created, admitted, review, awaiting_funds, preparing, prepared, committed, delivering, in_doubt, rerouting, settled, aborting, aborted, abort_blocked, delivery_blocked, unwinding, unwound |
refs | The route, the SETTL, the reference and every rail reference |
A route has one execution: a route executed twice reaches one execution and one SETTL. The secret of an escrow is on no document and in no response.
GET /executions?settl=
{ "executions": [ … ] }: the execution behind a SETTL. GET /instructions?settl= answers the same.
GET /guarantees?in&out
The level of a pair of network kinds. See Guarantee levels.
POST /exchanges
A payment versus payment (pvp) or a delivery versus payment (dvp) between two parties.
{
"type": "pvp",
"reference": "fx-swap-2026-11-19-07",
"a": {
"party": "acme-treasury",
"gives": { "value": "1000000.00", "asset": "USD" },
"on": { "asset": "USD", "network": "book" },
"from": "client:-:va_acme_usd:USD",
"receives_at": "client:-:va_acme_eur:EUR",
"verdict": "pf_8m2k…",
"subject": { "amount": { "value": "1000000.00", "asset": "USD" }, "from": { "asset": "USD", "network": "book" }, "to": { "asset": "EUR", "network": "book" }, "destination_digest": "…" }
},
"b": {
"party": "meridian-markets",
"gives": { "value": "918500.00", "asset": "EUR" },
"on": { "asset": "EUR", "network": "sepa-inst" },
"from": { "network": "sepa-inst", "identifier": "DE89370400440532013000", "holder": "Meridian Markets" },
"receives_at": { "network": "fedwire", "identifier": "<routing number>-<account number>", "holder": "Meridian Markets" },
"verdict": "pf_3q9t…",
"subject": { "amount": { "value": "918500.00", "asset": "EUR" }, "from": { "asset": "EUR", "network": "sepa-inst" }, "to": { "asset": "USD", "network": "fedwire" }, "destination_digest": "…" }
},
"timeout_seconds": 600
}| Field | Required | Notes |
|---|---|---|
type | yes | pvp or dvp |
a, b | yes | The two sides |
reference | yes | Up to 140 characters |
timeout_seconds | no | How long the pay-ins are awaited, up to 86 400 |
A side:
| Field | Notes |
|---|---|
party | Who gives |
gives, on | The amount and the node it is given on |
from | A ledger account of the caller, or an endpoint on a network { network, identifier, holder? }. A ledger account is a holding of the caller (client:-:<holding>:<asset>) or the account of the clearing participant the caller acts for |
receives_at | A ledger account, or an endpoint on a network { network, identifier, holder? } |
asset_role | For a dvp: cash or asset |
verdict | The Proof verdict of the side |
subject | What the verdict was given for: amount, from, to, and optionally networks, partners, providers, payer, payee, destination_digest |
destination_digest is a stable digest that names the destination of the side; a paying side
without one is refused with 400. Hashing an identifier protects the stored record; it is not zero
knowledge (PIP-0002).
201 with the execution. An exchange is one execution per caller and reference: the same
request returns it; other content under the same reference is 409 pathglobal.core.conflict. A
from ledger account that is not the caller's is 404 pathglobal.core.not_found.
The level of the exchange is the weaker of its two directions, and atomic only when both pay-ins
are held on the book.
A decision on an execution in doubt is taken by Path Global, under an approval. Until then the execution keeps its holds and no second order is sent.