Skip to main content
POST

Authorizations

x-app-id
string
header
required

Your application ID from the Breet dashboard

x-app-secret
string
header
required

Your application secret from the Breet dashboard

X-Breet-Env
string
header
required

Environment selector: sandbox or production

Body

application/json
walletAddress
string
required

The deposit wallet address (from Generate Wallet Address or Fetch Wallet Addresses). Must belong to your integration and match the asset.

asset
string
required

Asset identifier (e.g. TRX_TEST, USDC_TEST3). Must match the wallet's asset. Use GET /trades/assets for the list.

amountInUSD
number
required

Amount in USD (must be greater than zero).

Required range: x > 0
cryptoReceived
number
required

Crypto amount received (must be greater than zero).

Required range: x > 0
reference
string
required

Unique reference for this mock transaction (e.g. UUID or test ref).

txHash
string
required

Mock transaction hash for the deposit.

sourceAddress
string

Optional sender/source address for the mock deposit.

confirmations
integer

Optional number of confirmations to simulate (positive integer).

Required range: x >= 1
scenario
enum<string>

Sandbox only. Picks the test outcome the mock deposit should simulate. Each value drives a different webhook sequence. If omitted, the deposit follows the happy path and ends credited.

  • completed — happy path. Webhook: trade.pending → trade.completed.
  • confirming — deposit stays pending, waiting for more confirmations. Webhook: trade.pending only. Useful for testing your pending-state UI.
  • below_minimum — deposit is flagged for being under the asset's minimum. Webhook: trade.pending → trade.flagged with balanceRemaining. Requires your amountInUSD to actually be below the asset minimum.
  • failed_on_chain — on-chain transaction fails to confirm. Webhook: trade.pending → trade.deleted with reason: failed_on_chain.
  • under_review — compliance review holds the deposit and then rejects it. Webhook: trade.flagged (subStatus: under_review) → trade.deleted with reason: rejected_after_review.
  • kyt_hold — AML screening flags the deposit. Webhook: trade.pending → trade.flagged (subStatus: under_review) with a populated kyt object.
Available options:
completed,
confirming,
below_minimum,
failed_on_chain,
under_review,
kyt_hold

Response

Mock trade initiated successfully; the trade will be processed asynchronously.