Payments

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.

LevelWhat it promises
atomicBoth sides post together, in one ledger movement or one chain transaction, or neither does
conditionalOne side is held and released only on definitive evidence about the other. An unresolved delivery leaves the hold in place
receipt_firstPath Global delivers from a prefunded position only after final receipt. A later failure is corrected by a new payment
value_datedThe 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_exposureDelivery 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"
QueryNotes
in, outRequired: a kind of network
lockable_in, lockable_outtrue when the paying or the delivering chain takes an escrow
same_chain_txtrue for one transaction on one chain
out_final_within_holdDefault true
provider_deliverstrue 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.

FieldNotes
stateBelow
historyEvery state, with its instant
guaranteeThe level of the exchange
fundingHow the value was secured: held on a holding, collected on a network, or net under clearing
executionThe execution behind it
holdingWhere the value sits now, one entry per asset
heldWhen the route does not deliver: the value it stopped with
legsEach leg done, with its amounts and rail reference
refsThe 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_reasonOnce 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
receiptThe signed receipt, once closed

The main path is funded → routed → liquidity_locked → executing → sent → confirmed → final → closed.

StateNext
fundedrouted, review, refund_required, expired
reviewrouted, refund_required
routedliquidity_locked, executing, refund_required
liquidity_lockedexecuting, provider_failed, refund_required
executingsent, in_doubt, settlement_failed, provider_failed
sentconfirmed, in_doubt, settlement_failed
in_doubtsent, confirmed, settlement_failed, manual_review
confirmedfinal
finalclosed
provider_failed, settlement_failedrerouting, refund_required
reroutingliquidity_locked, executing, refund_required
refund_requiredrefunding, closed, manual_review
refundingclosed, manual_review
manual_reviewrefunding, 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

ReceiptWhat it is
Settlement receiptkind: "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 receiptFor 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 SETTLreason_code of the payer receipt
expiredexpired
insufficient_fundsinsufficient_funds
limitlimit_exceeded
compliancecompliance_blocked
account_closed, account_unknown, name_mismatch, format, duplicate, reverted, recalled, disputedrail_rejected
network_closed, timeout, gate, nonce_replaced, validity_expired, other, provider, nonerail_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.

FieldNotes
typepayment, pvp, dvp, transfer, net_settlement, return
modecapture_on_final: the pay-in is captured when the pay-out is final. commit_first: the exchange is committed before the pay-out leaves
guaranteeIts level
legsEach leg with its role, kind of network, amount and state
holdingWhere its value sits: one entry per asset, { account, asset, amount }. account is an opaque reference
state, historyBelow
refsIts references
Leg role
pay_inValue received from the payer
exchangeA conversion
pay_outValue delivered to the beneficiary
moveValue moved between two networks
pay_providerA 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: sent or confirmed when the delivery went through, settlement_failed when it did not, manual_review when 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" }
}
FieldNotes
typepvp or dvp
referenceUp to 140 characters
timeout_secondsUp to 86 400
partyA name for the side, [A-Za-z0-9_.-], up to 64 characters
gives, onWhat the side pays and the asset and network it pays on
from, receives_atAn account reference or an endpoint
asset_rolecash or asset, for a dvp
verdictA Proof verdict for this side
subjectWhat 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.

ErrorWhen
404 pathglobal.core.not_foundA from the caller does not own
409 pathglobal.core.conflictThe reference was used with other content
422 pathglobal.risk.verdict_invalidA verdict is missing, not signed by Proof, outside its validity or given for another subject
422 pathglobal.proof.failedA verdict is fail
409 pathglobal.proof.reviewA verdict is in review

The execution of an exchange is read by the client that submitted it.

On this page