> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.useroot.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.useroot.com/_mcp/server.

# Get account transfer conversion estimate

GET https://api.useroot.com/api/treasury/account-transfers/conversion-estimate

Returns an **indicative** conversion estimate before creating an account transfer between treasury accounts in different currencies.

**Query parameters**

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `from_account_id` | UUID | Yes | Source treasury main account |
| `to_account_id` | UUID | Yes | Destination treasury main account |
| `amount_in_minor_units` | Integer | Yes | Source (debit) amount in the source account's minor units |

The source currency is derived from `from_account_id`; it is not passed separately.

**Response fields**

| Field | Description |
|-------|-------------|
| `source_currency_code` | Debit currency |
| `source_amount_in_minor_units` | Echo of request amount |
| `destination_currency_code` | Credit currency (from destination account) |
| `destination_amount_in_minor_units` | **Estimated** credit amount (may differ at settlement) |
| `indicative_fx_rate` | Effective major-unit rate as a decimal string |

This is an **estimate**, not a quote. The credit amount applied at settlement may differ. After settlement, use bank-reported transactions on each account for actual debit and credit amounts.

**Error responses**

| Status | Description |
|--------|-------------|
| 400 | Invalid account pair or request |
| 404 | Entity or account not found |

Reference: https://docs.useroot.com/api-reference/treasury-api/get-account-transfer-conversion-estimate

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: '[Code Generated] Root - Instant Account to Account Money Movement'
  version: 1.0.0
paths:
  /api/treasury/account-transfers/conversion-estimate:
    get:
      operationId: get-account-transfer-conversion-estimate
      summary: Get account transfer conversion estimate
      description: >-
        Returns an **indicative** conversion estimate before creating an account
        transfer between treasury accounts in different currencies.


        **Query parameters**


        | Field | Type | Required | Description |

        |-------|------|----------|-------------|

        | `from_account_id` | UUID | Yes | Source treasury main account |

        | `to_account_id` | UUID | Yes | Destination treasury main account |

        | `amount_in_minor_units` | Integer | Yes | Source (debit) amount in the
        source account's minor units |


        The source currency is derived from `from_account_id`; it is not passed
        separately.


        **Response fields**


        | Field | Description |

        |-------|-------------|

        | `source_currency_code` | Debit currency |

        | `source_amount_in_minor_units` | Echo of request amount |

        | `destination_currency_code` | Credit currency (from destination
        account) |

        | `destination_amount_in_minor_units` | **Estimated** credit amount (may
        differ at settlement) |

        | `indicative_fx_rate` | Effective major-unit rate as a decimal string |


        This is an **estimate**, not a quote. The credit amount applied at
        settlement may differ. After settlement, use bank-reported transactions
        on each account for actual debit and credit amounts.


        **Error responses**


        | Status | Description |

        |--------|-------------|

        | 400 | Invalid account pair or request |

        | 404 | Entity or account not found |
      tags:
        - treasuryApi
      parameters:
        - name: from_account_id
          in: query
          description: Source main account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: to_account_id
          in: query
          description: Destination main account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: amount_in_minor_units
          in: query
          description: Source amount in minor units (source account currency).
          required: true
          schema:
            type: integer
        - name: x-api-key
          in: header
          description: >-
            RootPay API key sent in the x-api-key header. Keys are
            environment-scoped: live_* for production, test_* for sandbox.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Indicative conversion estimate for the account transfer.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response_AccountTransferConversionEstimateResponse_
servers:
  - url: https://api.useroot.com
    description: Production
components:
  schemas:
    AccountTransferConversionEstimateResponse:
      type: object
      properties:
        source_currency_code:
          type: string
        source_amount_in_minor_units:
          type: integer
        destination_currency_code:
          type: string
        destination_amount_in_minor_units:
          type: integer
        indicative_fx_rate:
          type: string
      required:
        - source_currency_code
        - source_amount_in_minor_units
        - destination_currency_code
        - destination_amount_in_minor_units
        - indicative_fx_rate
      description: Indicative FX preview for an account transfer conversion estimate.
      title: AccountTransferConversionEstimateResponse
    Response_AccountTransferConversionEstimateResponse_:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AccountTransferConversionEstimateResponse'
        warning:
          type:
            - string
            - 'null'
      required:
        - data
      title: Response_AccountTransferConversionEstimateResponse_
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        RootPay API key sent in the x-api-key header. Keys are
        environment-scoped: live_* for production, test_* for sandbox.

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "data": {
    "source_currency_code": "USD",
    "source_amount_in_minor_units": 150000,
    "destination_currency_code": "EUR",
    "destination_amount_in_minor_units": 138750,
    "indicative_fx_rate": "0.9250"
  },
  "warning": null
}
```

**SDK Code**

```python
import requests

url = "https://api.useroot.com/api/treasury/account-transfers/conversion-estimate"

querystring = {"from_account_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6","to_account_id":"7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f","amount_in_minor_units":"150000"}

payload = {}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.useroot.com/api/treasury/account-transfers/conversion-estimate?from_account_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&to_account_id=7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f&amount_in_minor_units=150000';
const options = {
  method: 'GET',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.useroot.com/api/treasury/account-transfers/conversion-estimate?from_account_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&to_account_id=7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f&amount_in_minor_units=150000"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.useroot.com/api/treasury/account-transfers/conversion-estimate?from_account_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&to_account_id=7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f&amount_in_minor_units=150000")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.useroot.com/api/treasury/account-transfers/conversion-estimate?from_account_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&to_account_id=7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f&amount_in_minor_units=150000")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.useroot.com/api/treasury/account-transfers/conversion-estimate?from_account_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&to_account_id=7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f&amount_in_minor_units=150000', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.useroot.com/api/treasury/account-transfers/conversion-estimate?from_account_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&to_account_id=7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f&amount_in_minor_units=150000");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.useroot.com/api/treasury/account-transfers/conversion-estimate?from_account_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&to_account_id=7b9e1d2a-4f3c-4d2a-9f3e-1a2b3c4d5e6f&amount_in_minor_units=150000")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```