List Payment Links
Returns a paginated list of payment links, ordered by creation date (most recent first). Supports filtering by status, customer, and date range.Authentication
Query Parameters
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of results per page (default: 10, max: 100) |
starting_after | string | Cursor for pagination (payment link ID) |
status | enum | Filter by status: active, paid, expired, cancelled |
customer_email | string | Filter by customer email |
payment_type | enum | Filter by type: one_time, subscription |
created_after | timestamp | Filter links created after this date |
created_before | timestamp | Filter links created before this date |
Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
data | array | Array of payment link objects |
has_more | boolean | Whether more results are available |
next_cursor | string | Cursor for next page (use as starting_after) |
Examples
List All Payment Links
Filter by Status
Filter by Customer
Pagination
Filter by Date Range
Subscription Links Only
Use Cases
Revenue Dashboard
Customer Payment History
Expired Link Report
Active Subscription Links
Pagination Best Practices
Cursor-Based Pagination
Always use cursor-based pagination for large datasets:Errors
| Status Code | Error Code | Description |
|---|---|---|
| 400 | invalid_request | Invalid query parameters |
| 401 | unauthorized | Invalid or missing API key |
| 429 | rate_limit_exceeded | Too many requests |
Best Practices
Use Pagination
Always paginate large result sets using
limit and cursorsFilter Wisely
Use filters to reduce data transfer and improve performance
Cache Results
Cache results when displaying historical data
Handle Empty Results
Check if
data array is empty before processingRelated Endpoints
- Create Payment Link - POST /v2/payment-links
- Get Payment Link - GET /v2/payment-links/
- Cancel Payment Link - POST /v2/payment-links//cancel
