Consultar PDF do boleto
curl --request GET \
--url https://api.uvvipay.com.br/v1/payments/{id}/boleto \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>'import requests
url = "https://api.uvvipay.com.br/v1/payments/{id}/boleto"
headers = {
"client-secret": "<api-key>",
"client-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'client-secret': '<api-key>', 'client-id': '<api-key>'}
};
fetch('https://api.uvvipay.com.br/v1/payments/{id}/boleto', 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.uvvipay.com.br/v1/payments/{id}/boleto",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"client-id: <api-key>",
"client-secret: <api-key>"
],
]);
$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.uvvipay.com.br/v1/payments/{id}/boleto"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("client-secret", "<api-key>")
req.Header.Add("client-id", "<api-key>")
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.uvvipay.com.br/v1/payments/{id}/boleto")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/payments/{id}/boleto")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["client-secret"] = '<api-key>'
request["client-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "ready",
"url": "https://storage.example/boletos/d398b016-3c29-41b4-afc0-bbf8c81c683c.pdf?X-Amz-Expires=3600"
}Pagamentos
Consultar PDF do boleto
Consulta o PDF do boleto gerado em background. Consulte de novo até status ser ready. Quando status é pending, o header Retry-After traz o intervalo em segundos. Quando ready, url é uma URL assinada (3600 s). Limite: 30 requests por minuto por IP.
GET
/
v1
/
payments
/
{id}
/
boleto
Consultar PDF do boleto
curl --request GET \
--url https://api.uvvipay.com.br/v1/payments/{id}/boleto \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>'import requests
url = "https://api.uvvipay.com.br/v1/payments/{id}/boleto"
headers = {
"client-secret": "<api-key>",
"client-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'client-secret': '<api-key>', 'client-id': '<api-key>'}
};
fetch('https://api.uvvipay.com.br/v1/payments/{id}/boleto', 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.uvvipay.com.br/v1/payments/{id}/boleto",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"client-id: <api-key>",
"client-secret: <api-key>"
],
]);
$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.uvvipay.com.br/v1/payments/{id}/boleto"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("client-secret", "<api-key>")
req.Header.Add("client-id", "<api-key>")
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.uvvipay.com.br/v1/payments/{id}/boleto")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/payments/{id}/boleto")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["client-secret"] = '<api-key>'
request["client-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "ready",
"url": "https://storage.example/boletos/d398b016-3c29-41b4-afc0-bbf8c81c683c.pdf?X-Amz-Expires=3600"
}Quando
status é pending, o header Retry-After traz o intervalo em segundos. Consulte de novo depois desse intervalo.
O endpoint aceita 30 requests por minuto por IP. Acima disso a API retorna 429 com Retry-After.Headers
Secret da credencial do merchant
ID público da credencial do merchant
Path Parameters
ID único da transação
Example:
"550e8400-e29b-41d4-a716-446655440000"
Response
Estado da geração do PDF. Header Retry-After presente quando status é pending.
Estado da geração assíncrona do PDF
Available options:
pending, ready, failed Example:
"ready"
URL assinada do PDF. Presente apenas quando status é ready. Expira em 3600 s.
Example:
"https://storage.example/boletos/d398b016-3c29-41b4-afc0-bbf8c81c683c.pdf?X-Amz-Expires=3600"

