Concepts

API reference

Sandbox

Test mode of the Path Global API — what it starts with, the fixture payees of the sandbox network, outcomes scripted by keyword or by rule, funding a position, and the routes that exist in test mode only.

A test key reaches the sandbox: simulated partners behind every network, a sandbox bank that keeps a balance per physical account, three liquidity providers, six pools, the positions of Path Global, two clearing participants and the checks of Proof. Nothing leaves the sandbox. Partners, accounts and participants of the sandbox are marked sandbox.

A test key (key_test_…) reaches the sandbox. Path Global issues it with the scopes of your agreement; the examples read it from $PATHGLOBAL_TEST_KEY.

curl -s https://api.pathglobal.finance/treasury/positions?purpose=safeguarding \
  -H "Authorization: Bearer $PATHGLOBAL_TEST_KEY" \
  -H "Path-Version: 2026-11-26.genesis"

What the sandbox starts with

Positions. The physical accounts of test mode, each with its nostro on the ledger:

AccountPurposeStarts with
One per pool, on the network of the poolliquidity (hot)What the pool's suppliers supplied
na_sandbox_<asset>_liquidity[_n], one per network and asset that has no poolliquidity (hot)A sandbox balance worth 1 000 000 USD
One per network and asset that receives client funds; one per asset is the defaultsafeguarding (segregated)Nothing: client funds arrive by deposits and routes
One per netting setsettlementNothing
One per chaingasA sandbox balance in the chain's fee asset
One per prefunded provider, on network providerliquidityThe balance held with the provider

Each position with a band has its policy and each asset its safeguarding policy. Every own account is on the allowlist. A transfer proposed through the API waits for a checker.

Pools. USD on fednow, EUR on sepa-inst, USDC on base, MXN on spei, BRL on pix, XOF on pi-spi, supplied by sandbox-liquidity-partner.

Providers. meridian-markets, harbor-liquidity and atlas-otc, each with its corridors and funding terms (GET /liquidity/corridors).

Endpoints. The sandbox issues every endpoint type. Test identifiers pass the format of every network they receive on; they are not to be paid on a live network. Card numbers are published test card numbers.

Clearing. sandbox-member and meridian-markets (net terms). Path Global sets which participant a test key acts for. A netting set <ASSET>@<network> is created on first use.

Risk. A pair with no corridor gets a sandbox corridor on first use, bounded in the asset paid. The sandbox corridor advances a pay-in that can still be recalled or disputed — a card, a pull debit — up to its advance limit: such a payment is bounded_exposure in test mode. A client the sandbox does not know is a verified identity with verdict sandbox.

Path Tools. SONAR, FINDER, the federated search, RESOLVER (by address, and by alias), the commitment, the payee check, instructions, requests and receipts answer from the subjects, addresses and aliases of the key and from the fixture payees, as the objects of the PATH protocol: sonar_answer, { step1, step2 }, { nonce, holders, unavailable }, resolver_answer, path.address.commitment, payee_check, path.instruction, path.request and path.receipt in grammar 2. Each is signed by the test key published at /.well-known/path-keys, and verifies with verifyEnvelope of @pathprotocol/sdk. The list gives each answer and the tools the sandbox serves.

Fixture payees

The sandbox network holds three PATH addresses that resolve in test mode, so that a route to a PATH address or an alias runs end to end. They are held by the member path-global on the network openconnect. The router pays them through SONAR, RESOLVER, the commitment and a payment instruction, as it pays any PATH destination.

AddressAliasPayeeTermsaccepts, in order
path:4a91c2f7e8d3alias:openconnect:ada.moreauAda Moreau, a personPledgedsepa-inst EUR, max_single 10 000 EUR; base USDC; pi-spi XOF
path:b81e07d2c4a9Harbor Supplies, a legal entityPledgedsepa-inst EUR, reference_required
path:5c3d9e1f7a20Lumen Studio, a legal entityDerived: commitment: nullbase USDC
{
  "amount": { "value": "250.00", "asset": "EUR" },
  "source": { "omni_account": "oa_4f2k9q" },
  "destination": { "alias": "@ada.moreau" },
  "deliver": { "asset": "EUR" },
  "reference": "invoice-1042"
}

The payee check of a fixture compares the name sent with the payee's name above. The instruction of a fixture names a test beneficiary, valid for the format of its rail, and is open 30 minutes on the clock of the sandbox. On path:b81e07d2c4a9, the reference carried on the rail is the payment_reference of the instruction. An address or an alias issued in the sandbox with the same spelling as a fixture is answered as issued. A PATH address that is neither a fixture nor issued in the sandbox answers 404 pathglobal.router.payee_unknown.

A PATH address issued in the sandbox is paid through the same steps: its instruction names the endpoint anchored to the capability paid.

Outcomes by keyword

The sandbox bank gives an order an outcome when the reference of the payment contains one of these words, as a whole word:

WordOutcome
failThe order is refused
timeoutThe order is accepted and the call does not answer
unknownThe bank has no trace of the order
slowThe order is final two minutes after it is accepted
returnThe order is final, then returned
shortA collect brings less than instructed
overA collect brings more than instructed
chargeA fee line is added to the statement
outageThe bank does not answer
{
  "amount": { "value": "250.00", "asset": "USD" },
  "source": { "omni_account": "oa_4f2k9q" },
  "destination": { "network": "spei", "identifier": "<CLABE of the beneficiary>" },
  "deliver": { "asset": "MXN" },
  "reference": "invoice-1042 return"
}

Outcomes by rule

POST /operations/sandbox/script

Test mode. Scope operations. Gives every order that matches an outcome. Rules are not kept across a reset of the sandbox.

{ "match": "chargeback-77", "outcome": "fail" }
FieldNotes
matchText contained in the payment reference
outcomeOne of the words above

200 with { "scripted": { "match", "outcome" } }. A new rule with the same match replaces the first.

Funding a position

POST /treasury/positions/:account/fund

Test mode. Scope treasury. Credits a position, with the same credit at the sandbox bank. :account is the ledger reference of the nostro, URL-encoded.

curl -s -X POST \
  "https://api.pathglobal.finance/treasury/positions/nostro%3A-%3Ana_sandbox_USD_liquidity%3AUSD/fund" \
  -H "Authorization: Bearer $PATHGLOBAL_TEST_KEY" -H 'Content-Type: application/json' \
  -H "Path-Version: 2026-11-26.genesis" \
  -d '{ "amount": { "value": "1000000.00", "asset": "USD" }, "reference": "topup-1" }'
FieldRequiredNotes
amountyesIn the asset of the position
referencenoThe reference of the funding. The same reference funds once

200 with the ledger result: the batch, its sequence number and the funding entry.

POST /treasury/positions/:account/defund

The same body. Takes value out of the position, with the same debit at the sandbox bank.

Other ways in

RouteWhat it credits
POST /accounts/holdings/:id/fundA holding of the caller, from the sandbox bank
POST /endpoints/:id/depositsA deposit on an endpoint, as a network would notify it
POST /liquidity/pools/:id/supplyA position of the caller in a pool

Routes that exist in test mode only

Route
POST /operations/sandbox/scriptOutcome rules
POST /treasury/positions/:account/fund · /defundFunding a position
POST /accounts/holdings/:id/fundFunding a holding
POST /endpoints/:id/depositsSimulating a deposit
POST /liquidity/pools/:id/supplySupplying a pool
POST /liquidity/pools/:id/withdraw without destinationPaying a pool position out at once
POST /clearing/cycles/:id/close · /settleClosing and settling a cycle of the cycle surface

On a live key each answers 404 pathglobal.core.not_found.

Time in the sandbox

The sandbox advances on its own: a route, a transfer or a period moves through its states without a call. Read the object again to follow it.

Approvals in the sandbox

An approval is decided by another credential and another operator than its maker. Ask Path Global for a second test key, for another person, with risk and the approver scope of the action, and decide with it. Test mode asks for no signature.

On this page