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

# Get Transaction

GET https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D

Retrieves the current status and details of a specific transaction.

Use this endpoint to check the state of a payment at any point in its lifecycle. The transaction ID is passed as a path parameter using the `{{TRANSACTION_ID}}` variable.

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

**Path parameter**

* `TRANSACTION_ID`: The unique identifier of the transaction to look up.

**Response** includes the transaction status (e.g. `QUOTED`, `PENDING`, `COMPLETED`, `FAILED`, `EXPIRED`, `CANCELLED`) along with payment and recipient details.

Reference: https://docs-colombia.wallib.io/wallib-payments-api-colombia/get-transaction

## Request

### Headers

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

## 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)
- `updatedAt` (datetime, required)

## Examples

**Response**

```json
{
  "transactionId": "b3c6d15b-c7c5-4934-9f3e-7227a359af05",
  "status": "SUCCESS",
  "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",
  "updatedAt": "2026-09-07T23:59:35.202Z"
}
```

**SDK Code**

```python Get Transaction_example
import requests

url = "https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D"

headers = {"x-api-key": "{{X_API_KEY}}"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Get Transaction_example
const url = 'https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D';
const options = {method: 'GET', headers: {'x-api-key': '{{X_API_KEY}}'}};

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

```go Get Transaction_example
package main

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

func main() {

	url := "https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D"

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

	req.Header.Add("x-api-key", "{{X_API_KEY}}")

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

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

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

}
```

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

url = URI("https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D")

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

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '{{X_API_KEY}}'

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

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

HttpResponse<String> response = Unirest.get("https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D")
  .header("x-api-key", "{{X_API_KEY}}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D', [
  'headers' => [
    'x-api-key' => '{{X_API_KEY}}',
  ],
]);

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

```csharp Get Transaction_example
using RestSharp;

var client = new RestClient("https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "{{X_API_KEY}}");
IRestResponse response = client.Execute(request);
```

```swift Get Transaction_example
import Foundation

let headers = ["x-api-key": "{{X_API_KEY}}"]

let request = NSMutableURLRequest(url: NSURL(string: "https://third/v1/provider/transaction/%7BTRANSACTION_ID%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```