List of documents
Changed onLists documents of one document_type within a required date range. Filter by payment_status to track pending, partially paid, or fully paid documents.
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v2/doc/list
- AuthHTTP bearer
Query parameters
Start date for the list, [DD-MM-YYYY]
End date for the list, [DD-MM-YYYY]
Filter list based on payment status of the document.
Number of records to fetch max(100)
Page number
Customer ID
Response
Documents List fetched successfully
Example response
{
"success": true,
"message": "Details Fetched",
"data": {
"transactions": [
{
"serial_number": "INV-12",
"document_date": "11-06-2024",
"customer": {
"id": "CUST123",
"name": "John Doe",
"country_code": "91",
"phone_number": "1234567890",
"company_name": "Company Name",
"email": "johndoe@example.com",
"gstin": "27AARCS7202C1ZD"
},
"due_date": "11-06-2024",
"amount_paid": 28,
"amount_pending": 90,
"net_amount": 100,
"payment_status": "paid",
"payments": [
{
"amount": 100,
"method": "upi",
"notes": "Payment notes",
"bank_details": {
"account_number": "1234567890",
"ifsc": "SBIN0000001",
"bank_name": "State Bank of India",
"branch": "Mumbai"
},
"payment_date": "14-02-2024"
}
],
"tax_amount": 18,
"total_amount": 118,
"total_discount": 100
}
],
"total_records": 10
}
}Changes
- breaking
for the
queryrequest parametercustomer_id, default valuewas added - breaking
for the
queryrequest parameternum_records, default value was changed from10to10 - breaking
the
///response's property type changed fromobjectto no type for status - breaking
the
/////response's property type changed fromobjectto no type for status - info
api operation id
v2_get_transactionsremoved and replaced withget_transactions - info
added the optional property
/////to the response with the status - info
the
response's property default value0was added for the status
- breaking