cURL
Transactions
/api/partner/v2/transactions/mock-testing-guide
GET
cURL
Returns the current mock testing configuration for the staging environment. Use specific transaction amounts to simulate different outcomes.
Mock testing is only available in the staging environment.
Mock Rules
On-Ramp Transactions
UsefiatAmount to trigger specific behaviors:
| Fiat Amount | Expected Status | Description |
|---|---|---|
10.01 | COMPLETED | Transaction completes successfully |
10.02 | CANCELLED (NAME_VERIFICATION_FAILED) | Bank beneficiary is not the KYC’d user |
Off-Ramp Transactions
UsecryptoAmount to trigger specific behaviors:
| Crypto Amount | Expected Status | Description |
|---|---|---|
10.01 | COMPLETED | Transaction completes successfully |
10.02 | CANCELLED (NAME_VERIFICATION_FAILED) | Bank beneficiary is not a KYC’d user |
10.03 | CRYPTO_NOT_RECEIVED | Failure due to no crypto transfer |
Important Notes
- You must use the exact amounts specified above (10.01, 10.02, 10.03).
- All other validation rules still apply (KYC status, limits, etc.).
- The system automatically handles state transitions to reach the target status.
Error Codes
Common Errors
| HTTP Status | Code | Message |
|---|---|---|
| 401 | UNAUTHORIZED | ”API Key is missing” |
| 401 | UNAUTHORIZED | ”Invalid API Key format” |
| 401 | UNAUTHORIZED | ”Invalid API Key” |
| 403 | INVALID_PARTNER_FLOW | ”The partner has an invalid flow.” |
Headers
Api key for the affiliated partner that is performing the request