APG PayAPG Paydocs

Loans

List statement receipt batches

GET/statement-receipt-batches
Request
GEThttps://api.tst.au.apgpay.dev/statement-receipt-batches
curl -X GET https://api.tst.au.apgpay.dev/statement-receipt-batches \
  -H "Authorization: Bearer $API_KEY"

Return a page of batches, newest first unless sort says otherwise. Staff only: a batch can span any merchant's statements.

Permissions

Required permission
loanStatements:query

Requires the `query` action on `loanStatements` for the supplied runtime context

Query parameters

pageinteger (int32)

1-based page number.

limitinteger (int32)

Maximum items per page.

sortarray of SrbatSort

Fields to sort by, comma-delimited, in priority order. Prefix a field with - for descending.

columnsarray of SrbatColumn

Columns to include, in order, when asking for text/csv. Omit for all of them. Sending it with application/json is a 400.

Responses

The response is a tagged shape: type is always "SrbatPageAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "SrbatPageAttributes"
hasMorebooleanrequired

Whether further items exist after this page.

Example true

nextStartingAfterstring

Id to pass as startingAfter to fetch the next page. Present in cursor mode only.

totalCountinteger (int64)

Total items matching the query.

Example 42

pageinteger (int32)

The 1-based page returned. Present in offset mode only.

Example 1250

totalPagesinteger (int32)

Total pages available. Present in offset mode only.

Example 1250

Example
{
  "type": "SrbatPageAttributes",
  "data": [
    {
      "type": "SrbatViewAttributes",
      "statementReceiptBatchId": "srbat_9f2Kd8QpLzXw",
      "requestReference": "your-own-reference",
      "bankChannelName": "Ada Lovelace",
      "fileName": "Ada Lovelace",
      "transactionCount": 42,
      "transactionAmount": {
        "type": "IsoCurrencyAmount",
        "minorCurrencyUnits": 1250,
        "currency": "AUD"
      },
      "bankProcessDate": "2026-08-19T04:21:07Z",
      "fileGenerateStatus": "Waiting",
      "fileDealStatus": "Waiting",
      "bankReference": "your-own-reference",
      "paymentMethod": "string",
      "remark": "string",
      "errorMessage": "string",
      "receipts": [
        {
          "type": "SrcptViewAttributes",
          "statementReceiptId": "srcpt_9f2Kd8QpLzXw",
          "requestReference": "your-own-reference",
          "loanStatementId": "lstmt_9f2Kd8QpLzXw",
          "statementReceiptBatchId": "srbat_9f2Kd8QpLzXw",
          "amount": {
            "type": "IsoCurrencyAmount",
            "minorCurrencyUnits": 1250,
            "currency": "AUD"
          },
          "status": "Waiting",
          "acknowledgement": "Waiting",
          "receivedAt": "2026-08-19T04:21:07Z",
          "remark": "string",
          "errorMessage": "string",
          "uploadFilePaths": [
            "string"
          ],
          "paymentMethod": "string",
          "createdAt": "2026-08-19T04:21:07Z",
          "updatedAt": "2026-08-19T04:21:07Z"
        }
      ],
      "createdAt": "2026-08-19T04:21:07Z",
      "updatedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses