API:listBatches - SEPA: Get batch lists

Get batch lists. Method only available for installations with enabled SEPA Direct Debit plugin

Request

GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=listBatches

Response

   {
      "success": true,
      "batches": [
         {
            "id": "9",
            "creditor_id": "2",
            "name": "DD20200713",
            "status": "Draft",
            "date": "2020-07-13 11:21:26",
            "dd_date": "2020-07-27",
            "download_date": "0000-00-00",
            "creditor_name": "Test 54",
            "invoice_count": "0",
            "invoice_amount": null
         },
         {
            "id": "8",
            "creditor_id": "1",
            "name": "DD20200713",
            "status": "Draft",
            "date": "2020-07-13 11:20:02",
            "dd_date": "2020-07-27",
            "download_date": "0000-00-00",
            "creditor_name": "Test",
            "invoice_count": "0",
            "invoice_amount": null
         },
         {
            "id": "7",
            "creditor_id": "1",
            "name": "DD20200701",
            "status": "Draft",
            "date": "2020-07-01 12:00:29",
            "dd_date": "2020-07-15",
            "download_date": "0000-00-00",
            "creditor_name": "Test",
            "invoice_count": "0",
            "invoice_amount": null
         },
         {
            "id": "6",
            "creditor_id": "1",
            "name": "DD20200615",
            "status": "Download-Ready",
            "date": "2020-06-15 12:00:20",
            "dd_date": "2020-06-29",
            "download_date": "0000-00-00",
            "creditor_name": "Test",
            "invoice_count": "0",
            "invoice_amount": null
         },
         {
            "id": "5",
            "creditor_id": "1",
            "name": "DD20190115",
            "status": "Draft",
            "date": "2019-01-15 23:55:15",
            "dd_date": "2019-01-29",
            "download_date": "0000-00-00",
            "creditor_name": "Test",
            "invoice_count": "0",
            "invoice_amount": null
         },
         {
            "id": "4",
            "creditor_id": "1",
            "name": "DD20190101",
            "status": "Draft",
            "date": "2019-01-01 23:56:11",
            "dd_date": "2019-01-15",
            "download_date": "0000-00-00",
            "creditor_name": "Test",
            "invoice_count": "0",
            "invoice_amount": null
         },
         {
            "id": "3",
            "creditor_id": "1",
            "name": "DD20181001",
            "status": "Download-Ready",
            "date": "2018-10-01 23:50:11",
            "dd_date": "2018-10-15",
            "download_date": "0000-00-00",
            "creditor_name": "Test",
            "invoice_count": "1",
            "invoice_amount": "10.2072758400000"
         },
         {
            "id": "2",
            "creditor_id": "1",
            "name": "DD20180701",
            "status": "Processing",
            "date": "2018-07-01 23:45:08",
            "dd_date": "2018-07-15",
            "download_date": "0000-00-00",
            "creditor_name": "Test",
            "invoice_count": "3",
            "invoice_amount": "1335.6125891500000"
         },
         {
            "id": "1",
            "creditor_id": "1",
            "name": "DD20180515",
            "status": "Processed",
            "date": "2018-05-15 01:07:36",
            "dd_date": "2018-05-29",
            "download_date": "2018-08-09",
            "creditor_name": "Test",
            "invoice_count": "2",
            "invoice_amount": "12.2300000000000"
         }
      ],
      "call": "listBatches",
      "server_time": 1594798412
   }