- Auto-onramp — a fiat credential on a crypto wallet. The payer sends fiat; the wallet is credited in crypto.
- Auto-offramp — a crypto credential on a fiat wallet. The payer sends crypto; the wallet is credited in fiat.
Create a cross-currency credential
Pass an explicitcurrency on POST /v1/wallets/:id/credentials that is different from the wallet’s currency. Currency codes are uppercase (NGN, USDC, GHS, USDT, KES, …).
network is validated against the credential’s own currency, not the wallet’s. So an NGN credential uses bank; a USDC credential uses base / ethereum / solana.
Eligibility
Cross-currency is admitted only when every condition below holds. Any failure returns a400 with invalid_input.
- The pair must be crypto ↔ fiat. Crypto ↔ crypto and fiat ↔ fiat are rejected.
- Both currencies must advertise the matching direction capability:
- Auto-onramp requires
can_onrampon the credential currency and on the wallet currency. - Auto-offramp requires
can_offrampon both.
- Auto-onramp requires
- The credential currency must resolve to a supported currency row. An unknown code returns
404not_found.
The set of currencies that support
can_onramp / can_offramp is fixed by Global Stack. If your wallet’s currency isn’t eligible for a given direction, cross-currency provisioning will fail — reach out to support to confirm coverage.Minimum conversion amount
Every corridor has a minimum convertible amount (see Transaction limits), and a conversion is only quoted once the credential’s balance clears it. Below that, the deposit is still recorded and you are still notified — it simply has no converted value yet, and its funds wait on the credential for the next deposit. Conversions are sized from the credential’s whole available balance, not from the deposit that triggered them. So two 3,000 NGN deposits into a credential with a 4,500 NGN minimum convert together as one 6,000 NGN conversion when the second arrives. Nothing is lost and nothing needs chasing; small deposits accumulate until they are worth converting.You can read the minimum for a corridor from
GET /v1/currencies: it is
networks[].inbound.min on the credential’s currency, for the credential’s network. The
amount compared against it is the credential’s available balance, which includes anything left
over from earlier deposits — not the single deposit you just received.metadata.conversion_pending_reason:
The deposit that finally triggers the conversion carries the whole aggregated amount as its
destination_amount, which can be larger than its own source_amount.
metadata.converted_source_amount tells you how much was actually converted.
Deposit lifecycle
A cross-currency deposit usually tells you twice: once when the money arrives, and again as the conversion moves. The arrival event waits for the FX quote where there is one, so it can tell you what the deposit is worth in your wallet’s currency — the number you actually care about. Where the balance is under the corridor minimum there is no quote to wait for, and the arrival event carries no converted value.What deposit.received carries
The event body is the transaction resource — the same shape as
GET /v1/transactions/{transactionId} — with source_* in the
credential’s currency and destination_* in your wallet’s currency:
wallet, customer and credential blocks tell you which credential was funded without a
second API call — useful when you hand out one virtual account per customer. They appear only on
cross-currency deposit events.
converted_source_amount is how much the quote actually converted. It equals source_amount on a
deposit that converted on its own, and exceeds it when the conversion swept residue from earlier
deposits.
A deposit that was not converted carries the same shape with no converted value:
A cross-currency deposit never reaches a terminal
deposit.* state. It stays at received for
its whole life, and the conversion.* topics carry the outcome — do not wait for
deposit.confirmed or deposit.failed on this path. Subscribe to both the deposit and
conversion categories to see the full lifecycle.Held deposits
If an arriving deposit breaches the customer’s rolling money-in limit, you getdeposit.held
instead, with metadata.hold_reason set to tier_limit and a null destination_amount — no
conversion is quoted while the deposit is under review. When Global Stack releases it, the
conversion runs at the then-current rate and you receive deposit.received carrying the
quoted amount, followed by the usual conversion.* sequence. A released deposit is subject to the
same minimum: if the balance is under the floor at release, the
deposit.received you receive carries a conversion_pending_reason instead of an amount.
Same-currency credentials
Same-currency credentials keep the original lifecycle:deposit.received on arrival,
deposit.held if a tier gate applies, then deposit.confirmed when the credit settles (or
deposit.failed if it does not). Their payloads do not carry the wallet, customer and
credential blocks, and their destination_amount equals source_amount — there is no
conversion.
Fees
Auto-conversion fees follow the FX conversion contract: the destination amount is net of fees, and the fee breakdown is on theconversion.* webhook payloads. See failure reasons for the codes surfaced on a failed conversion.
Recovery on failure
Ifconversion.failed (or conversion.returned) fires, funds stay on the credential’s own balance. There is no auto-retry of the failed conversion — FX failures are typically structural, not transient — but the parked funds are not stranded: because conversions are sized from the credential’s whole available balance, the next deposit into that credential converts the leftover along with itself, at the then-current rate.
If no further deposit is expected, contact Global Stack support to drain the parked funds; ops will run a fresh conversion at the then-current rate. Once the drain lands, the wallet balance is credited and the credential balance clears.