List x402 payments
Returns a paginated list of the authenticated user’s x402 payment transactions, newest first. Organization sub-users must have read permission on transactions; without it the list is empty.
GET
/
x402
/
credit_account
/
payments
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const response of client.x402.creditAccount.payments.list()) {
console.log(response);
}import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.x402.credit_account.payments.list()
print(page.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
payments, err := client.X402.CreditAccount.Payments.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", payments.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var page = client.x402().creditAccount().payments().list();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.x402.credit_account.payments.list
puts(page)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$page = $client->x402->creditAccount->payments->list();
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx x402:credit-account:payments list \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/x402/credit_account/payments \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "de06811a-2e43-4561-af5a-7d0a26e20aaa",
"record_type": "x402_transaction",
"amount": "50.00",
"currency": "USD",
"status": "settled",
"quote_id": "quote_abc123",
"tx_hash": "0xabc123def456...",
"created_at": "2026-03-13T15:00:00Z",
"updated_at": "2026-03-13T15:00:00Z"
},
{
"id": "f8a1c2d3-4b5e-6789-abcd-ef0123456789",
"record_type": "x402_transaction",
"amount": "25.00",
"currency": "USD",
"status": "settled",
"quote_id": "quote_def456",
"tx_hash": "0x789abcdef012...",
"created_at": "2026-03-12T10:30:00Z",
"updated_at": "2026-03-12T10:30:00Z"
}
],
"meta": {
"page_number": 1,
"page_size": 100,
"total_pages": 1,
"total_results": 2
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "The required authentication headers were either invalid or not included in the request."
}
]
}{
"errors": [
{
"code": "10010",
"title": "Authorization failed",
"detail": "You do not have permission to perform the requested action on the specified resource or resources."
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The page number to load.
Required range:
x >= 1The size of the page.
Required range:
1 <= x <= 250Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const response of client.x402.creditAccount.payments.list()) {
console.log(response);
}import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.x402.credit_account.payments.list()
print(page.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
payments, err := client.X402.CreditAccount.Payments.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", payments.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var page = client.x402().creditAccount().payments().list();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.x402.credit_account.payments.list
puts(page)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$page = $client->x402->creditAccount->payments->list();
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx x402:credit-account:payments list \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/x402/credit_account/payments \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "de06811a-2e43-4561-af5a-7d0a26e20aaa",
"record_type": "x402_transaction",
"amount": "50.00",
"currency": "USD",
"status": "settled",
"quote_id": "quote_abc123",
"tx_hash": "0xabc123def456...",
"created_at": "2026-03-13T15:00:00Z",
"updated_at": "2026-03-13T15:00:00Z"
},
{
"id": "f8a1c2d3-4b5e-6789-abcd-ef0123456789",
"record_type": "x402_transaction",
"amount": "25.00",
"currency": "USD",
"status": "settled",
"quote_id": "quote_def456",
"tx_hash": "0x789abcdef012...",
"created_at": "2026-03-12T10:30:00Z",
"updated_at": "2026-03-12T10:30:00Z"
}
],
"meta": {
"page_number": 1,
"page_size": 100,
"total_pages": 1,
"total_results": 2
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "The required authentication headers were either invalid or not included in the request."
}
]
}{
"errors": [
{
"code": "10010",
"title": "Authorization failed",
"detail": "You do not have permission to perform the requested action on the specified resource or resources."
}
]
}