Listar pagamentos
RegistosGET /payments
List payments for accounts linked to the authenticated consumer
Pages payments the caller made on accounts linked to them, across tenants unless X-Tenant-ID selects one. Pagination uses limit and after.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
account_idReturns only payments on this account; it must be one of the caller's linked accounts.
invoice_idReturns only payments allocated to this invoice.
Devolve
200 Payments restricted to the authenticated consumer's linked accounts
curl -X GET "$CONSUMER_API/payments" \
-H "Authorization: Bearer sk_test_..."
examplectl payments list --json
const res = await fetch("$CONSUMER_API/payments", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$CONSUMER_API/payments",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$CONSUMER_API/payments", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Resposta 200
Payments restricted to the authenticated consumer's linked accounts