curl --location 'https://api.stateset.com/v1/payments?status=succeeded&limit=10' \ --header 'Authorization: Bearer YOUR_API_KEY'
{ "object": "list", "data": [ { "id": "pay_0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "object": "payment", "amount": 15000, "currency": "USD", "status": "succeeded", "created_at": "2024-01-19T15:30:00Z", "payment_method": { "type": "card", "card": { "last4": "4242", "brand": "visa" } }, "customer_id": "cust_abc123", "order_id": "order_123456", "description": "Payment for Order #123456" }, { "id": "pay_7823f083-bb2c-54d6-bf6d-1b8e3fc75f41", "object": "payment", "amount": 25000, "currency": "USD", "status": "succeeded", "created_at": "2024-01-19T12:15:00Z", "payment_method": { "type": "ach", "ach": { "last4": "6789", "bank_name": "Chase" } }, "customer_id": "cust_def456", "invoice_id": "inv_789012", "description": "Invoice payment" } ], "has_more": true, "url": "/v1/payments" }
List all payments with filtering and pagination
payments:read
Authorization: Bearer YOUR_API_KEY