List Payment Intents
GET /v1/payment_intents?offset=0&limit=2
Overview
Retrieves a paginated list of payment intents. This endpoint allows filtering by offset and limit to manage the number of results returned.
Authorization
- Header:
Authorization: Bearer sk_test_907...de66
Request Details
Request
- cURL
curl "https://api-prod.paybytoken.io/v1/payment_intents?offset=0&limit=2" \
-X GET \
-H "Authorization: Bearer sk_test_907...de66"
Request Parameters
| Parameter | Type | Description |
|---|---|---|
offset | integer | The number of items to skip before starting to collect the result set (e.g., 0). |
limit | integer | The maximum number of items to return (e.g., 2). |
Response Details
Response
The response returns a PaymentIntentList object containing the total count and a list of payment intent details.
Attributes
| Attribute | Type | Description |
|---|---|---|
total | integer | Total number of payment intents available. |
data | array of objects | List of payment intent objects with their details. |
Example Response
- Success
{
"total": 50,
"data": [
{
"id": "pay_t24b28nbodnk4icGMyE7",
"account_id": "acct_1",
"payer_address": null,
"one_time_address": "0xa1A0340cF7b9326eA4210AB49c17e20e0c32a2FB",
"chain": "base",
"amount": "15.0",
"currency": "USDC",
"amount_received": "0.0",
"description": null,
"metadata": null,
"customer_id": null,
"customer_email": null,
"status": "canceled",
"tx_hash": null,
"created_at": "2025-09-05T13:34:56.000Z",
"updated_at": "2025-09-05T13:45:00.000Z",
"expired_at": "2025-09-05T13:44:56.000Z"
},
{
"id": "pay_t24aomisSdzvLsytKSME",
"account_id": "acct_1",
"payer_address": null,
"one_time_address": "0x9ca7ec578d49Dc2E20D8D31689241F3830a19020",
"chain": "ethereum",
"amount": "10.0",
"currency": "USDC",
"amount_received": "0.0",
"description": null,
"metadata": null,
"customer_id": null,
"customer_email": null,
"status": "failed",
"tx_hash": null,
"created_at": "2025-09-05T13:26:46.000Z",
"updated_at": "2025-09-05T13:37:44.000Z",
"expired_at": "2025-09-05T13:36:46.000Z"
}
]
}