Move

API reference

Router and decision

/catalogue, /router and /decision — the networks of the catalogue, signed quotes and routes with their guarantee level, payment to a PATH address or an alias, and route decisions.

https://api.pathglobal.finance

Catalogue

Scope router. Under /catalogue.

RouteAnswer
GET /networks{ "networks": [ … ] }: slug, name, rails, assets, speed_seconds, routers, availability (live, early, soon) and endpoint_formats, the ids of the network's endpoint formats
GET /networks/:slugOne network, with the profile of its engine (finality, reversal, hours), and endpoint_formats
GET /endpoint-formats{ register_version, register_source, formats }: the endpoint formats of the catalogue, each with the networks that carry it and what Path Global issues on each
GET /endpoint-formats/:formatOne format, with each network of the catalogue that carries it, and register_version and register_source
GET /networks/:slug/endpoint-formats{ register_version, register_source, network, formats }: the formats of one network
GET /networks/:slug/endpoint-formats/:formatOne format on one network, and register_version and register_source
POST /networks/:slug/validateWhether an identifier is well formed for the network. It does not say the account exists

GET /partners and GET /engines answer how Path Global reaches each network; in test mode they list the simulated partners of the sandbox.

A list parameter takes a comma-separated list or is repeated, up to 50 values. Values of one parameter are alternatives; parameters combine. An unknown value answers 400 pathglobal.core.malformed_request with details: { parameter, unknown }; an unknown network or format answers 404 pathglobal.core.not_found.

GET /networks

ParameterSelects
categoryhybrid, local, bank, rtgs, card, blockchain, internal (PIP-0041). instant, batch and cross_border are also read: a local or bank network of that speed, or of reach cross_border
speedinstant, batch: the speed of a local or bank network
reachdomestic, regional, cross_border, global
zoneZones, as each network states it
assetNetworks that carry one of the assets: listed, or any ISO 4217 code on an open fiat network
railNetworks with one of the rails
productrouter, ramp, endpoints, crossway
availabilitylive, early, soon
issuableEndpoint types: networks with a format Path Global issues with one of them, in the mode of the key

GET /networks/:slug

expand takes rails, assets and endpoint_formats, comma-separated. Each value replaces a field with objects:

ValueField
railsrails: each rail with its name, status, beneficiary_formats, rail_reference_types, payment_reference_max and the ids of the formats it credits on this network. The routed rail has endpoint_formats: null
assetsassets: each asset with asset_type, asset_code, standard, contract and decimals
endpoint_formatsendpoint_formats: each format of the network, as GET /networks/:slug/endpoint-formats/:format gives it. The answer gains register_version, register_source and endpoint_formats_version, the same value as register_version

An expanded answer also carries products and expanded, the values applied. With expand=rails,assets,endpoint_formats it holds everything about a network: category, zone, status, parameters, rails, routers, typed assets, endpoint formats with what Path Global issues in each, and the profile of its engine.

{
  "slug": "base",
  "name": "Base",
  "category": "blockchain",
  "availability": "early",
  "products": ["router", "ramp", "endpoints"],
  "rails": [
    { "id": "blockchain", "name": "Token transfer on a blockchain network", "beneficiary_formats": ["chain_address"], "endpoint_formats": ["evm-address", "…"], "…": "…" },
    { "id": "path-flash-1.0", "endpoint_formats": null, "…": "…" }
  ],
  "assets": [
    { "asset_type": "token", "asset_code": "USDC", "standard": "erc20", "contract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "decimals": 6 }
  ],
  "params": [["Execution", [["Virtual machine", "EVM"], ["…", "…"]]]],
  "routers": [{ "id": "…", "name": "…", "kind": "…" }],
  "endpoint_formats": [{ "id": "evm-address", "…": "…", "issuable": [{ "type": "wallet_address", "…": "…" }] }],
  "register_version": "sha256:…",
  "register_source": "register",
  "endpoint_formats_version": "sha256:…",
  "expanded": ["rails", "assets", "endpoint_formats"],
  "engine": { "network": "base", "family": "evm", "…": "…" }
}

Endpoint formats

The catalogue carries the endpoint formats of the register on its networks, with the same fields and in the same order, and Path Global's own formats, whose ids start with pathglobal:. pathglobal:acquirer-token, on visa and mastercard, is the reference an acquirer gives for a card. Each format carries origin: register or pathglobal. register_version is the version of the register data set the register entries come from, and register_source says whether they were read from the register (register) or are the built-in copy (built_in); GET /health gives the same two values as endpoint_formats.version and endpoint_formats.origin. issuable is Path Global's and is not part of the data set.

On each network, issuable lists what Path Global issues in the format, in the mode of the key, and is [] when it issues none there:

Field
typeThe endpoint type
issuerThe issuer id
formatThe format id
assetsThe assets a request can name
networksThe networks an issued identifier receives on
receivesPer network, the assets the endpoint receives there; null for the requested asset, on an open fiat network

GET /endpoint-formats takes the parameters of the register (network, rail, kind, status, asset, category, alias_kind, reach) and:

ParameterSelects
typeFormats issued with one of these endpoint types
issuabletrue: links on which Path Global issues the format; false: links on which it does not
originregister or pathglobal

rail=path-flash-1.0 answers 400 pathglobal.core.malformed_request with details: { parameter: "rail", routed: ["path-flash-1.0"] }: the routed rail delivers on the rail native to the network. A PATH network has no endpoint format: its /endpoint-formats answers formats: []. An unknown value of a filter, or an empty value, answers 400 pathglobal.core.malformed_request with details: { parameter }, and unknown for an unknown value.

GET /networks/tempo/endpoint-formats/tempo-address-memo with a test key (abridged):

{
  "register_version": "sha256:…",
  "register_source": "register",
  "id": "tempo-address-memo",
  "name": "Address and TIP-20 memo",
  "kind": "chain_address_memo",
  "origin": "register",
  "network": "tempo",
  "rails": ["blockchain"],
  "status": "live",
  "fields": [{ "name": "memo", "required": "always", "memo_types": ["bytes32"], "pattern": "^0x[0-9a-fA-F]{64}$", "max_length": 66, "…": "…" }],
  "shared_with": [],
  "issuable": [
    { "type": "wallet_address_memo", "issuer": "sandbox-wallets-memo", "format": "tempo-address-memo", "assets": ["PATHUSD"], "networks": ["tempo"], "receives": { "tempo": ["PATHUSD"] } }
  ],
  "…": "…"
}

POST /networks/:slug/validate

{ "identifier": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed", "format": "tempo-address-memo", "memo": "0x0000000000000000000000000000000000000000000000000000000000000001" }
FieldRequiredNotes
identifieryesThe value
formatnoAn endpoint format of the network. The value is checked against it, with the fields the format requires
memonoA string, which takes the first memo type of the format, or { type, value }
fieldsnoWhat a payer sends with the value: holder_name, bic, routing… Each up to 140 characters, checked as the register checks a field: routing and branch without separators

{ valid, kind?, reason?, format?, formats? }. Without format, the identifier is checked by the rule of the network; when it is valid, format is the most specific format it passes and formats every format it passes. With format, a missing field answers reason: "field <name> is required"; a format that is not one of the network answers 404 pathglobal.core.not_found. A value is checked as the register checks it: leading and trailing whitespace removed, then the format's normalization. A format with a routing field also takes the value as <routing>-[<branch>-]<account> when fields.routing is not given.

kind and format answer two questions. Without format, kind is the kind of identifier the network's rule recognised (evm_address, base58_address, address, routing_account, card_token…). With format, kind is the kind of the format (chain_address, account, iban…). A destination on a blockchain network is valid when it passes a live chain address format of the network.


Router

Scope router. Under /router. A quote and a route are read only by the client they were made for; another client's answers 404 pathglobal.core.not_found.

POST /quotes

A firm, signed quote for an intent. Nothing moves. 201 with the quote.

{
  "amount": { "value": "250.00", "asset": "USD" },
  "source": { "omni_account": "oa_4f2k9q" },
  "destination": { "network": "spei", "identifier": "<CLABE of the beneficiary>", "holder": "Example Payee" },
  "deliver": { "asset": "MXN" },
  "constraints": { "max_delay_seconds": 3600, "prefer": "cost" },
  "reference": "invoice-1042"
}
FieldRequiredNotes
amountyesWhat is sent
sourceyes{ omni_account }, { path: "path:…" }, { network, identifier, holder? }, or { connection, delegation? }
destinationyes{ omni_account }, { path }, { alias }, or { network, identifier, holder? }. See Paying a PATH address or an alias
deliverno{ asset, network? }: the asset delivered, and its network when it is fixed
routernopath-flash-1.0, the default: the router of Path Global, powered by the decision model path-flash-1.0, chooses the route. Any other value is a router of the catalogue
constraintsnomax_delay_seconds, max_fee, max_hops (1 to 8, the collection and the pay-out included), prefer (cost or speed)
purposenoUp to 64 characters
referencenoUp to 140 characters
payer, payeeno{ name?, path_id? } and { name? }, as Proof reads them. The payee's name is the one sent here; a PATH address is not a name

The quote is signed (protocol_version, signed_at, kid, signature) and carries route (the chosen route, its legs and path), alternatives, decision, proof (the verdict and its outcome), guarantee (the guarantee level), final_by, commit_mode, expires_at and mode.

route.destination is where the route credits the beneficiary:

Destination of the intentroute.destination
{ network, identifier }{ network, identifier }
{ omni_account }{ network, identifier }, the book network and the account
{ path }, { alias }{ network, path_address, alias?, capability, commitment, intent_version }

For a PATH destination:

Field
networkThe network of the capability the route pays on
path_addressThe PATH address. For an alias, the address it designates
aliasThe alias the intent named, lower case, as alias:<network>:<name>
capabilityThe PATH Capability of the payee's accepts entry the route pays on: rail, asset_type, asset_code, and for a token chain, standard, contract and decimals
commitment, intent_versionThe commitment and the version of the terms the route was verified against; null on derived terms
"destination": {
  "network": "sepa-inst",
  "path_address": "path:4a91c2f7e8d3",
  "capability": { "rail": "sepa-inst", "asset_type": "fiat", "asset_code": "EUR" },
  "commitment": "2bb00d0d…",
  "intent_version": 1
}

A quote for a PATH destination carries no identifier, no holding member and no endpoint of a member: the payee's member names the beneficiary in its instruction, at execution, and the beneficiary stays with Path Global. The same holds for the route, the SETTL, its receipt and its execution.

Paying a PATH address or an alias

A destination { path } is a PATH address: path: and 12 to 64 hexadecimal digits, read in lower case. A destination { alias } is an alias of the PATH network (PIP-0017): alias:<network>:<name>, or @name and name, read in the network of the PATH member Path Global reaches (openconnect in test mode). An alias is a destination, never a source.

{ "destination": { "path": "path:4a91c2f7e8d3" } }
{ "destination": { "alias": "@ada.moreau" } }

Path Global pays a PATH destination as a member of the PATH network, in the steps of the protocol:

StepWhat it gives
SONARThe member that holds the address or the alias. Skipped for an address or an alias Path Global holds itself
RESOLVER, at the holding memberWhat the address accepts: its capabilities, in the payee's order, with their limits and reference_required. An alias is looked up in the body of a signed request (PIP-0028); the answer names the PATH address it designates
Commitment, at the holding memberThe commitment of the terms (PIP-0021). It equals the commitment of the RESOLVER answer and the commitment of the terms it lists; derived terms have none
Instruction, at the holding memberAt execution, before anything is drawn, held or settled: the signed payment instruction for the capability the route pays on (PIP-0009). It names the beneficiary and, when the payee asks for one, the payment reference

Each answer is a signed object of the holding member, verified against the keys that member publishes. An answer that does not verify stops the quote or the route, and nothing moves. An alias travels in the body of a signed request, never in a URL.

What is payable. An entry of the payee's accepts is a candidate of the route when:

  • the catalogue knows its network, and it carries deliver.asset, on deliver.network when it is set;
  • its rail has beneficiary formats (beneficiary_formats of the rail, read with expand=rails), since a payment instruction names one. In this version: sepa-inst, pi-spi and token transfers on blockchain networks (blockchain);
  • with reference_required, its rail carries a payment reference (payment_reference_max is set).

Any other entry is skipped. With no candidate left, the quote answers 422 pathglobal.router.no_route.

Limits. A candidate that delivers less than min_single or more than max_single is not quoted: the limits of its entry, else the limits of the address in the same asset.

Preference. The payee's order is the last criterion of the decision: between candidates the decision ranks equal, the earlier entry wins.

Payment reference. The reference carried on the rail is the payment_reference of the instruction when it has one, in place of reference of the intent; an entry with reference_required always has one. A conversion whose provider delivers to the payee is a candidate only when the provider carries the reference of the payment.

Instruction. route.path_instruction names the instruction the route pays. An open instruction is reused when a route is resumed; a route without a SETTL whose instruction expired asks for a new one, three at most. An instruction for another amount than the one delivered, or with limits the amount does not meet, is not paid.

Idempotency. Each write Path Global makes on the PATH network for a route (the instruction, the payer receipt and its statements) carries an idempotency key made from the route id. A route executed twice under one Idempotency-Key, or resumed, reaches one instruction and one payer receipt.

Errors of a PATH destination

CodeStatusWhen
pathglobal.core.malformed_request400destination.path or destination.alias is not in a form above, or a bare alias name reads in more than one network; details.field names the field
pathglobal.router.payee_unknown404The address or the alias does not resolve. One answer for every case, which names neither
pathglobal.addresses.moved410The holder replaced the address. The answer does not name the new address
pathglobal.addresses.revoked410The address is revoked
pathglobal.router.payee_unavailable503The payee's member or the PATH network did not answer; details.path_code when the network gave one. Nothing moves; retry later
pathglobal.router.terms_unverifiable502What the payee's member published does not verify. details.check: sonar, discovery, signature, answer, commitment or instruction
pathglobal.router.instruction_refused409The payee's member refuses the instruction (details.path_code), or the instruction is for another amount (details.reason: "amount") or has limits the amount does not meet (details.reason: "limits")

The same codes end a route failed, in failure.code, when they come at execution. A route resumed while the payee's member does not answer stays executing and is tried again.

GET /quotes/:id

One quote.

POST /routes

{ "quote": "qt_…" } executes a quote; a quote executes once, before expires_at. An intent in place of { quote } is quoted and executed in one call, and the route carries quoted, the quote. Takes Idempotency-Key. 201 with the route.

A route from an Omni Account draws on its holding. In test mode the balance is enforced: fund the holding first (POST /accounts/holdings/:id/fund).

GET /routes · GET /routes/:id

{ "routes": [ … ] }, or one route.

FieldNotes
statusreview, executing, settled, failed or refund_required
settlement, receiptOnce settled: the SETTL and Path Global's settlement receipt, read on Settlement
path_instructionFor a PATH destination: { reference, expires_at }, the payment instruction the route pays, read with the Path Tool instruction_read
payer_receiptFor a PATH destination: { reference, status, reason_code?, sync_error? }, the payer receipt of the route, below
failure{ code, message, details? } on a route that ends failed. details holds path_code, reason, check or field, as the errors of a PATH destination state them

A route can answer executing and settle later: read it again until it is settled or failed.

The payer receipt

For a PATH destination, Path Global states what it sent as the payer's member: a path.receipt with issued_by: "payer" (PIP-0011). It names the instruction, the payee ({ member, address }), the capability via and the amount sent, as PATH Amounts. It is read with the Path Tools receipt_read and receipt_chain.

The routepayer_receipt.status
Has a SETTLpending
Is deliveredpending: the payee's member states the settlement
Is refundedfailed, with reason_code rail_rejected, rail_unavailable, insufficient_funds, limit_exceeded or compliance_blocked
Its SETTL expiresfailed, with reason_code: "expired"
Fails with no SETTLNo payer receipt

A statement the PATH network has not taken yet is sent again later under the same key. One it refuses sets sync_error, the PATH code, and is not sent again. The status of the route never depends on the payer receipt.

POST /routes/:id/release

{ "verdict": "pf_…" }: resumes a route in review, with the Proof verdict that decided it.

Errors

Answered by the call:

CodeStatusWhen
pathglobal.router.quote_expired409The quote is past expires_at
pathglobal.router.quote_already_used409The quote has been executed
pathglobal.router.no_route422No route delivers the intent, or none respects the constraints
pathglobal.router.router_unknown400, 404router is neither path-flash-1.0 nor a router of the catalogue (400, with details.routers, path-flash-1.0 first), or not a router of the network
pathglobal.proof.failed422The route does not pass Proof
pathglobal.proof.review409release: the verdict is still in review
pathglobal.core.not_found404The quote or the route is not the caller's

A PATH destination adds the errors of a PATH destination.

Carried in failure.code of a route that ends failed:

CodeWhen
pathglobal.accounts.insufficient_fundsThe holding does not hold the amount
pathglobal.accounts.frozenThe holding is frozen
pathglobal.risk.*A refusal of risk; see Risk
pathglobal.router.instruction_refused, pathglobal.router.terms_unverifiable, pathglobal.router.payee_unavailableA PATH destination: the instruction of the payee's member is refused or does not verify, or the member did not answer a new route

Decision

Scope decision. Under /decision.

GET /models

{ "default", "models": [ … ] }: the decision models and the default one, path-flash-1.0. baseline is a deterministic score; it decides when path-flash-1.0 gives no answer, and the decision then states source: "baseline".

POST /routes

The route a model chooses between two networks, with the candidates it considered. Nothing is quoted or moved.

{ "from": { "network": "fednow", "asset": "USD" }, "to": { "network": "spei", "asset": "MXN" }, "amount": { "value": "250.00", "asset": "USD" } }

model and constraints are optional. { kind: "decision.route", decision, route, candidates }. A decision states its source: model or baseline. An unknown model is 400 pathglobal.decision.model_unknown; no candidate within the constraints is 422 pathglobal.router.no_route.

On this page