Skip to main content
POST
Create simulation estimates the amounts, rates and fees of a transaction before you create a quote. For example, to show the fees of each deposit and withdrawal method before the user picks one, or before they sign up. A simulation is only an estimate:
  • To execute the transaction, call Create quote and pass its ID to Create transaction.
  • A simulation can succeed where a quote for the same transaction fails, e.g. when the user’s balance or limits don’t allow it, or when the method doesn’t allow the deposit or withdrawal or isn’t available in the user’s country.
  • Rates and fees can change between the simulation and the quote. Always present the quote values to the user before they confirm the transaction.
  • Bank deposits by FPS, SEPA or wire, and crypto deposits, can be simulated but not quoted, since the user makes them by sending money to the account’s deposit method. The simulation estimates what the account receives.

Origin and destination

The request accepts the same node types as Create quote, plus crypto deposits: a crypto-address or crypto external-account origin. The nodes follow these rules:
  • Any node type can be the origin or the destination. Unlike a quote, a simulation doesn’t check that the node allows the deposit or withdrawal, e.g. a deposit from an FPS or crypto external account, which a quote only accepts as a destination.
  • One side must be an account, and both sides can’t be the same account. Otherwise, the request fails with a 409 transaction_node_invalid error.
  • Simulated nodes and crypto addresses must match a rail of your organization for their asset, and for their method or network. Otherwise, the request fails with a 404.
  • That rail doesn’t need to be available in the user’s country. Call List rails as the client to see your organization’s rails, e.g. before the user signs up, or on behalf of the user to see their features.
Each node is either:
  • Plain (Account, External account, APM): the node as in a quote. It requires acting on behalf of a user with the X-On-Behalf-Of header:
    • account and external-account reference the user’s account or external account by id.
    • apm takes only the method. Its asset is the currency of the method in the user’s country.
  • Simulated (e.g. Account (simulated)): the node has no id. It’s described by its asset, plus a network or method where the table below says so, and works with or without X-On-Behalf-Of:
Read more about the Anatomy of a quote request and the denomination.

Response

The simulation object contains the estimated origin and destination amounts and rates, the denomination, the estimated fees and simulatedAt, the time at which the rates were quoted. Account, APM and crypto address nodes are returned as sent in the request. External account nodes return the id, when sent, how the transaction is made (via) and the network used, plus the card method, when sent, or the method for APMs. Their asset isn’t in the node: it’s origin.asset or destination.asset. Networks are matched in any case and returned in lowercase, e.g. Bitcoin is returned as bitcoin. Unlike quotes, simulations do not return requirements. Check them on the quote before creating the transaction.

Precision

The more the simulation knows about the user and the accounts, the closer it is to the quote. Fees and amounts are less precise in these cases:

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication.

Scopes

core.transactions.quotes:simulate

Grants access to simulate quotes

Body

application/json
origin
Account · object
required
destination
Account · object
required
denomination
object
required

Response

Transaction simulated.

simulation
object
required