curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/transactions/simulation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"origin": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
},
"destination": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
},
"denomination": {
"asset": "GBP",
"amount": "100.00",
"target": "origin"
}
}
'{
"simulation": {
"origin": {
"amount": "100.00",
"asset": "GBP",
"rate": "61662.05895589430694464107",
"node": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
}
},
"destination": {
"amount": "0.00162174",
"asset": "BTC",
"rate": "0.00001621742797650142",
"node": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
}
},
"denomination": {
"amount": "100.00",
"asset": "GBP",
"target": "origin"
},
"fees": [],
"simulatedAt": "2026-10-27T15:09:35.161Z"
}
}Transactions
Create simulation
Simulate a transaction to estimate its amounts, rates and fees.
POST
/
core
/
transactions
/
simulation
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/transactions/simulation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"origin": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
},
"destination": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
},
"denomination": {
"asset": "GBP",
"amount": "100.00",
"target": "origin"
}
}
'{
"simulation": {
"origin": {
"amount": "100.00",
"asset": "GBP",
"rate": "61662.05895589430694464107",
"node": {
"type": "account",
"id": "b98e4f0d-a67d-4126-a99d-666f7e0315d9"
}
},
"destination": {
"amount": "0.00162174",
"asset": "BTC",
"rate": "0.00001621742797650142",
"node": {
"type": "account",
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc"
}
},
"denomination": {
"amount": "100.00",
"asset": "GBP",
"target": "origin"
},
"fees": [],
"simulatedAt": "2026-10-27T15:09:35.161Z"
}
}
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:
Read more about the Anatomy of a quote request and the denomination.
- 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: acrypto-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
409transaction_node_invaliderror. - 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.
- Plain (
Account,External account,APM): the node as in a quote. It requires acting on behalf of a user with theX-On-Behalf-Ofheader:accountandexternal-accountreference the user’s account or external account byid.apmtakes only themethod. Its asset is the currency of the method in the user’s country.
- Simulated (e.g.
Account (simulated)): the node has noid. It’s described by itsasset, plus anetworkormethodwhere the table below says so, and works with or withoutX-On-Behalf-Of:
| Node | Simulated |
|---|---|
account | The asset of the account, e.g. { "type": "account", "asset": "BTC" }. |
external-account with via: bank | The asset and the bank network, which sets the fees, e.g. { "type": "external-account", "via": "bank", "asset": "USD", "network": "ach" }. |
external-account with via: card | The asset and the card method (credit-card or debit-card), which sets the fees, e.g. { "type": "external-account", "via": "card", "asset": "GBP", "method": "debit-card" }. The card network (e.g. visa) is optional. |
external-account with via: crypto | The asset and the network, for any address of the network, e.g. { "type": "external-account", "via": "crypto", "asset": "BTC", "network": "bitcoin" }. As an origin, it’s a deposit, like a crypto-address, which must go to an account. As an origin, an external account of type crypto with an id is a deposit too. |
apm | The method and the asset, e.g. { "type": "apm", "method": "paypal", "asset": "GBP" }. For a linked external account of type apm (e.g. PayPal), use the External account node with its id instead. |
crypto-address | The asset and network, for any address of the network: it takes no address, e.g. { "type": "crypto-address", "asset": "BTC", "network": "bitcoin" }. As an origin, it’s a deposit, which must go to an account. |
Response
Thesimulation 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:| Case | What changes |
|---|---|
| Not acting on behalf of a user | Fees come from your organization’s default plan for individual users, not from the plan of a specific user, such as a business user. Rates can also differ slightly, since they don’t include the spread adjustment for the user’s country. |
Crypto address or Crypto external account (simulated) | Withdrawals to an address of another Uphold user are free, but these nodes take no address, so the network fee is always included. An External account of type crypto uses its saved address for withdrawals. |
Body
application/json
Was this page helpful?