Obter detalhes do pagamento
curl --request GET \
--url https://api.paybridge.dev/v1/payments/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.paybridge.dev/v1/payments/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.paybridge.dev/v1/payments/{id}', 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.paybridge.dev/v1/payments/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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.paybridge.dev/v1/payments/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.paybridge.dev/v1/payments/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paybridge.dev/v1/payments/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"provider": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"externalId": "<string>",
"pixCopyPaste": "<string>",
"pixQrCodeBase64": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"payerName": "<string>",
"payerDocument": "<string>",
"payerEmail": "<string>",
"isTest": true,
"metadata": {
"orderId": "123",
"source": "mobile"
}
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Invalid or missing API Key",
"timestamp": "2026-01-21T22:00:00.000Z"
}{
"statusCode": 404,
"error": "NotFound",
"message": "Payment with id 550e8400-e29b-41d4-a716-446655440000 not found",
"timestamp": "2026-01-21T22:00:00.000Z",
"details": {
"resource": "Payment",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"statusCode": 500,
"error": "InternalError",
"message": "An unexpected error occurred",
"timestamp": "2026-01-21T22:00:00.000Z",
"traceId": "2771463d58840c8e116dc6dda1e1e5d0"
}Pagamentos
Consultar Pagamento
Recupera o status atual e detalhes de um pagamento.
Autenticação: Requer uma API Key válida no header X-API-Key.
Nota: Você só pode recuperar pagamentos criados com suas API Keys.
GET
/
v1
/
payments
/
{id}
Obter detalhes do pagamento
curl --request GET \
--url https://api.paybridge.dev/v1/payments/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.paybridge.dev/v1/payments/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.paybridge.dev/v1/payments/{id}', 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.paybridge.dev/v1/payments/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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.paybridge.dev/v1/payments/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.paybridge.dev/v1/payments/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paybridge.dev/v1/payments/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"provider": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"externalId": "<string>",
"pixCopyPaste": "<string>",
"pixQrCodeBase64": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"payerName": "<string>",
"payerDocument": "<string>",
"payerEmail": "<string>",
"isTest": true,
"metadata": {
"orderId": "123",
"source": "mobile"
}
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Invalid or missing API Key",
"timestamp": "2026-01-21T22:00:00.000Z"
}{
"statusCode": 404,
"error": "NotFound",
"message": "Payment with id 550e8400-e29b-41d4-a716-446655440000 not found",
"timestamp": "2026-01-21T22:00:00.000Z",
"details": {
"resource": "Payment",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"statusCode": 500,
"error": "InternalError",
"message": "An unexpected error occurred",
"timestamp": "2026-01-21T22:00:00.000Z",
"traceId": "2771463d58840c8e116dc6dda1e1e5d0"
}Parâmetros de caminho
Resposta
Detalhes do pagamento recuperados com sucesso