curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/simulation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "on-ramp",
"origin": {
"type": "external-account",
"id": "7dc5c846-5ac2-4853-b67f-005cb83d4017"
},
"destination": {
"type": "external-account",
"id": "5606d0a7-ff4d-ce4f-8675-dea65619122e"
},
"denomination": {
"asset": "USD",
"amount": "100.00",
"target": "origin"
}
}
'{
"simulation": {
"type": "on-ramp",
"origin": {
"asset": "USD",
"amount": "100.00",
"rate": "89253.38317267768950981583",
"node": {
"type": "external-account",
"id": "7dc5c846-5ac2-4853-b67f-005cb83d4017",
"via": "card",
"network": "visa"
}
},
"destination": {
"asset": "BTC",
"amount": "0.00106987",
"rate": "0.00001120405708392375",
"node": {
"type": "external-account",
"id": "5606d0a7-ff4d-ce4f-8675-dea65619122e",
"via": "crypto",
"network": "bitcoin"
}
},
"denomination": {
"asset": "USD",
"amount": "100.00",
"rate": "1.00",
"target": "origin"
},
"fees": [
{
"type": "deposit",
"code": "credit-card-deposit",
"asset": "USD",
"amount": "1.00",
"percentage": "1"
},
{
"type": "network",
"code": "crypto-network",
"asset": "USD",
"amount": "3.51"
}
],
"simulatedAt": "2026-10-28T16:26:42.799Z"
}
}Orders
Create simulation
Simulate an on-ramp or off-ramp order to estimate its amounts, rates and fees.
POST
/
on-off-ramp
/
orders
/
simulation
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/simulation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "on-ramp",
"origin": {
"type": "external-account",
"id": "7dc5c846-5ac2-4853-b67f-005cb83d4017"
},
"destination": {
"type": "external-account",
"id": "5606d0a7-ff4d-ce4f-8675-dea65619122e"
},
"denomination": {
"asset": "USD",
"amount": "100.00",
"target": "origin"
}
}
'{
"simulation": {
"type": "on-ramp",
"origin": {
"asset": "USD",
"amount": "100.00",
"rate": "89253.38317267768950981583",
"node": {
"type": "external-account",
"id": "7dc5c846-5ac2-4853-b67f-005cb83d4017",
"via": "card",
"network": "visa"
}
},
"destination": {
"asset": "BTC",
"amount": "0.00106987",
"rate": "0.00001120405708392375",
"node": {
"type": "external-account",
"id": "5606d0a7-ff4d-ce4f-8675-dea65619122e",
"via": "crypto",
"network": "bitcoin"
}
},
"denomination": {
"asset": "USD",
"amount": "100.00",
"rate": "1.00",
"target": "origin"
},
"fees": [
{
"type": "deposit",
"code": "credit-card-deposit",
"asset": "USD",
"amount": "1.00",
"percentage": "1"
},
{
"type": "network",
"code": "crypto-network",
"asset": "USD",
"amount": "3.51"
}
],
"simulatedAt": "2026-10-28T16:26:42.799Z"
}
}
Create simulation estimates the amounts, rates and fees of an on-ramp or off-ramp order before you create a quote. Use it, for example, to show the fees of each card or payment method before the user picks one or signs up.
A simulation is only an estimate:
- It is not stored and cannot be used to create an order. To place the order, call Create quote and pass its ID to Create order.
- A simulation can succeed where a quote for the same order fails, since it does not check the user’s capabilities, amount limits, rail features or external account status.
- Rates and fees can change between the simulation and the quote. Always present the quote values to the user before they confirm the order.
Origin and destination
The request accepts the node types of Create quote, plus simulated nodes that have noid. An on-ramp goes from a card or APM to a crypto destination, and an off-ramp goes from a crypto address to a card. The nodes follow these rules:
- Card, APM and crypto nodes must use a rail enabled for your organization. For a simulated node, the rail must match its asset and its method, or its network for crypto nodes, and its card network when you send one. Otherwise, the request fails with a
404. - Unlike a quote, a simulation doesn’t check the rail’s features, so it also estimates a deposit or withdrawal the rail doesn’t allow.
- An invalid node, such as a node of an external account type that isn’t allowed for that side of the order, fails with a
409transaction_node_invaliderror. As an off-ramp destination, a card External account must be a debit card, since withdrawals only go to debit cards, or it fails in the same way.
Plain nodes
External account and APM nodes work as in a quote:- An External account references an external account of the user by
id: a card or APM external account for on-ramp origins, a crypto external account for on-ramp destinations, and a card external account for off-ramp destinations. - External accounts belong to users, so referencing one requires acting on behalf of a user. Organization-wide clients do it with the
X-On-Behalf-Ofheader, while single-user clients already act on behalf of their user and don’t need the header. - An APM node without an
assetalso requires acting on behalf of a user, in the same way. Its asset is then the currency of the method in the user’s country. If the method isn’t available in the user’s country, no rail matches it and the response is404.
Simulated nodes
Simulated nodes, such as Card external account (simulated), describe the node without anid. You can send them with or without acting on behalf of a user:
| Node | What to send |
|---|---|
external-account with via: card | The asset and the card method, which sets the fees, e.g. { "type": "external-account", "via": "card", "asset": "USD", "method": "debit-card" }. The method is credit-card or debit-card for on-ramp origins, and only debit-card for off-ramp destinations. The card network (e.g. visa) is optional. |
external-account with via: apm | For on-ramp origins. The method and the asset, e.g. { "type": "external-account", "via": "apm", "method": "paypal", "asset": "USD" }. The response also returns the method as its network, as it does for an APM External account. |
external-account with via: crypto | For on-ramp destinations. The asset and the network, which stand for any address of the network, e.g. { "type": "external-account", "via": "crypto", "asset": "BTC", "network": "bitcoin" }. |
apm | For on-ramp origins. The method and the asset, e.g. { "type": "apm", "method": "paypal", "asset": "USD" }. |
crypto-address | For on-ramp destinations and off-ramp origins. The asset and the network, which stand for any address of the network, e.g. { "type": "crypto-address", "asset": "BTC", "network": "bitcoin" }. As an on-ramp destination, it takes no address or reference. |
Response
Thesimulation object contains:
- The order
type. - The estimated
originanddestination, each with itsasset,amount,rateandnode. - The
denomination. - The estimated
fees. simulatedAt, the time at which the rates of the simulation were quoted.
- The
id, if you sent one. via, which says how the order is made.- The
networkused, when there is one. A simulated card sent without anetworkis returned without it. - The card
method, if you sent one, or themethodof an APM.
origin.asset or destination.asset, not in the node. Networks are matched in any case and returned in lowercase, e.g. Bitcoin is returned as bitcoin.
Unlike quotes, simulations have no id, pricing, expiresAt, refreshAt or requirements. Check the requirements on the quote before you create the order.
Precision
The more the simulation knows about the user and the external 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. |
Card external account (simulated) | The estimate does not depend on the card network (e.g. visa), which is returned in the response, but must match a card rail of your organization. A quote for a real card on that network can differ if the network affects the card’s fees. |
Crypto address or Crypto external account (simulated) as an on-ramp destination | Transfers to another Uphold user’s address are free. These nodes take no address, so the simulation always includes the network fee. A crypto External account uses its saved address. |
Body
application/json
- On-ramp
- Off-ramp
Was this page helpful?