TestingAPIs is still being built. If something breaks, email support@testingapis.com.

List payments with filtering, search, sorting and pagination

GEThttps://api.testingapis.com/api/PaymentsSign in to see this endpoint's URL

Filter on any field (for example ?status=refunded, ?method=upi, ?userId=101), search with ?q=, sort with ?sort=amount&order=desc, and page with ?limit= plus ?page= or ?offset=. Totals are in the X-Total-Count, X-Page, X-Per-Page and X-Total-Pages headers.

Responses

200
Matching payments.

Example

Request
curl -X GET "https://api.testingapis.com/api/Payments?limit=2" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
X-Total-Count: 13
X-Page: 1
X-Per-Page: 2
X-Total-Pages: 7

[
  {
    "id": 1,
    "userId": 101,
    "orderId": 1,
    "amount": 249.99,
    "currency": "USD",
    "method": "card",
    "status": "succeeded",
    "description": "Order #1 — headphones",
    "cardLast4": "4242",
    "createdAt": "2025-07-01T10:15:00Z",
… (3 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.