Listar cobranças do Pix Automático por autorização
curl --request GET \
--url https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges \
--header 'Authorization: Bearer <token>' \
--header 'X-Account-Id: <x-account-id>'import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges"
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Account-Id': '<x-account-id>', Authorization: 'Bearer <token>'}
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges', 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://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges",
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>",
"X-Account-Id: <x-account-id>"
],
]);
$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://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Account-Id", "<x-account-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges")
.header("X-Account-Id", "<x-account-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Account-Id"] = '<x-account-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"accountId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"amount": "29.90",
"attemptCount": 1,
"attempts": [
{
"attemptedAt": "2023-11-07T05:31:56Z",
"dayIndex": 0,
"endToEndId": "E30306294202606241200abcdef00001",
"failureCode": "DEBIT_FAILED",
"failureMessage": "The debit attempt could not be completed.",
"outcome": "EXECUTED",
"scheduleId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"scheduledFor": "2026-04-24T03:00:00Z"
}
],
"authorizationId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"authorizationRequestId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"cancelledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"currentDayIndex": 0,
"currentScheduleId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"dueDate": "2026-04-25",
"executedAt": "2023-11-07T05:31:56Z",
"externalChargeId": "90d0b9e1551447f695985409bf9b7fb5",
"failedAt": "2023-11-07T05:31:56Z",
"failureCode": "CHARGE_REJECTED",
"id": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"journey": "J4",
"maxAttempts": 4,
"recurrenceId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"status": "SCHEDULED",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"limit": 10,
"page": 1,
"total": 42
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}Listar cobranças do Pix Automático por autorização
Lista as cobranças pertencentes a uma autorização, restritas ao pagador autenticado — cobranças de outro pagador nunca são retornadas. Suporta paginação por página/limite, além de filtros por status e por intervalo de datas de createdAt. Cada item traz o array de tentativas sanitizado; o código de resultado do débito nunca é exposto.
GET
/
v1
/
recurrences
/
payer
/
authorizations
/
{authorizationId}
/
charges
Listar cobranças do Pix Automático por autorização
curl --request GET \
--url https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges \
--header 'Authorization: Bearer <token>' \
--header 'X-Account-Id: <x-account-id>'import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges"
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Account-Id': '<x-account-id>', Authorization: 'Bearer <token>'}
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges', 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://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges",
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>",
"X-Account-Id: <x-account-id>"
],
]);
$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://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Account-Id", "<x-account-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges")
.header("X-Account-Id", "<x-account-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/authorizations/{authorizationId}/charges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Account-Id"] = '<x-account-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"accountId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"amount": "29.90",
"attemptCount": 1,
"attempts": [
{
"attemptedAt": "2023-11-07T05:31:56Z",
"dayIndex": 0,
"endToEndId": "E30306294202606241200abcdef00001",
"failureCode": "DEBIT_FAILED",
"failureMessage": "The debit attempt could not be completed.",
"outcome": "EXECUTED",
"scheduleId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"scheduledFor": "2026-04-24T03:00:00Z"
}
],
"authorizationId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"authorizationRequestId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"cancelledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"currentDayIndex": 0,
"currentScheduleId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"dueDate": "2026-04-25",
"executedAt": "2023-11-07T05:31:56Z",
"externalChargeId": "90d0b9e1551447f695985409bf9b7fb5",
"failedAt": "2023-11-07T05:31:56Z",
"failureCode": "CHARGE_REJECTED",
"id": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"journey": "J4",
"maxAttempts": 4,
"recurrenceId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"status": "SCHEDULED",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"limit": 10,
"page": 1,
"total": 42
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}{
"code": "<string>",
"title": "<string>",
"message": "<string>"
}Autorizações
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Cabeçalhos
Identificador único da Conta do Ledger Midaz (formato UUID).
Parâmetros de caminho
ID da autorização (formato UUID)
Parâmetros de consulta
Número máximo de itens por página.
Intervalo obrigatório:
1 <= x <= 100Número da página para paginação.
Intervalo obrigatório:
x >= 1Filtrar por status
Opções disponíveis:
RECEIVED, SCHEDULED, EXECUTED, FAILED, CANCELLED Limite inferior ISO 8601 UTC de createdAt
Limite superior ISO 8601 UTC de createdAt
Direção da ordenação: asc ou desc.
Opções disponíveis:
asc, desc Esta página foi útil?

