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

# Generate Quote to Bank Account

POST https://third/v1/provider/quote
Content-Type: application/json

Generates a payment quote for an off-ramp transaction to a Colombian **bank account**.

Calculates the conversion from **USDT (Tron network)** to **COP** for the specified amount and recipient. The quote must be accepted before the payment is processed.

**Authentication:** Bearer token (`{{JWT_LOGIN}}`) + `x-api-key` header.

**Key body fields**

* `transactionId`: Unique identifier for the transaction.
* `baseCurrency` / `quoteCurrency`: Source and target currencies (e.g. `USDT` → `COP`).
* `amount`: Amount in the base currency to convert.
* `blockchainNetwork`: Blockchain used to fund the payment (e.g. `Tron`).
* `recipient.paymentMethod`: Must be `BankAccount`.
* `recipient.bank`: Bank details including `name`, `code`, `accountNumber`, and `accountType`.

Reference: https://docs-colombia.wallib.io/wallib-payments-api-colombia/generate-quote-to-bank-account

## Request

### Headers

- `x-api-key` (string, optional)

### Body (application/json)

- `transactionId` (string, required)
- `description` (string, required)
- `baseCurrency` (string, required)
- `quoteCurrency` (string, required)
- `amount` (integer, required)
- `blockchainNetwork` (string, required)
- `recipient` (object, required)
  - `name` (string, required)
  - `documentNumber` (string, required)
  - `documentType` (string, required)
  - `phoneNumber` (string, required)
  - `paymentMethod` (string, required)
  - `bank` (object, required)
    - `name` (string, required)
    - `code` (string, required)
    - `accountNumber` (string, required)
    - `accountType` (string, required)

## Response

### 200

OK

- `transactionId` (string, required)
- `address` (string, required)
- `blockchainNetwork` (string, required)
- `quote` (object, required)
  - `baseCurrency` (string, required)
  - `quoteCurrency` (string, required)
  - `exchangeRate` (double, required)
  - `baseAmount` (integer, required)
  - `quoteAmount` (integer, required)
  - `quoteFee` (integer, required)
  - `expiresAt` (datetime, required)
- `recipient` (object, required)
  - `paymentMethod` (string, required)
  - `details` (object, required)
    - `name` (string, required)
    - `documentNumber` (string, required)
    - `documentType` (string, required)
    - `payoutAmount` (integer, required)
    - `bank` (object, required)
      - `name` (string, required)
      - `code` (string, required)
      - `accountNumber` (string, required)
      - `accountType` (string, required)

## Examples

**Request**

```json
{
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af04",
  "description": "Off ramp payment to Colombia",
  "baseCurrency": "USDT",
  "quoteCurrency": "COP",
  "amount": 100,
  "blockchainNetwork": "Tron",
  "recipient": {
    "name": "Juan Rodriguez",
    "documentNumber": "1234567890",
    "documentType": "CC",
    "phoneNumber": "573217895551",
    "paymentMethod": "BankAccount",
    "bank": {
      "name": "Bancolombia",
      "code": "177",
      "accountNumber": "09999999999",
      "accountType": "SAVINGS"
    }
  }
}
```

**Response**

```json
{
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af05",
  "address": "TNVcyQ9J75oxtracoNCaFoeRALoEViPSSm",
  "blockchainNetwork": "Tron",
  "quote": {
    "baseCurrency": "USDT",
    "quoteCurrency": "COP",
    "exchangeRate": 3120.55,
    "baseAmount": 100,
    "quoteAmount": 312055,
    "quoteFee": 800,
    "expiresAt": "2026-09-07T18:41:08Z"
  },
  "recipient": {
    "paymentMethod": "BankAccount",
    "details": {
      "name": "Juan Rodriguez",
      "documentNumber": "1234567890",
      "documentType": "CC",
      "payoutAmount": 311255,
      "bank": {
        "name": "Bancolombia",
        "code": "177",
        "accountNumber": "09999999999",
        "accountType": "SAVINGS"
      }
    }
  }
}
```

**SDK Code**

```python Generate Quote to Bank Account_example
import requests

url = "https://third/v1/provider/quote"

payload = {
    "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af04",
    "description": "Off ramp payment to Colombia",
    "baseCurrency": "USDT",
    "quoteCurrency": "COP",
    "amount": 100,
    "blockchainNetwork": "Tron",
    "recipient": {
        "name": "Juan Rodriguez",
        "documentNumber": "1234567890",
        "documentType": "CC",
        "phoneNumber": "573217895551",
        "paymentMethod": "BankAccount",
        "bank": {
            "name": "Bancolombia",
            "code": "177",
            "accountNumber": "09999999999",
            "accountType": "SAVINGS"
        }
    }
}
headers = {
    "x-api-key": "{{X_API_KEY}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Generate Quote to Bank Account_example
const url = 'https://third/v1/provider/quote';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{X_API_KEY}}', 'Content-Type': 'application/json'},
  body: '{"transactionId":"b3c6d15b-c7c5-4934-9f3e-7227a359af04","description":"Off ramp payment to Colombia","baseCurrency":"USDT","quoteCurrency":"COP","amount":100,"blockchainNetwork":"Tron","recipient":{"name":"Juan Rodriguez","documentNumber":"1234567890","documentType":"CC","phoneNumber":"573217895551","paymentMethod":"BankAccount","bank":{"name":"Bancolombia","code":"177","accountNumber":"09999999999","accountType":"SAVINGS"}}}'
};

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

```go Generate Quote to Bank Account_example
package main

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

func main() {

	url := "https://third/v1/provider/quote"

	payload := strings.NewReader("{\n  \"transactionId\": \"b3c6d15b-c7c5-4934-9f3e-7227a359af04\",\n  \"description\": \"Off ramp payment to Colombia\",\n  \"baseCurrency\": \"USDT\",\n  \"quoteCurrency\": \"COP\",\n  \"amount\": 100,\n  \"blockchainNetwork\": \"Tron\",\n  \"recipient\": {\n    \"name\": \"Juan Rodriguez\",\n    \"documentNumber\": \"1234567890\",\n    \"documentType\": \"CC\",\n    \"phoneNumber\": \"573217895551\",\n    \"paymentMethod\": \"BankAccount\",\n    \"bank\": {\n      \"name\": \"Bancolombia\",\n      \"code\": \"177\",\n      \"accountNumber\": \"09999999999\",\n      \"accountType\": \"SAVINGS\"\n    }\n  }\n}")

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

	req.Header.Add("x-api-key", "{{X_API_KEY}}")
	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 Generate Quote to Bank Account_example
require 'uri'
require 'net/http'

url = URI("https://third/v1/provider/quote")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '{{X_API_KEY}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"transactionId\": \"b3c6d15b-c7c5-4934-9f3e-7227a359af04\",\n  \"description\": \"Off ramp payment to Colombia\",\n  \"baseCurrency\": \"USDT\",\n  \"quoteCurrency\": \"COP\",\n  \"amount\": 100,\n  \"blockchainNetwork\": \"Tron\",\n  \"recipient\": {\n    \"name\": \"Juan Rodriguez\",\n    \"documentNumber\": \"1234567890\",\n    \"documentType\": \"CC\",\n    \"phoneNumber\": \"573217895551\",\n    \"paymentMethod\": \"BankAccount\",\n    \"bank\": {\n      \"name\": \"Bancolombia\",\n      \"code\": \"177\",\n      \"accountNumber\": \"09999999999\",\n      \"accountType\": \"SAVINGS\"\n    }\n  }\n}"

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

```java Generate Quote to Bank Account_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://third/v1/provider/quote")
  .header("x-api-key", "{{X_API_KEY}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"transactionId\": \"b3c6d15b-c7c5-4934-9f3e-7227a359af04\",\n  \"description\": \"Off ramp payment to Colombia\",\n  \"baseCurrency\": \"USDT\",\n  \"quoteCurrency\": \"COP\",\n  \"amount\": 100,\n  \"blockchainNetwork\": \"Tron\",\n  \"recipient\": {\n    \"name\": \"Juan Rodriguez\",\n    \"documentNumber\": \"1234567890\",\n    \"documentType\": \"CC\",\n    \"phoneNumber\": \"573217895551\",\n    \"paymentMethod\": \"BankAccount\",\n    \"bank\": {\n      \"name\": \"Bancolombia\",\n      \"code\": \"177\",\n      \"accountNumber\": \"09999999999\",\n      \"accountType\": \"SAVINGS\"\n    }\n  }\n}")
  .asString();
```

```php Generate Quote to Bank Account_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://third/v1/provider/quote', [
  'body' => '{
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af04",
  "description": "Off ramp payment to Colombia",
  "baseCurrency": "USDT",
  "quoteCurrency": "COP",
  "amount": 100,
  "blockchainNetwork": "Tron",
  "recipient": {
    "name": "Juan Rodriguez",
    "documentNumber": "1234567890",
    "documentType": "CC",
    "phoneNumber": "573217895551",
    "paymentMethod": "BankAccount",
    "bank": {
      "name": "Bancolombia",
      "code": "177",
      "accountNumber": "09999999999",
      "accountType": "SAVINGS"
    }
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{X_API_KEY}}',
  ],
]);

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

```csharp Generate Quote to Bank Account_example
using RestSharp;

var client = new RestClient("https://third/v1/provider/quote");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "{{X_API_KEY}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"transactionId\": \"b3c6d15b-c7c5-4934-9f3e-7227a359af04\",\n  \"description\": \"Off ramp payment to Colombia\",\n  \"baseCurrency\": \"USDT\",\n  \"quoteCurrency\": \"COP\",\n  \"amount\": 100,\n  \"blockchainNetwork\": \"Tron\",\n  \"recipient\": {\n    \"name\": \"Juan Rodriguez\",\n    \"documentNumber\": \"1234567890\",\n    \"documentType\": \"CC\",\n    \"phoneNumber\": \"573217895551\",\n    \"paymentMethod\": \"BankAccount\",\n    \"bank\": {\n      \"name\": \"Bancolombia\",\n      \"code\": \"177\",\n      \"accountNumber\": \"09999999999\",\n      \"accountType\": \"SAVINGS\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate Quote to Bank Account_example
import Foundation

let headers = [
  "x-api-key": "{{X_API_KEY}}",
  "Content-Type": "application/json"
]
let parameters = [
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af04",
  "description": "Off ramp payment to Colombia",
  "baseCurrency": "USDT",
  "quoteCurrency": "COP",
  "amount": 100,
  "blockchainNetwork": "Tron",
  "recipient": [
    "name": "Juan Rodriguez",
    "documentNumber": "1234567890",
    "documentType": "CC",
    "phoneNumber": "573217895551",
    "paymentMethod": "BankAccount",
    "bank": [
      "name": "Bancolombia",
      "code": "177",
      "accountNumber": "09999999999",
      "accountType": "SAVINGS"
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://third/v1/provider/quote")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```