List loan statement lines
/loan-statement-linescurl -X GET https://api.tst.au.apgpay.dev/loan-statement-lines \
-H "Authorization: Bearer $API_KEY"Return the lines of loan statements that a search names. Platform staff only. Lines page by page.
Permissions
loanStatements:queryRequires 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 SlinColumnColumns to include, in order, when asking for text/csv. Omit for all of them. Sending it with application/json is a 400.
loanStatementIdone of array of string, stringLines of this statement, or of any of these, up to 100 by repeating the parameter.
customerIdstringLines of this customer's statements.
loanIdstringLines of this loan's statements.
createdFromstring (date-time)Lines of statements made at or after this instant.
createdTostring (date-time)Lines of statements made at or before this instant.
amountFrominteger (int64)Lines of at least this amount, in minor units of the statement's currency. A refund's amount is negative.
amountTointeger (int64)Lines of at most this amount, in minor units of the statement's currency. A refund's amount is negative.
ticketNumberstringLines whose ticket number contains this text. Case matters.
travellerNamestringLines whose traveller's name contains this text. Case matters.
dbiFieldSlinDbiFieldWhich data-based invoicing reference dbiValue is of. Give it with dbiValue.
PkDsKsAeIkBdPrAuAkRzdbiValuestringLines whose dbiField reference is exactly this. Give it with dbiField.
issuerTransactionIdstringLines of this card transaction, a whole identifier.
transactionIdstringLines of the card transactions linked to this one, a whole identifier.
galaxyTransactionIdstringLines whose Galaxy transaction reference is exactly this.
financialTransactionIdstringLines whose financial transaction identifier is exactly this.
Responses
The response is a tagged shape: type is always "SlinPageAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.
typetype = "SlinPageAttributes"typeenumrequiredSlinViewAttributesloanStatementIdLstmtIdrequiredThe statement the line is on. Read it at /loan-statements/{loanStatementId}.
Example lstmt_9f2Kd8QpLzXw
referenceStatementIdstringrequiredThe statement's number as its document states it.
Example your-own-reference
statementCreatedAtstring (date-time)requiredWhen the statement was made.
Example 2026-08-19T04:21:07Z
loanIdLoanIdrequiredIdentifier of a loan.
Example loan_9f2Kd8QpLzXw
loanAccountNamestringrequiredThe loan's name as its statements print it.
Example Ada Lovelace
referenceLoanIdstringThe id the loan has in the system that originated it, which a statement prints as the account number.
Example your-own-reference
customerIdCustIdIdentifier of a customer.
Example cust_9f2Kd8QpLzXw
customerNamestringExample Ada Lovelace
kindSlinKindrequiredChargeRefundDisputeAdjustmentRefundAdjustmentManualStandaloneFeeUnknownentryIdstringThe identifier of what the line is: the charge (chrg_), refund (rfnd_), dispute or exception it settles. Absent for a manual entry or a fee.
descriptionstringrequiredpostedAtstring (date-time)requiredWhen the line was recorded.
Example 2026-08-19T04:21:07Z
issuerTransactionIdItxnIdThe card transaction the line is for. Reverse it at GET /apg-numbers?kind=IssuerTransaction for the number APG gave it, and read it at /issuer-transactions/{id}.
Example itxn_9f2Kd8QpLzXw
transactionIdstringThe transaction the card transaction is linked to, which for an ordinary one is itself.
Example tran_9f2Kd8QpLzXw
galaxyTransactionIdstringThe order's reference with the travel provider.
Example tran_9f2Kd8QpLzXw
financialTransactionIdstringThe order's transaction reference on a closed-loop account, and the card transaction's own identifier on an open-loop one.
Example tran_9f2Kd8QpLzXw
approvalCodestringopenLoopbooleanWhether the card is an open-loop card (a virtual card) rather than a closed-loop company account. Absent for a line with no card transaction.
Example true
cardTypeSlinCardTypeUatpMasterCardUnknownWhat a line adds to its statement, in the statement's own currency. All are in the single currency given here.
typeenumrequiredSlinBillingAttributescurrencyIsoCurrencyrequiredAFNDZDARSAMDAWGAUDAZNBSDBHDTHB+156 moreShow fewer
PAB, BBD, BYR, BZD, BMD, VEF, BOB, BRL, BND, BGN, BIF, CAD, CVE, KYD, XOF, XAF, XPF, CLP, COP, KMF, CDF, BAM, NIO, CRC, HRK, CUP, CZK, GMD, DKK, MKD, DJF, STD, DOP, VND, XCD, EGP, SVC, ETB, EUR, FKP, FJD, HUF, GHS, GIP, HTG, PYG, GNF, GYD, HKD, UAH, ISK, INR, IRR, IQD, JMD, JOD, KES, PGK, LAK, KWD, MWK, AOA, MMK, GEL, LBP, ALL, HNL, SLL, LRD, LYD, SZL, LSL, MGA, MYR, MUR, MXN, MXV, MDL, MAD, MZN, BOV, NGN, ERN, NAD, NPR, ANG, ILS, TWD, NZD, BTN, KPW, NOK, PEN, MRU, PKR, MOP, TOP, CUC, UYU, PHP, GBP, BWP, QAR, GTQ, ZAR, OMR, KHR, RON, MVR, IDR, RUB, RWF, SHP, SAR, RSD, SCR, SGD, SBD, KGS, SOS, TJS, SSP, LKR, SDG, SRD, SEK, CHF, SYP, BDT, WST, TZS, KZT, TTD, MNT, TND, TRY, TMT, AED, UGX, COU, CLF, UYI, USD, USN, USS, UZS, VUV, CHE, CHW, KRW, YER, JPY, CNY, ZMW, ZWL, PLN
netAmountMinorUnitsrequiredBefore tax.
Example 1250
taxAmountMinorUnitsrequiredAn amount in the minor units of the currency given by the enclosing object's currency field.
Example 1250
grossAmountMinorUnitsrequiredWhat the line adds to the statement: negative for a refund.
Example 1250
taxRatestringThe tax rate as a decimal string, 0.1 for ten per cent, where the line has one.
Example 0.9412
taxTypestringThe line in the currency the sale was made in, where that is not the statement's. All are in the single currency given here.
typeenumrequiredSlinSalesAttributescurrencyIsoCurrencyrequiredAFNDZDARSAMDAWGAUDAZNBSDBHDTHB+156 moreShow fewer
PAB, BBD, BYR, BZD, BMD, VEF, BOB, BRL, BND, BGN, BIF, CAD, CVE, KYD, XOF, XAF, XPF, CLP, COP, KMF, CDF, BAM, NIO, CRC, HRK, CUP, CZK, GMD, DKK, MKD, DJF, STD, DOP, VND, XCD, EGP, SVC, ETB, EUR, FKP, FJD, HUF, GHS, GIP, HTG, PYG, GNF, GYD, HKD, UAH, ISK, INR, IRR, IQD, JMD, JOD, KES, PGK, LAK, KWD, MWK, AOA, MMK, GEL, LBP, ALL, HNL, SLL, LRD, LYD, SZL, LSL, MGA, MYR, MUR, MXN, MXV, MDL, MAD, MZN, BOV, NGN, ERN, NAD, NPR, ANG, ILS, TWD, NZD, BTN, KPW, NOK, PEN, MRU, PKR, MOP, TOP, CUC, UYU, PHP, GBP, BWP, QAR, GTQ, ZAR, OMR, KHR, RON, MVR, IDR, RUB, RWF, SHP, SAR, RSD, SCR, SGD, SBD, KGS, SOS, TJS, SSP, LKR, SDG, SRD, SEK, CHF, SYP, BDT, WST, TZS, KZT, TTD, MNT, TND, TRY, TMT, AED, UGX, COU, CLF, UYI, USD, USN, USS, UZS, VUV, CHE, CHW, KRW, YER, JPY, CNY, ZMW, ZWL, PLN
netAmountMinorUnitsrequiredAn amount in the minor units of the currency given by the enclosing object's currency field.
Example 1250
taxAmountMinorUnitsrequiredAn amount in the minor units of the currency given by the enclosing object's currency field.
Example 1250
grossAmountMinorUnitsrequiredAn amount in the minor units of the currency given by the enclosing object's currency field.
Example 1250
exchangeRatestringrequiredWhat the sales currency was converted at, as a decimal string.
Example 0.9412
serviceTypeSlinServiceTyperequiredFlightCarRentalHotelRailServiceFeeOtherServiceCruiseUnknownticketNumberstringThe ticket or document number as it was stored.
travellerNamestringExample Ada Lovelace
routingstringbookingClassstringairlineCodestringsalesDatestring (date)Example 2026-08-19
travelDatestring (date)Example 2026-08-19
merchantNamestringThe merchant that took the payment.
Example Ada Lovelace
merchantCategoryCodestringagencyDeliveryNoteNumberstringsupplierIataNumberstringserviceLinesarray of stringThe up to three lines of description the statement prints for the service.
The ten references a line carries for data-based invoicing. A field the line left blank is absent.
typeenumrequiredSlinDbiAttributespkstringdsstringksstringaestringikstringbdstringprstringaustringakstringrzstringhasMorebooleanrequiredWhether further items exist after this page.
Example true
nextStartingAfterstringId 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
{
"type": "SlinPageAttributes",
"data": [
{
"type": "SlinViewAttributes",
"loanStatementId": "lstmt_9f2Kd8QpLzXw",
"referenceStatementId": "your-own-reference",
"statementCreatedAt": "2026-08-19T04:21:07Z",
"loanId": "loan_9f2Kd8QpLzXw",
"loanAccountName": "Ada Lovelace",
"referenceLoanId": "your-own-reference",
"customerId": "cust_9f2Kd8QpLzXw",
"customerName": "Ada Lovelace",
"kind": "Charge",
"entryId": "string",
"description": "string",
"postedAt": "2026-08-19T04:21:07Z",
"issuerTransactionId": "itxn_9f2Kd8QpLzXw",
"transactionId": "tran_9f2Kd8QpLzXw",
"galaxyTransactionId": "tran_9f2Kd8QpLzXw",
"financialTransactionId": "tran_9f2Kd8QpLzXw",
"approvalCode": "string",
"openLoop": true,
"cardType": "Uatp",
"billing": {
"type": "SlinBillingAttributes",
"currency": "AUD",
"netAmount": 1250,
"taxAmount": 1250,
"grossAmount": 1250,
"taxRate": "0.9412",
"taxType": "string"
},
"sales": {
"type": "SlinSalesAttributes",
"currency": "AUD",
"netAmount": 1250,
"taxAmount": 1250,
"grossAmount": 1250,
"exchangeRate": "0.9412"
},
"serviceType": "Flight",
"ticketNumber": "string",
"travellerName": "Ada Lovelace",
"routing": "string",
"bookingClass": "string",
"airlineCode": "string",
"salesDate": "2026-08-19",
"travelDate": "2026-08-19",
"merchantName": "Ada Lovelace",
"merchantCategoryCode": "string",
"agencyDeliveryNoteNumber": "string",
"supplierIataNumber": "string",
"serviceLines": [
"string"
],
"dbi": {
"type": "SlinDbiAttributes",
"pk": "string",
"ds": "string",
"ks": "string",
"ae": "string",
"ik": "string",
"bd": "string",
"pr": "string",
"au": "string",
"ak": "string",
"rz": "string"
}
}
],
"hasMore": true,
"nextStartingAfter": "string",
"totalCount": 42,
"page": 1250,
"totalPages": 1250
}Error responses
statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}