APG PayAPG Paydocs

Loans

List loan transactions

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

Return a page of loan transactions. Supply page for offset pagination or startingAfter for cursor pagination, and q to search. GET /filter-catalogues/loan-transactions lists the filters this caller can use. A cursor continues only the walk that issued it: sent with different filters, q or sort, it is refused with 400.

Permissions

Required permission
loanTransactions:query

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

Query parameters

qstring

Search. Matches a loan transaction id, the id of its loan, the reference transaction id or a standalone entry's description. An id, an email address, a phone number and any value listed as matched exactly match exactly; any other term matches without regard to case from the start of a value (or of any word in it, beside a longer word of the term), or anywhere in it from three characters, every word of it somewhere; a term that matches nothing so is read again with typos tolerated. Matches come newest first unless sort is given.

pageinteger (int32)

Offset pagination: 1-based page number. Mutually exclusive with the cursor parameters.

startingAfterstring

Cursor pagination, moving forward: the id of the last item on the current page. Mutually exclusive with page.

endingBeforestring

Cursor pagination, moving backward: the id of the first item on the current page. Mutually exclusive with page.

limitinteger (int32)

Maximum items per page.

sortarray of LtxnSort

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

columnsarray of LtxnColumn

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

statusone of LtxnStatus, array of LtxnStatus

Only loan transactions whose status is one of these. Repeat the parameter to give several.

statusNotone of LtxnStatus, array of LtxnStatus

Leave out loan transactions whose status is one of these. Repeat the parameter to give several.

loanIdone of array of string, string

Only loan transactions whose loan is one of these. Repeat the parameter to give several.

loanIdNotone of array of string, string

Leave out loan transactions whose loan is one of these. Repeat the parameter to give several.

merchantIdone of array of string, string

Only loan transactions whose borrowing merchant is one of these. Repeat the parameter to give several.

merchantIdNotone of array of string, string

Leave out loan transactions whose borrowing merchant is one of these. Repeat the parameter to give several.

customerIdone of array of string, string

Only loan transactions whose borrowing customer is one of these. Repeat the parameter to give several.

customerIdNotone of array of string, string

Leave out loan transactions whose borrowing customer is one of these. Repeat the parameter to give several.

customerIdAbsentboolean

true for only loan transactions with no borrowing customer, false for only those with one.

productTypeone of LprodType, array of LprodType

Only loan transactions whose kind of loan is one of these. Repeat the parameter to give several.

productTypeNotone of LprodType, array of LprodType

Leave out loan transactions whose kind of loan is one of these. Repeat the parameter to give several.

currencyone of IsoCurrency, array of IsoCurrency

Only loan transactions whose loan currency is one of these. Repeat the parameter to give several.

currencyNotone of IsoCurrency, array of IsoCurrency

Leave out loan transactions whose loan currency is one of these. Repeat the parameter to give several.

referenceLoanTransactionIdstring

Find a movement by your own reference.

createdAfterstring (date-time)

Only loan transactions whose creation time is at or after this ISO-8601 timestamp.

createdBeforestring (date-time)

Only loan transactions whose creation time is before, and not at, this ISO-8601 timestamp.

Responses

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

Discriminated by type
type = "LtxnPageAttributes"
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": "LtxnPageAttributes",
  "data": [
    {
      "type": "LtxnViewAttributes",
      "loanTransactionId": "ltxn_9f2Kd8QpLzXw",
      "loanId": "loan_9f2Kd8QpLzXw",
      "loanProductId": "lprod_9f2Kd8QpLzXw",
      "loanFacilityId": "lfac_9f2Kd8QpLzXw",
      "merchantId": "mcht_9f2Kd8QpLzXw",
      "customerId": "cust_9f2Kd8QpLzXw",
      "status": "Authorised",
      "amounts": {
        "type": "LtxnAmountsAttributes",
        "currency": "AUD",
        "authorised": 1250,
        "captured": 1250,
        "published": 1250,
        "publishedTax": 1250,
        "taxType": "string"
      },
      "specification": {
        "type": "LtxnSpecCardCharge",
        "currency": "AUD",
        "issuerTransactionId": "itxn_9f2Kd8QpLzXw",
        "cardId": "dcard_9f2Kd8QpLzXw",
        "realtimeSettlement": true,
        "authorisedAt": "2026-08-19T04:21:07Z",
        "capturedOrCancelledAt": "2026-08-19T04:21:07Z",
        "publishedAt": "2026-08-19T04:21:07Z",
        "originalAmount": {
          "type": "IsoCurrencyAmount",
          "minorCurrencyUnits": 1250,
          "currency": "AUD"
        },
        "lineItems": [
          {
            "type": "LtxnLineItemAttributes",
            "entryType": "Charge",
            "description": "string",
            "amounts": {
              "type": "LstmtEntryAmountsAttributes",
              "currency": "AUD",
              "total": 1250,
              "tax": 1250,
              "net": 1250
            },
            "taxRate": 0.9412,
            "taxType": "string",
            "originalAmount": {
              "type": "IsoCurrencyAmount",
              "minorCurrencyUnits": 1250,
              "currency": "AUD"
            },
            "source": "GeneratedSummary"
          }
        ],
        "refunds": [
          {
            "type": "LtxnRefundAttributes",
            "refundId": "rfnd_9f2Kd8QpLzXw",
            "amounts": {
              "type": "LtxnRefundAmountsAttributes",
              "currency": "AUD",
              "amount": 1250,
              "tax": 1250,
              "taxType": "string"
            },
            "published": true,
            "originalAmount": {
              "type": "IsoCurrencyAmount",
              "minorCurrencyUnits": 1250,
              "currency": "AUD"
            },
            "refundedAt": "2026-08-19T04:21:07Z",
            "publishedAt": "2026-08-19T04:21:07Z",
            "loanStatementId": "lstmt_9f2Kd8QpLzXw"
          }
        ],
        "disputes": [
          {
            "type": "LtxnDisputeAttributes",
            "disputeId": "dispute_9f2Kd8QpLzXw",
            "outcome": "Pending",
            "amount": 1250,
            "originalAmount": {
              "type": "IsoCurrencyAmount",
              "minorCurrencyUnits": 1250,
              "currency": "AUD"
            },
            "reason": "Requested by the customer.",
            "raisedAt": "2026-08-19T04:21:07Z",
            "concludedAt": "2026-08-19T04:21:07Z",
            "loanStatementId": "lstmt_9f2Kd8QpLzXw"
          }
        ],
        "adjustments": [
          {
            "type": "LtxnAdjustmentAttributes",
            "adjustmentId": "string",
            "amounts": {
              "type": "LstmtEntryAmountsAttributes",
              "currency": "AUD",
              "total": 1250,
              "tax": 1250,
              "net": 1250
            },
            "description": "string",
            "adjustedAt": "2026-08-19T04:21:07Z",
            "loanStatementId": "lstmt_9f2Kd8QpLzXw"
          }
        ]
      },
      "loanStatementIds": [
        "lstmt_9f2Kd8QpLzXw"
      ],
      "referenceLoanTransactionId": "your-own-reference",
      "createdAt": "2026-08-19T04:21:07Z",
      "updatedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses