cURL
curl --request GET \ --url https://app.getswipe.in/api/partner/v1/customer/ledger \ --header 'Authorization: Bearer <token>'
{ "success": true, "ledger": [ { "serial_number": "PAYIN-2", "total_amount": 100, "amount_pending": 0, "balance": -16795.8, "date": "13-06-2024", "mode": "UPI", "bank_details": { "account_number": "1234567890", "ifsc": "SBIN0000001", "bank_name": "State Bank of India", "branch": "Mumbai" }, "created_time": "2024-06-13T10:08:13.000Z", "notes": "", "status": "Success" } ], "closing_balance": 100, "is_paid": true, "total_records": 10 }
Bearer authentication header of the form Bearer , where is your auth token.
Start date for the ledger, [DD-MM-YYYY]
End date for the ledger, [DD-MM-YYYY]
Customer ID
Number of records to fetch
Page number
Payment details fetched successfully
Success flag
true
Show child attributes
Closing Balance
100
Is Fully paid
Total Records available
10