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

# Accept Quote

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

Confirms and accepts a previously generated payment quote, triggering the off-ramp payment process.

Once a quote has been generated, use this endpoint to accept it by providing the **transaction ID** and the **blockchain transaction hash** that proves the crypto funds have been sent. This moves the transaction from a quoted state to processing.

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

**Key body fields**

* `transactionId`: The ID of the quote to accept.
* `transactionHash`: The on-chain transaction hash confirming the crypto transfer.

Reference: https://docs-colombia.wallib.io/wallib-payments-api-colombia/accept-quote

## Request

### Headers

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

### Body (application/json)

- `transactionId` (string, required)
- `transactionHash` (string, required)

## Response

### 200

OK

- `transactionId` (string, required)
- `status` (string, required)
- `type` (string, required)
- `quote` (object, required)
  - `baseCurrency` (string, required)
  - `quoteCurrency` (string, required)
  - `baseAmount` (integer, required)
  - `quoteAmount` (integer, required)
  - `exchangeRate` (integer, required)
  - `fee` (integer, required)
  - `expiresAt` (datetime, required)
- `recipient` (object, required)
  - `name` (string, required)
  - `documentType` (string, required)
  - `documentNumber` (string, required)
  - `paymentMethod` (string, required)
  - `key` (object, required)
    - `value` (string, required)
- `transactionHash` (string, required)
- `createdAt` (datetime, required)

## Examples

**Request**

```json
{
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af05",
  "transactionHash": "f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61"
}
```

**Response**

```json
{
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af05",
  "status": "PENDING",
  "type": "CASH_OUT",
  "quote": {
    "baseCurrency": "USDT",
    "quoteCurrency": "COP",
    "baseAmount": 1,
    "quoteAmount": 1,
    "exchangeRate": 1,
    "fee": 1,
    "expiresAt": "2026-09-07T23:49:35.202Z"
  },
  "recipient": {
    "name": "Jay Jay",
    "documentType": "CC",
    "documentNumber": "1118290290",
    "paymentMethod": "Breb",
    "key": {
      "value": "@1234567789"
    }
  },
  "transactionHash": "f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61",
  "createdAt": "2026-09-07T23:49:35.202Z"
}
```

**SDK Code**

```python Accept Quote_example
import requests

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

payload = {
    "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af05",
    "transactionHash": "f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61"
}
headers = {
    "x-api-key": "{{X_API_KEY}}",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Accept Quote_example
const url = 'https://third/v1/provider/quote';
const options = {
  method: 'PUT',
  headers: {'x-api-key': '{{X_API_KEY}}', 'Content-Type': 'application/json'},
  body: '{"transactionId":"b3c6d15b-c7c5-4934-9f3e-7227a359af05","transactionHash":"f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61"}'
};

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

```go Accept Quote_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-7227a359af05\",\n  \"transactionHash\": \"f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61\"\n}")

	req, _ := http.NewRequest("PUT", 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 Accept Quote_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::Put.new(url)
request["x-api-key"] = '{{X_API_KEY}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"transactionId\": \"b3c6d15b-c7c5-4934-9f3e-7227a359af05\",\n  \"transactionHash\": \"f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61\"\n}"

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

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

HttpResponse<String> response = Unirest.put("https://third/v1/provider/quote")
  .header("x-api-key", "{{X_API_KEY}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"transactionId\": \"b3c6d15b-c7c5-4934-9f3e-7227a359af05\",\n  \"transactionHash\": \"f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://third/v1/provider/quote', [
  'body' => '{
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af05",
  "transactionHash": "f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{X_API_KEY}}',
  ],
]);

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

```csharp Accept Quote_example
using RestSharp;

var client = new RestClient("https://third/v1/provider/quote");
var request = new RestRequest(Method.PUT);
request.AddHeader("x-api-key", "{{X_API_KEY}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"transactionId\": \"b3c6d15b-c7c5-4934-9f3e-7227a359af05\",\n  \"transactionHash\": \"f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Accept Quote_example
import Foundation

let headers = [
  "x-api-key": "{{X_API_KEY}}",
  "Content-Type": "application/json"
]
let parameters = [
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af05",
  "transactionHash": "f1fb72bfc3ae72e9f92bde715953602508a737077c768ec7e2cb205e2048cd61"
] 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 = "PUT"
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()
```