Consultar Saque
curl --request GET \
--url https://api.example.com/transfers/{transferHash}import requests
url = "https://api.example.com/transfers/{transferHash}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/transfers/{transferHash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/transfers/{transferHash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/transfers/{transferHash}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/transfers/{transferHash}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/transfers/{transferHash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"200": {},
"401": {},
"404": {},
"500": {}
}Saldo e Saques
Consultar Saque
Consulta o status de uma solicitação de saque
GET
/
transfers
/
{transferHash}
Consultar Saque
curl --request GET \
--url https://api.example.com/transfers/{transferHash}import requests
url = "https://api.example.com/transfers/{transferHash}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/transfers/{transferHash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/transfers/{transferHash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/transfers/{transferHash}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/transfers/{transferHash}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/transfers/{transferHash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"200": {},
"401": {},
"404": {},
"500": {}
}Visão Geral
Este endpoint permite acompanhar o status e detalhes de uma solicitação de saque específica.Endpoint
GET https://api.klivopay.com.br/api/public/v1/transfers/{transferHash}
Parâmetros
Hash identificador único da transferência/saque
Seu token de autenticação da API KlivoPay
Exemplo de Requisição
curl -X GET 'https://api.klivopay.com.br/api/public/v1/transfers/transfer123abc?api_token=seu_token_aqui'
const transferHash = 'transfer123abc';
const response = await fetch(
`https://api.klivopay.com.br/api/public/v1/transfers/${transferHash}?api_token=seu_token_aqui`
);
const data = await response.json();
console.log(data);
import requests
transfer_hash = 'transfer123abc'
url = f'https://api.klivopay.com.br/api/public/v1/transfers/{transfer_hash}'
params = {'api_token': 'seu_token_aqui'}
response = requests.get(url, params=params)
print(response.json())
<?php
$transferHash = 'transfer123abc';
$url = "https://api.klivopay.com.br/api/public/v1/transfers/{$transferHash}?api_token=seu_token_aqui";
$response = file_get_contents($url);
print_r(json_decode($response));
?>
Resposta de Sucesso
200 OK
{
"success": true,
"data": {
"hash": "transfer123abc",
"amount": 50000,
"status": "completed",
"bank_account": {
"type": "checking",
"bank_code": "001",
"bank_name": "Banco do Brasil",
"agency": "1234",
"account_number": "12345-6",
"holder_name": "João Silva",
"holder_document": "12345678900"
},
"created_at": "2025-01-20T10:15:00Z",
"completed_at": "2025-01-21T14:30:00Z"
}
}
Códigos de Resposta
Transferência encontrada e retornada com sucesso
Token de API inválido ou ausente
Transferência não encontrada
Erro interno do servidor
Use este endpoint para acompanhar o status do saque e informar seus usuários sobre o processamento.
⌘I