APG PayAPG Paydocs

Loans

List daily card file runs

GET/daily-card-file-runs
Request
GEThttps://api.tst.au.apgpay.dev/daily-card-file-runs
curl -X GET https://api.tst.au.apgpay.dev/daily-card-file-runs \
  -H "Authorization: Bearer $API_KEY"

Return a customer's daily card file runs for a day, withdrawn ones included. A day has few, so they page by page only.

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.

columnsarray of DcfrColumn

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

customerIdstring
required

Whose runs to read. Required.

daystring (date)
required

The day the files cover, as a date. Required.

Responses

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

Discriminated by type
type = "DcfrPageAttributes"
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": "DcfrPageAttributes",
  "data": [
    {
      "type": "DcfrViewAttributes",
      "dailyCardFileRunId": "dcfr_9f2Kd8QpLzXw",
      "requestReference": "your-own-reference",
      "customerId": "cust_9f2Kd8QpLzXw",
      "customerCode": "string",
      "customerName": "Ada Lovelace",
      "dailyDate": "2026-08-19",
      "timezone": "string",
      "ediAlias": "string",
      "currency": "AUD",
      "transactionCount": 42,
      "dealStatus": "Pending",
      "fileStatus": "Pending",
      "processingStartedAt": "2026-08-19T04:21:07Z",
      "processingEndedAt": "2026-08-19T04:21:07Z",
      "errorMessage": "string",
      "deleted": true,
      "deleteReason": "Requested by the customer.",
      "regeneratedAsRunId": "dcfr_9f2Kd8QpLzXw",
      "previousRunId": "dcfr_9f2Kd8QpLzXw",
      "fileVersion": "string",
      "autoGenerate": true,
      "loans": [
        {
          "type": "DcfrLoanAttributes",
          "loanId": "loan_9f2Kd8QpLzXw",
          "loanAccountNumber": "string",
          "loanAccountName": "Ada Lovelace",
          "ediNumber": "string",
          "dailyDate": "2026-08-19",
          "dealStatus": "Pending",
          "dealtAt": "2026-08-19T04:21:07Z",
          "rowsCount": 42,
          "errorMessage": "string",
          "currency": "AUD",
          "deleted": true
        }
      ],
      "createdAt": "2026-08-19T04:21:07Z",
      "updatedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses