> ## Documentation Index
> Fetch the complete documentation index at: https://developer.uphold.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create simulation

> Simulate a transaction to estimate its amounts, rates and fees.

**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](https://developer.uphold.com/rest-apis/core-api/transactions/create-quote.md) and pass its ID to [Create transaction](https://developer.uphold.com/rest-apis/core-api/transactions/create-transaction.md).
* 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](https://developer.uphold.com/rest-apis/core-api/accounts/get-account-deposit-method.md). The simulation estimates what the account receives.

## Origin and destination

The request accepts the same node types as [Create quote](https://developer.uphold.com/rest-apis/core-api/transactions/create-quote.md), 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](https://developer.uphold.com/rest-apis/core-api/assets/list-rails.md) 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](https://developer.uphold.com/rest-apis/core-api/assets/list-rails.md) 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`:

| 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. |

Read more about the [Anatomy of a quote request](https://developer.uphold.com/rest-apis/core-api/transactions/overview.md#anatomy-of-a-quote-request) and the [denomination](https://developer.uphold.com/rest-apis/core-api/transactions/create-quote.md#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:

| 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. |


## OpenAPI

````yaml _media/specs/core-openapi.mintlify.json post /core/transactions/simulation
openapi: 3.1.0
info:
  version: 0.1.0
  title: Core API
  description: >-
    The Core API provides essential building blocks that empower businesses to
    embed financial services into their applications.
  contact:
    name: Uphold API Team
    email: developers@uphold.com
    url: https://developer.uphold.com
servers:
  - url: https://api.enterprise.sandbox.uphold.com
    description: Sandbox
  - url: https://api.enterprise.uphold.com
    description: Production
security:
  - OAuth2: []
tags:
  - name: Authentication
    description: Authentication.
  - name: Countries
    description: Countries.
  - name: Users
    description: Users.
  - name: KYC
    description: Individual User's KYC.
  - name: KYB
    description: Business User's KYB.
  - name: Capabilities
    description: User capabilities.
  - name: Terms of service
    description: User terms of service.
  - name: Files
    description: Files.
  - name: Assets
    description: Assets, networks and rails.
  - name: Accounts
    description: Accounts.
  - name: External accounts
    description: External accounts.
  - name: Transactions
    description: Transactions.
  - name: Requests for information
    description: Requests for information.
  - name: Portfolio
    description: Portfolio.
  - name: Statements
    description: Statements.
  - name: Metadata
    description: Metadata.
  - name: Webhooks
    description: Webhooks.
paths:
  /core/transactions/simulation:
    post:
      tags:
        - Transactions
      summary: Create simulation
      description: Simulate a transaction to estimate its amounts, rates and fees.
      operationId: core.create-simulation
      requestBody:
        $ref: '#/components/requestBodies/create-simulation-request-body'
      responses:
        '200':
          $ref: '#/components/responses/create-simulation-response'
        '404':
          $ref: '#/components/responses/create-simulation-not-found-response'
        '409':
          $ref: '#/components/responses/create-simulation-conflict-response'
      security:
        - OAuth2:
            - core.transactions.quotes:simulate
components:
  requestBodies:
    create-simulation-request-body:
      required: true
      content:
        application/json:
          schema:
            type: object
            properties:
              origin:
                $ref: '#/components/schemas/simulation-origin-node'
              destination:
                $ref: '#/components/schemas/simulation-destination-node'
              denomination:
                type: object
                properties:
                  asset:
                    description: The asset in which the transaction is denominated.
                    type: string
                  amount:
                    allOf:
                      - $ref: '#/components/schemas/non-zero-decimal-amount'
                      - description: The amount of the transaction.
                  target:
                    description: >-
                      Whether this exact amount should be paid by the origin or
                      received by the destination.
                    type: string
                    enum:
                      - origin
                      - destination
                    default: origin
                required:
                  - asset
                  - amount
            required:
              - origin
              - destination
              - denomination
          examples:
            Trade - Buy 100£ of BTC using GBP:
              value:
                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
            Trade - Buy 100£ of BTC using GBP (simulated nodes):
              value:
                origin:
                  type: account
                  asset: GBP
                destination:
                  type: account
                  asset: BTC
                denomination:
                  asset: GBP
                  amount: '100.00'
                  target: origin
            Trade - Buy 100£ worth of ETH using BTC:
              value:
                origin:
                  type: account
                  id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                destination:
                  type: account
                  id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                denomination:
                  asset: GBP
                  amount: '100.00'
                  target: origin
            Trade - Sell ETH to buy exactly 0.001 BTC:
              value:
                origin:
                  type: account
                  id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                destination:
                  type: account
                  id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                denomination:
                  asset: BTC
                  amount: '0.001'
                  target: destination
            Deposit - 50£ from an APM:
              value:
                origin:
                  type: apm
                  method: paypal
                destination:
                  type: account
                  id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                denomination:
                  asset: GBP
                  amount: '50.00'
                  target: origin
            Deposit - 50£ from an external account:
              value:
                origin:
                  type: external-account
                  id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                destination:
                  type: account
                  id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                denomination:
                  asset: GBP
                  amount: '50.00'
                  target: origin
            Deposit - 50$ from a bank account (simulated nodes):
              value:
                origin:
                  type: external-account
                  via: bank
                  asset: USD
                  network: ach
                destination:
                  type: account
                  asset: USD
                denomination:
                  asset: USD
                  amount: '50.00'
                  target: origin
            Deposit - 0.001 BTC from a crypto external account:
              value:
                origin:
                  type: external-account
                  id: c3f1a8e2-6b4d-4f7a-9e2c-5d8b1a7f3e64
                destination:
                  type: account
                  id: b98e4f0d-a67d-4126-a99d-666f7e0315d9
                denomination:
                  asset: BTC
                  amount: '0.001'
                  target: origin
            Deposit - 0.001 BTC from any crypto address (simulated nodes):
              value:
                origin:
                  type: crypto-address
                  asset: BTC
                  network: bitcoin
                destination:
                  type: account
                  asset: BTC
                denomination:
                  asset: BTC
                  amount: '0.001'
                  target: origin
            Withdraw - 50£ to an external account:
              value:
                origin:
                  type: account
                  id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                destination:
                  type: external-account
                  id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                denomination:
                  asset: GBP
                  amount: '50.00'
                  target: origin
            Withdraw - 50$ to a bank account:
              value:
                origin:
                  type: account
                  id: ce20ad4a-20ae-4c2c-b488-4b195e4c3acd
                destination:
                  type: external-account
                  id: fafe9e7d-e6f9-42d5-902c-948cf9665cd3
                  network: fednow
                denomination:
                  asset: USD
                  amount: '50.00'
                  target: origin
            Withdraw - 50$ to a bank account (simulated nodes):
              value:
                origin:
                  type: account
                  asset: USD
                destination:
                  type: external-account
                  via: bank
                  asset: USD
                  network: fednow
                denomination:
                  asset: USD
                  amount: '50.00'
                  target: origin
            Withdraw - 50£ to a card (simulated nodes):
              value:
                origin:
                  type: account
                  asset: GBP
                destination:
                  type: external-account
                  via: card
                  asset: GBP
                  method: debit-card
                denomination:
                  asset: GBP
                  amount: '50.00'
                  target: origin
            Withdraw - 50£ to an APM:
              value:
                origin:
                  type: account
                  id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                destination:
                  type: apm
                  method: paypal
                denomination:
                  asset: GBP
                  amount: '50.00'
                  target: origin
            Withdraw - 50£ to an APM (simulated nodes):
              value:
                origin:
                  type: account
                  asset: GBP
                destination:
                  type: apm
                  method: paypal
                  asset: GBP
                denomination:
                  asset: GBP
                  amount: '50.00'
                  target: origin
            Withdraw - 100£ to a crypto address:
              value:
                origin:
                  type: account
                  id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                destination:
                  type: crypto-address
                  asset: BTC
                  network: bitcoin
                denomination:
                  asset: GBP
                  amount: '100.00'
                  target: origin
            Withdraw - 100£ to any crypto address (simulated nodes):
              value:
                origin:
                  type: account
                  asset: BTC
                destination:
                  type: crypto-address
                  asset: BTC
                  network: bitcoin
                denomination:
                  asset: GBP
                  amount: '100.00'
                  target: origin
  responses:
    create-simulation-response:
      description: Transaction simulated.
      content:
        application/json:
          schema:
            type: object
            properties:
              simulation:
                $ref: '#/components/schemas/simulation'
            required:
              - simulation
          examples:
            Trade Simulation:
              value:
                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'
            Trade Simulation (Simulated Nodes):
              value:
                simulation:
                  origin:
                    amount: '100.00'
                    asset: GBP
                    rate: '61855.73023305691197955804'
                    node:
                      type: account
                      asset: GBP
                  destination:
                    amount: '0.00161666'
                    asset: BTC
                    rate: '0.00001616665095104771'
                    node:
                      type: account
                      asset: BTC
                  denomination:
                    amount: '100.00'
                    asset: GBP
                    target: origin
                  fees: []
                  simulatedAt: '2026-10-28T16:26:38.232Z'
            Trade Simulation (Crypto To Crypto):
              value:
                simulation:
                  origin:
                    amount: '0.00206302'
                    asset: BTC
                    rate: '0.02894693395330460203'
                    node:
                      type: account
                      id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                  destination:
                    amount: '0.071269033305148513'
                    asset: ETH
                    rate: '34.54597304202020011561'
                    node:
                      type: account
                      id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                  denomination:
                    amount: '100.00'
                    asset: GBP
                    target: origin
                  fees: []
                  simulatedAt: '2026-11-23T15:38:43.543Z'
            Trade Simulation (Exact Destination Amount):
              value:
                simulation:
                  origin:
                    amount: '0.036360336232563649'
                    asset: ETH
                    rate: '36.36033623256364809824'
                    node:
                      type: account
                      id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                  destination:
                    amount: '0.001'
                    asset: BTC
                    rate: '0.02750249595064025838'
                    node:
                      type: account
                      id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                  denomination:
                    amount: '0.001'
                    asset: BTC
                    target: destination
                  fees: []
                  simulatedAt: '2026-11-23T15:38:44.846Z'
            Deposit From APM Simulation:
              value:
                simulation:
                  origin:
                    amount: '66.50'
                    asset: USD
                    rate: '82123.38451262098141229830'
                    node:
                      type: apm
                      method: paypal
                  destination:
                    amount: '0.00078552'
                    asset: BTC
                    rate: '0.00001217679965255593'
                    node:
                      type: account
                      id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                  denomination:
                    amount: '50.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: deposit
                      code: alternative-payment-method-deposit
                      asset: USD
                      amount: '1.99'
                      percentage: '2.99'
                  simulatedAt: '2026-10-28T16:26:40.438Z'
            Deposit From External Account Simulation:
              value:
                simulation:
                  origin:
                    amount: '66.51'
                    asset: USD
                    rate: '1.33401225964710200001'
                    node:
                      type: external-account
                      via: card
                      id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                      network: visa
                  destination:
                    amount: '48.36'
                    asset: GBP
                    rate: '0.74961829830899664912'
                    node:
                      type: account
                      id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                  denomination:
                    amount: '50.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: deposit
                      code: credit-card-deposit
                      asset: USD
                      amount: '1.99'
                      percentage: '2.99'
                  simulatedAt: '2026-10-28T16:29:18.449Z'
            Deposit From Bank Account Simulation (Simulated Nodes):
              value:
                simulation:
                  origin:
                    amount: '50.00'
                    asset: USD
                    rate: '1.00000000000000000000'
                    node:
                      type: external-account
                      via: bank
                      network: ach
                  destination:
                    amount: '50.00'
                    asset: USD
                    rate: '1.00000000000000000000'
                    node:
                      type: account
                      asset: USD
                  denomination:
                    amount: '50.00'
                    asset: USD
                    target: origin
                  fees: []
                  simulatedAt: '2026-11-06T10:27:22.002Z'
            Deposit From Crypto External Account Simulation:
              value:
                simulation:
                  origin:
                    amount: '0.001'
                    asset: BTC
                    rate: '0.00001959754304102876'
                    node:
                      type: external-account
                      via: crypto
                      id: c3f1a8e2-6b4d-4f7a-9e2c-5d8b1a7f3e64
                      network: bitcoin
                  destination:
                    amount: '51.02'
                    asset: GBP
                    rate: '51026.80463088833992549865'
                    node:
                      type: account
                      id: b98e4f0d-a67d-4126-a99d-666f7e0315d9
                  denomination:
                    amount: '0.001'
                    asset: BTC
                    target: origin
                  fees: []
                  simulatedAt: '2026-11-13T10:07:19.491Z'
            Deposit From Crypto Address Simulation (Simulated Nodes):
              value:
                simulation:
                  origin:
                    amount: '0.001'
                    asset: BTC
                    rate: '1.00'
                    node:
                      type: crypto-address
                      asset: BTC
                      network: bitcoin
                  destination:
                    amount: '0.001'
                    asset: BTC
                    rate: '1.00'
                    node:
                      type: account
                      asset: BTC
                  denomination:
                    amount: '0.001'
                    asset: BTC
                    target: origin
                  fees: []
                  simulatedAt: '2026-11-06T13:03:07.882Z'
            Withdrawal To External Account Simulation:
              value:
                simulation:
                  origin:
                    amount: '50.00'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: account
                      id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                  destination:
                    amount: '49.23'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: external-account
                      via: bank
                      id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                      network: fps
                  denomination:
                    amount: '50.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: withdrawal
                      code: fps-withdrawal
                      asset: GBP
                      amount: '0.77'
                  simulatedAt: '2026-11-23T15:38:46.153Z'
            Withdrawal To Bank Account Simulation:
              value:
                simulation:
                  origin:
                    amount: '50.00'
                    asset: USD
                    rate: '1.00000000000000000000'
                    node:
                      type: account
                      id: ce20ad4a-20ae-4c2c-b488-4b195e4c3acd
                  destination:
                    amount: '49.00'
                    asset: USD
                    rate: '1.00000000000000000000'
                    node:
                      type: external-account
                      via: bank
                      id: fafe9e7d-e6f9-42d5-902c-948cf9665cd3
                      network: fednow
                  denomination:
                    amount: '50.00'
                    asset: USD
                    target: origin
                  fees:
                    - type: withdrawal
                      code: us-bank-account-instant-withdrawals
                      asset: USD
                      amount: '1.00'
                  simulatedAt: '2026-11-23T15:38:47.524Z'
            Withdrawal To Bank Account Simulation (Simulated Nodes):
              value:
                simulation:
                  origin:
                    amount: '50.00'
                    asset: USD
                    rate: '1.00000000000000000000'
                    node:
                      type: account
                      asset: USD
                  destination:
                    amount: '49.00'
                    asset: USD
                    rate: '1.00000000000000000000'
                    node:
                      type: external-account
                      via: bank
                      network: fednow
                  denomination:
                    amount: '50.00'
                    asset: USD
                    target: origin
                  fees:
                    - type: withdrawal
                      code: us-bank-account-instant-withdrawals
                      asset: USD
                      amount: '1.00'
                  simulatedAt: '2026-11-06T10:27:22.554Z'
            Withdrawal To Card Simulation (Simulated Nodes):
              value:
                simulation:
                  origin:
                    amount: '50.00'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: account
                      asset: GBP
                  destination:
                    amount: '48.62'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: external-account
                      via: card
                      method: debit-card
                  denomination:
                    amount: '50.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: withdrawal
                      code: credit-card-withdrawal
                      asset: GBP
                      amount: '1.38'
                      percentage: '2.75'
                  simulatedAt: '2026-11-06T10:27:23.617Z'
            Withdrawal To APM Simulation:
              value:
                simulation:
                  origin:
                    amount: '50.00'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: account
                      id: 38778db4-7ad5-4353-88b8-07e93eb1e02e
                  destination:
                    amount: '49.12'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: apm
                      method: paypal
                  denomination:
                    amount: '50.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: withdrawal
                      code: alternative-payment-method-withdrawals
                      asset: GBP
                      amount: '0.88'
                      percentage: '1.75'
                  simulatedAt: '2026-11-23T15:38:48.855Z'
            Withdrawal To APM Simulation (Simulated Nodes):
              value:
                simulation:
                  origin:
                    amount: '50.00'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: account
                      asset: GBP
                  destination:
                    amount: '49.12'
                    asset: GBP
                    rate: '1.00000000000000000000'
                    node:
                      type: apm
                      method: paypal
                      asset: GBP
                  denomination:
                    amount: '50.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: withdrawal
                      code: alternative-payment-method-withdrawals
                      asset: GBP
                      amount: '0.88'
                      percentage: '1.75'
                  simulatedAt: '2026-11-06T10:27:24.552Z'
            Withdrawal To Crypto Address Simulation:
              value:
                simulation:
                  origin:
                    amount: '0.00206302'
                    asset: BTC
                    rate: '1.00'
                    node:
                      type: account
                      id: 555a99a1-620d-4431-a0ac-b43e1aad2bdc
                  destination:
                    amount: '0.00202302'
                    asset: BTC
                    rate: '1.00'
                    node:
                      type: crypto-address
                      asset: BTC
                      network: bitcoin
                  denomination:
                    amount: '100.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: network
                      code: crypto-network
                      asset: BTC
                      amount: '0.00004'
                  simulatedAt: '2026-11-23T15:38:50.237Z'
            Withdrawal To Crypto Address Simulation (Simulated Nodes):
              value:
                simulation:
                  origin:
                    amount: '0.00165485'
                    asset: BTC
                    rate: '1.00'
                    node:
                      type: account
                      asset: BTC
                  destination:
                    amount: '0.00161485'
                    asset: BTC
                    rate: '1.00'
                    node:
                      type: crypto-address
                      asset: BTC
                      network: bitcoin
                  denomination:
                    amount: '100.00'
                    asset: GBP
                    target: origin
                  fees:
                    - type: network
                      code: crypto-network
                      asset: BTC
                      amount: '0.00004'
                  simulatedAt: '2026-10-28T16:26:42.799Z'
      headers:
        x-uphold-request-id:
          description: >-
            A unique identifier for the request that can be shared with Uphold
            for troubleshooting purposes.
          required: true
          schema:
            type: string
          examples:
            Request ID:
              value: a4e390583b3ac581-MRS
    create-simulation-not-found-response:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          examples:
            Denomination Asset Not Found:
              value:
                code: entity_not_found
                message: The denomination asset cannot be found
                details:
                  entity: asset
                  context: body
                  property: denomination.asset
            Origin Asset Not Found:
              value:
                code: entity_not_found
                message: The origin asset cannot be found
                details:
                  entity: asset
                  context: body
                  property: origin.asset
            Destination Asset Not Found:
              value:
                code: entity_not_found
                message: The destination asset cannot be found
                details:
                  entity: asset
                  context: body
                  property: destination.asset
            Origin Not Found:
              value:
                code: entity_not_found
                message: The origin cannot be found
                details:
                  entity: account
                  context: body
                  property: origin
            Destination Not Found:
              value:
                code: entity_not_found
                message: The destination cannot be found
                details:
                  entity: account
                  context: body
                  property: destination
            Origin External Account Not Found:
              value:
                code: entity_not_found
                message: The origin cannot be found
                details:
                  entity: external-account
                  context: body
                  property: origin
            Destination External Account Not Found:
              value:
                code: entity_not_found
                message: The destination cannot be found
                details:
                  entity: external-account
                  context: body
                  property: destination
            Rail For Origin Asset And Network Not Found:
              value:
                code: entity_not_found
                message: >-
                  A rail for the specified origin asset and network cannot be
                  found
                details:
                  entity: rail
                  context: body
                  property: origin
            Rail For Destination Asset And Network Not Found:
              value:
                code: entity_not_found
                message: >-
                  A rail for the specified destination asset and network cannot
                  be found
                details:
                  entity: rail
                  context: body
                  property: destination
            Rail For Origin Node Not Found:
              value:
                code: entity_not_found
                message: A rail for the specified origin node cannot be found
                details:
                  entity: rail
                  context: body
                  property: origin
            Rail For Destination Node Not Found:
              value:
                code: entity_not_found
                message: A rail for the specified destination node cannot be found
                details:
                  entity: rail
                  context: body
                  property: destination
      headers:
        x-uphold-request-id:
          description: >-
            A unique identifier for the request that can be shared with Uphold
            for troubleshooting purposes.
          required: true
          schema:
            type: string
          examples:
            Request ID:
              value: a4e390583b3ac581-MRS
    create-simulation-conflict-response:
      description: Business logic error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          examples:
            Transaction Node Invalid:
              value:
                code: transaction_node_invalid
                message: The origin node is invalid
            Node Id Without User:
              value:
                code: transaction_node_invalid
                message: The origin node id requires acting on behalf of a user
            Node Asset Missing Without User:
              value:
                code: transaction_node_invalid
                message: >-
                  The origin node requires an asset when not acting on behalf of
                  a user
            Origin And Destination Combination Not Allowed:
              value:
                code: transaction_node_invalid
                message: The origin and destination node combination is not allowed
            Origin External Account Network Not Supported:
              value:
                code: transaction_node_invalid
                message: >-
                  The origin external account does not support the specified
                  network
            Destination External Account Network Not Supported:
              value:
                code: transaction_node_invalid
                message: >-
                  The destination external account does not support the
                  specified network
            Unspecified Error:
              value:
                code: operation_not_allowed
                message: Transaction not allowed due to an unspecified error
                details:
                  reasons:
                    - unspecified-error
      headers:
        x-uphold-request-id:
          description: >-
            A unique identifier for the request that can be shared with Uphold
            for troubleshooting purposes.
          required: true
          schema:
            type: string
          examples:
            Request ID:
              value: a4e390583b3ac581-MRS
  schemas:
    simulation-origin-node:
      type: object
      discriminator:
        propertyName: type
        mapping:
          account: '#/components/schemas/simulation-node-account-any'
          external-account: '#/components/schemas/simulation-node-external-account-any'
          apm: '#/components/schemas/simulation-node-apm-any'
          crypto-address: '#/components/schemas/simulation-node-crypto-address'
      oneOf:
        - $ref: '#/components/schemas/simulation-node-account-any'
        - $ref: '#/components/schemas/simulation-node-external-account-any'
        - $ref: '#/components/schemas/simulation-node-apm-any'
        - $ref: '#/components/schemas/simulation-node-crypto-address'
      required:
        - type
    simulation-destination-node:
      type: object
      discriminator:
        propertyName: type
        mapping:
          account: '#/components/schemas/simulation-node-account-any'
          external-account: '#/components/schemas/simulation-node-external-account-any'
          apm: '#/components/schemas/simulation-node-apm-any'
          crypto-address: '#/components/schemas/simulation-node-crypto-address'
      oneOf:
        - $ref: '#/components/schemas/simulation-node-account-any'
        - $ref: '#/components/schemas/simulation-node-external-account-any'
        - $ref: '#/components/schemas/simulation-node-apm-any'
        - $ref: '#/components/schemas/simulation-node-crypto-address'
      required:
        - type
    non-zero-decimal-amount:
      type: string
      pattern: ^(?!0+(\.0+)?$)\d+(\.\d+)?$
    simulation:
      type: object
      properties:
        origin:
          $ref: '#/components/schemas/simulation-origin-endpoint'
        destination:
          $ref: '#/components/schemas/simulation-destination-endpoint'
        denomination:
          $ref: '#/components/schemas/simulation-denomination'
        fees:
          $ref: '#/components/schemas/transaction-fees'
          description: The estimated fees of the simulation.
        simulatedAt:
          description: The time at which the rates of the simulation were quoted.
          type: string
          format: date-time
      required:
        - origin
        - destination
        - denomination
        - fees
        - simulatedAt
    error:
      description: The error information.
      allOf:
        - $ref: '#/components/schemas/feedback'
    simulation-node-account-any:
      type: object
      properties:
        type:
          enum:
            - account
      oneOf:
        - $ref: '#/components/schemas/simulation-node-account'
        - $ref: '#/components/schemas/simulation-node-account-simulated'
    simulation-node-external-account-any:
      type: object
      properties:
        type:
          enum:
            - external-account
      oneOf:
        - $ref: '#/components/schemas/simulation-node-external-account'
        - $ref: '#/components/schemas/simulation-node-external-account-simulated'
    simulation-node-apm-any:
      type: object
      properties:
        type:
          enum:
            - apm
      oneOf:
        - $ref: '#/components/schemas/simulation-node-apm'
        - $ref: '#/components/schemas/simulation-node-apm-simulated'
    simulation-node-crypto-address:
      title: Crypto address
      description: Any address of the network.
      type: object
      additionalProperties: false
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - crypto-address
        asset:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: The asset to be used in the operation.
              type: string
              maxLength: 20
        network:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: The crypto network.
              type: string
              maxLength: 50
      required:
        - type
        - asset
        - network
    simulation-origin-endpoint:
      description: The origin of the simulation.
      type: object
      properties:
        asset:
          description: The asset of the endpoint.
          type: string
        amount:
          description: The estimated amount of the endpoint.
          type: string
        rate:
          description: >-
            The estimated rate of the endpoint against its counter-part (origin
            to destination and vice-versa).
          type: string
        node:
          $ref: '#/components/schemas/simulation-origin-response-node'
      required:
        - asset
        - amount
        - rate
        - node
    simulation-destination-endpoint:
      description: The destination of the simulation.
      type: object
      properties:
        asset:
          description: The asset of the endpoint.
          type: string
        amount:
          description: The estimated amount of the endpoint.
          type: string
        rate:
          description: >-
            The estimated rate of the endpoint against its counter-part (origin
            to destination and vice-versa).
          type: string
        node:
          $ref: '#/components/schemas/simulation-destination-response-node'
      required:
        - asset
        - amount
        - rate
        - node
    simulation-denomination:
      description: The denomination of the simulation.
      type: object
      properties:
        asset:
          description: The asset in which the transaction is denominated.
          type: string
        amount:
          description: The amount of the transaction.
          type: string
        target:
          description: >-
            Whether this exact amount should be paid by the origin or received
            by the destination.
          type: string
          enum:
            - origin
            - destination
      required:
        - asset
        - amount
        - target
    transaction-fees:
      description: The fees of the transaction.
      type: array
      items:
        type: object
        properties:
          type:
            description: The type of the fee.
            type: string
            enum:
              - deposit
              - exchange
              - network
              - withdrawal
          code:
            description: The code of the fee.
            type: string
          asset:
            description: The asset in which the fee is denominated.
            type: string
          amount:
            description: The amount of the fee.
            type: string
          percentage:
            description: >-
              The percentage of the fee, if the amount was calculated from a
              percentage.
            type: string
          beneficiary:
            description: The entity that receives the fee.
            type: string
            enum:
              - uphold
              - partner
        required:
          - type
          - code
          - asset
          - amount
    feedback:
      description: A feedback message with a code and human-readable description.
      type: object
      properties:
        code:
          description: A short string with a brief explanation about the code reported.
          type: string
        message:
          description: A human-readable message providing more details.
          type: string
        details:
          description: Additional information about the feedback reported.
          type: object
          additionalProperties: true
      required:
        - code
        - message
    simulation-node-account:
      title: Account
      allOf:
        - $ref: '#/components/schemas/create-quote-node-account'
      unevaluatedProperties: false
    simulation-node-account-simulated:
      title: Account (simulated)
      type: object
      additionalProperties: false
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - account
        asset:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: >-
                The asset of the account. Can also be used when acting on behalf
                of a user.
              type: string
              maxLength: 20
      required:
        - type
        - asset
    simulation-node-external-account:
      title: External account
      allOf:
        - $ref: '#/components/schemas/create-quote-node-external-account'
      unevaluatedProperties: false
    simulation-node-external-account-simulated:
      type: object
      discriminator:
        propertyName: via
        mapping:
          bank: '#/components/schemas/simulation-node-external-account-bank-simulated'
          card: '#/components/schemas/simulation-node-external-account-card-simulated'
          crypto: >-
            #/components/schemas/simulation-node-external-account-crypto-simulated
      oneOf:
        - $ref: '#/components/schemas/simulation-node-external-account-bank-simulated'
        - $ref: '#/components/schemas/simulation-node-external-account-card-simulated'
        - $ref: >-
            #/components/schemas/simulation-node-external-account-crypto-simulated
      required:
        - via
    simulation-node-apm:
      title: APM
      description: The asset is the currency of the payment method in the user's country.
      type: object
      allOf:
        - $ref: '#/components/schemas/create-quote-node-apm-origin'
      not:
        properties:
          asset: {}
        required:
          - asset
      unevaluatedProperties: false
    simulation-node-apm-simulated:
      title: APM (simulated)
      type: object
      additionalProperties: false
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - apm
        method:
          description: The alternative payment method to be used in the operation.
          enum:
            - apple-pay
            - google-pay
            - paypal
            - venmo
        asset:
          $ref: '#/components/schemas/simulation-node-apm-asset'
      required:
        - type
        - method
        - asset
    string-no-edge-spaces:
      type: string
      pattern: ^\S.*\S$|^\S$
    simulation-origin-response-node:
      description: >-
        The node of the endpoint, as sent in the request, with its network in
        lowercase. External accounts also include how the transaction is made
        (`via`) and its network.
      oneOf:
        - $ref: '#/components/schemas/simulation-node-account'
          title: Account
        - $ref: '#/components/schemas/simulation-node-account-simulated'
          title: Account (simulated)
        - $ref: '#/components/schemas/simulation-node-external-account-response'
          title: External account
        - $ref: '#/components/schemas/simulation-node-apm'
          title: APM
        - $ref: '#/components/schemas/simulation-node-apm-simulated'
          title: APM (simulated)
        - $ref: '#/components/schemas/simulation-node-crypto-address'
          title: Crypto address
    simulation-destination-response-node:
      description: >-
        The node of the endpoint, as sent in the request, with its network in
        lowercase. External accounts also include how the transaction is made
        (`via`) and its network.
      oneOf:
        - $ref: '#/components/schemas/simulation-node-account'
          title: Account
        - $ref: '#/components/schemas/simulation-node-account-simulated'
          title: Account (simulated)
        - $ref: '#/components/schemas/simulation-node-external-account-response'
          title: External account
        - $ref: '#/components/schemas/simulation-node-apm'
          title: APM
        - $ref: '#/components/schemas/simulation-node-apm-simulated'
          title: APM (simulated)
        - $ref: '#/components/schemas/simulation-node-crypto-address'
          title: Crypto address
    create-quote-node-account:
      type: object
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - account
        id:
          description: The account id.
          type: string
          format: uuid
      required:
        - type
        - id
    create-quote-node-external-account:
      type: object
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - external-account
        id:
          description: The external account id.
          type: string
          format: uuid
        network:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: The network used for the transaction with the external account.
              type: string
              maxLength: 50
      required:
        - type
        - id
    simulation-node-external-account-bank-simulated:
      title: Bank external account (simulated)
      type: object
      additionalProperties: false
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - external-account
        via:
          description: How the transaction is made, the type of external account.
          type: string
          enum:
            - bank
        asset:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: >-
                The asset of the external account. Can also be used when acting
                on behalf of a user.
              type: string
              maxLength: 20
        network:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: >-
                The bank network (e.g. `ach`), which changes the fees. The
                organization must have a bank rail on it for the asset.
              type: string
              maxLength: 50
      required:
        - type
        - via
        - asset
        - network
    simulation-node-external-account-card-simulated:
      title: Card external account (simulated)
      type: object
      additionalProperties: false
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - external-account
        via:
          description: How the transaction is made, the type of external account.
          type: string
          enum:
            - card
        asset:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: >-
                The asset of the external account. Can also be used when acting
                on behalf of a user.
              type: string
              maxLength: 20
        method:
          description: >-
            The card method, which changes the fees. The organization must have
            a card rail on it for the asset.
          type: string
          enum:
            - credit-card
            - debit-card
        network:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: >-
                The card network (e.g. `visa`). It does not change the estimate
                and is returned in the response, but the organization must have
                a card rail on it.
              type: string
              maxLength: 50
      required:
        - type
        - via
        - asset
        - method
    simulation-node-external-account-crypto-simulated:
      title: Crypto external account (simulated)
      description: Any address of the network. As an origin, it's a crypto deposit.
      type: object
      additionalProperties: false
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - external-account
        via:
          description: How the transaction is made, the type of external account.
          type: string
          enum:
            - crypto
        asset:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: >-
                The asset of the crypto address. Can also be used when acting on
                behalf of a user.
              type: string
              maxLength: 20
        network:
          allOf:
            - $ref: '#/components/schemas/string-no-edge-spaces'
            - description: The crypto network.
              type: string
              maxLength: 50
      required:
        - type
        - via
        - asset
        - network
    create-quote-node-apm-origin:
      type: object
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - apm
        method:
          description: The alternative payment method to be used in the operation.
          enum:
            - apple-pay
            - google-pay
            - paypal
            - venmo
      required:
        - type
        - method
    simulation-node-apm-asset:
      allOf:
        - $ref: '#/components/schemas/string-no-edge-spaces'
        - description: >-
            The asset of the payment method. Can also be used when acting on
            behalf of a user.
          type: string
          maxLength: 20
    simulation-node-external-account-response:
      type: object
      additionalProperties: false
      properties:
        type:
          description: The type of the node.
          type: string
          enum:
            - external-account
        id:
          description: The external account id, when provided in the request.
          type: string
          format: uuid
        via:
          description: How the transaction is made, the type of external account.
          type: string
          enum:
            - bank
            - card
            - apm
            - crypto
        network:
          description: The network used for the transaction, in lowercase.
          type: string
        method:
          description: >-
            The alternative payment method, when `via` is `apm`, or the card
            method sent in the request, when `via` is `card`.
          type: string
      required:
        - type
        - via
  securitySchemes:
    OAuth2:
      type: oauth2
      description: OAuth 2.0 authentication.
      flows:
        clientCredentials:
          tokenUrl: /core/oauth2/token
          scopes:
            core.users:act-on-behalf-of: Grants access to act on behalf of a user
            core.users:create: Grants access to create users
            core.users:read: Grants access to view users
            core.users:delete: Grants access to delete users
            core.users.metadata:read: Grants access to view user metadata
            core.users.metadata:write: Grants access to modify user metadata
            core.kyc:read: Grants access to view KYC processes
            core.kyc.profile:update: Grants access to update profile KYC process
            core.kyc.address:update: Grants access to update address KYC process
            core.kyc.email:update: Grants access to update email KYC process
            core.kyc.phone:update: Grants access to update phone KYC process
            core.kyc.identity:update: Grants access to update identity KYC process
            core.kyc.proof-of-address:update: Grants access to update proof-of-address KYC process
            core.kyc.customer-due-diligence:update: Grants access to update customer due diligence KYC process
            core.kyc.enhanced-due-diligence:update: Grants access to update enhanced due diligence KYC process
            core.kyc.crypto-risk-assessment:update: Grants access to update crypto risk assessment KYC process
            core.kyc.self-categorization-statement:update: Grants access to update self-categorization statement KYC process
            core.kyc.tax-details:update: Grants access to update tax details KYC process
            core.kyb:read: Grants access to view KYB processes
            core.kyb.profile:update: Grants access to update profile KYB process
            core.kyb.documents:update: Grants access to update documents KYB process
            core.kyb.financial-institution:update: Grants access to update financial institution KYB process
            core.kyb.associated-persons:create: Grants access to create KYB associated persons
            core.kyb.associated-persons:read: Grants access to view KYB associated persons
            core.kyb.associated-persons:delete: Grants access to delete KYB associated persons
            core.kyb.associated-persons.profile:update: Grants access to update profile KYB associated person process
            core.kyb.associated-persons.identity:update: Grants access to update identity KYB associated person process
            core.kyb.associated-persons.proof-of-address:update: >-
              Grants access to update proof-of-address KYB associated person
              process
            core.kyb:use-test-helpers: Grants access to test helpers for KYB
            core.kyb.attestation:trigger: Grants access to trigger the attestation process
            core.capabilities:read: Grants access to view user capabilities
            core.terms-of-service:read: Grants access to view terms of service
            core.terms-of-service:accept: Grants access to accept terms of service
            core.files:create: Grants access to create files
            core.files:read: Grants access to view files
            core.files.metadata:read: Grants access to view files metadata
            core.files.metadata:write: Grants access to modify files metadata
            core.accounts:create: Grants access to create accounts
            core.accounts:read: Grants access to view accounts
            core.accounts:update: Grants access to update accounts
            core.accounts:archive: Grants access to archive accounts
            core.accounts:deposit-method: >-
              Grants access to deposit method needed for depositing into
              accounts
            core.accounts:use-test-helpers: Grants access to test helpers of accounts
            core.accounts.metadata:read: Grants access to view accounts metadata
            core.accounts.metadata:write: Grants access to modify accounts metadata
            core.assets:use-test-helpers: Grants access to test helpers of assets
            core.external-accounts:create: Grants access to create external accounts
            core.external-accounts:read: Grants access to view external accounts
            core.external-accounts:update: Grants access to update external accounts
            core.external-accounts:delete: Grants access to delete external accounts
            core.external-accounts.metadata:read: Grants access to view external accounts metadata
            core.external-accounts.metadata:write: Grants access to modify external accounts metadata
            core.transactions:create: Grants access to create transactions (commit quotes)
            core.transactions.quotes:create: Grants access to create quotes
            core.transactions.quotes:simulate: Grants access to simulate quotes
            core.transactions:read: Grants access to view transactions
            core.transactions.metadata:read: Grants access to view transactions metadata
            core.transactions.metadata:write: Grants access to modify transactions metadata
            core.transactions.requests-for-information:read: Grants access to view transactions requests for information
            core.transactions.requests-for-information:update: Grants access to update transactions requests for information
            core.requests-for-information:read: Grants access to view requests for information
            core.requests-for-information:update: Grants access to update requests for information
            core.portfolio:read: >-
              Grants access to view portfolio overview, performance, and
              historical balance
            core.statements:read: Grants access to read statements
            core.webhooks:management-link: Grants access to create webhook management links

````