Skip to main content
GET
cURL
Returns the current mock testing configuration for the sandbox environment. Use specific transaction amounts to simulate different outcomes.
Mock testing is only available in the sandbox environment.

Mock Rules

On-Ramp Transactions

Use fiatAmount to trigger specific behaviors:

Off-Ramp Transactions

Use cryptoAmount to trigger specific behaviors:

Cross-Ramp Transactions

Use sourceAmount to trigger specific behaviors: For example, to create a cross-ramp that halts at AWAITING_FUND_TRANSFER:
Cross-ramp uses its own 2000.0x band rather than reusing the on/off-ramp amounts. The internal on-ramp leg of a cross-ramp inherits the parent’s source amount, so a cross-ramp at 1000.01 would trigger the on-ramp rule underneath the cross-ramp one.
Cross-ramp specifics:
  • Only sourceAmount triggers a mock. On the targetAmount path the source amount is fee-derived and will never match a magic value.
  • If you create the transaction from a quoteId, the quote itself must have been created with sourceAmount set to one of the magic values.
  • The transaction advances through the real state machine, so every cross-ramp webhook fires in order — CREATED_CROSS_RAMP, FUNDS_RECEIVED_CROSS_RAMP, STARTED_PROCESSING_CROSS_RAMP, AWAITING_FUND_TRANSFER_CROSS_RAMP, and COMPLETED_CROSS_RAMP (or CANCELLED_CROSS_RAMP for 2000.02).

Important Notes

  • You must use the exact amounts specified above (10.01, 10.02, 10.03, 1000.01, 1000.02, 1000.03, 2000.01, 2000.02, 2000.03).
  • Transaction amount limits are not enforced for mock amounts. All other validation rules still apply (KYC status, etc.).
  • The system automatically handles state transitions to reach the target status.

Error Codes

Common Errors

Authorizations

partner-api-key
string
header
required

API key for the affiliated partner performing the request.

Response

This endpoint provides documentation for partners on how to trigger different transaction statuses using specific amounts.

Only available in testing environments.

success
boolean
Example:

true

data
object