FIAT_RETURNED. No follow-up API call is needed.
Magic values
Onramps funded by a USD virtual account are created by the deposit itself, so onramp magic values are passed on thesandboxScenario field of the simulate a deposit to a virtual account endpoint rather than on an onramp create request. The following table outlines the magic values and their effects on the onramp the deposit creates:
Both resolve to
FIAT_RETURNED 3 minutes after reaching the status they force, with a webhook for the change. The onramp moves straight there, and FIAT_RETURNED is terminal. The fiat is returned to the sender’s bank account as part of the return.
Example request
Coverage
Onramp magic values are wired into USD onramps, triggered from the virtual account deposit that creates them, and both resolve toFIAT_RETURNED. This is available regardless of which rail funded the deposit. Values that are not listed above either fall through to the standard sandbox behavior or return an error.
Getting help
- 📧 Email: support@hifi.com
- 💬 Slack: Message us in our shared Slack channel
Related resources
- Magic values overview - What magic values are and where they apply
- Offramp magic values - Force an offramp outcome at create time
- Submit KYC magic values - Drive a KYC application to a particular status
- Sandbox - Environment setup and how sandbox differs from production
- Onramps - Full onramp status progression, including returns
- Onramp events - Webhook events emitted during failures and returns