Listar saques
curl --request GET \
--url https://api.usevext.com/v1/withdrawals \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usevext.com/v1/withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usevext.com/v1/withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.usevext.com/v1/withdrawals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"object": "withdrawal",
"id": "wd_01k1y8d4h1g2f3e4d5c6b7a8z9",
"status": "pending",
"method": "pix",
"amount": 123,
"currency": "BRL",
"fee": 123,
"net": 123,
"pix_key_type": "cpf",
"pix_key": "fi********@fornecedor.com.br",
"failed_reason": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"processed_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"total_pages": 123,
"has_more": true
}
}
Saques
Listar saques
Lista os saques da conta, do mais recente para o mais antigo.
GET
/
v1
/
withdrawals
Listar saques
curl --request GET \
--url https://api.usevext.com/v1/withdrawals \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usevext.com/v1/withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usevext.com/v1/withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.usevext.com/v1/withdrawals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"object": "withdrawal",
"id": "wd_01k1y8d4h1g2f3e4d5c6b7a8z9",
"status": "pending",
"method": "pix",
"amount": 123,
"currency": "BRL",
"fee": 123,
"net": 123,
"pix_key_type": "cpf",
"pix_key": "fi********@fornecedor.com.br",
"failed_reason": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"processed_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"total_pages": 123,
"has_more": true
}
}
?status=awaiting_approval mostra o que ainda espera a aprovação da Vext. O envelope de paginação é
o mesmo da listagem de cobranças — ver Conciliar cobranças com os seus pedidos.Authorizations
Chave secreta do vendedor, criada no painel em Desenvolvedores.
O valor em claro existe uma única vez, na criação. Guardamos só o hash SHA-256 - nem o suporte consegue recuperá-lo, o que é o ponto: um dump do nosso banco não permite cobrar em nome de ninguém.
A chave vai no servidor. Colocá-la no navegador do comprador a entrega a qualquer pessoa que abra a página.
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 1