cURL
curl --request GET \ --url https://app.getswipe.in/api/partner/v2/customer/ledger \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "", "error_code": "", "errors": {}, "data": { "closing_balance": -16795.8, "is_paid": 1, "total_records": 10, "ledger": [ { "amount_pending": 0, "balance": -16795.8, "notes": "", "created_time": "2024-06-13T10:08:13.000Z", "mode": "UPI", "date": "13-06-2024", "status": "Success", "serial_number": "PAYIN-2", "total_amount": 100 } ] } }
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
Response message
""
Error Code
Errors
Show child attributes