New in 2.4: Test runs you can trust See what's new →

Pembayaran

Pembayaran: data pembayaran tetap ditambah demo Idempotency-Key saat membuat (replay, 422 untuk body berbeda, 409 saat masih diproses) dan refund. Kartu berakhiran 0002 selalu ditolak.

Contoh request

List payments with filtering, search, sorting and pagination. Referensi lengkap dan tombol Send (dalam bahasa Inggris).

cURL
curl -X GET "https://api.testingapis.com/api/Payments?limit=2"
Jalankan di Studio
Response · 200 OK
[
  {
    "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)