Replace statement dbi batch
/statement-dbi-batches/{statementDbiBatchId}Stage the references of the statement's transactions, replacing anything already staged.
Permissions
loanStatements:updateRequires the `update` action on `loanStatements` for the supplied runtime context
Path parameters
statementDbiBatchIdstringRequest body
This body is a tagged shape: type is always "SdbiReplaceAttributes". Send it; more variants can be added, and a caller that switches on it keeps working when they are.
typetype = "SdbiReplaceAttributes"typeenumrequiredSdbiItemAttributesissuerTransactionIdItxnIdrequiredThe statement's transaction. Read it at /issuer-transactions/{issuerTransactionId}.
Example itxn_9f2Kd8QpLzXw
The ten data-based invoicing references of a transaction. A reference left out is a reference left blank.
typeenumrequiredSdbiReferencesAttributespkstringdsstringksstringaestringikstringbdstringAs the file writes it, 20260331, or as a date, 2026-03-31.
prstringaustringakstringrzstringtravellerNamestringExample Ada Lovelace
travelAgencyInvoiceNumberstringcurl -X PUT https://api.tst.au.apgpay.dev/statement-dbi-batches/{statementDbiBatchId} \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "SdbiReplaceAttributes",
"items": [
{
"type": "SdbiItemAttributes",
"issuerTransactionId": "itxn_9f2Kd8QpLzXw",
"references": {
"type": "SdbiReferencesAttributes",
"pk": "string",
"ds": "string",
"ks": "string",
"ae": "string",
"ik": "string",
"bd": "string",
"pr": "string",
"au": "string",
"ak": "string",
"rz": "string"
},
"travellerName": "Ada Lovelace",
"travelAgencyInvoiceNumber": "string"
}
]
}'Responses
The response is a tagged shape: type is always "SdbiViewAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.
typetype = "SdbiViewAttributes"statementDbiBatchIdSdbiIdrequiredIdentifier of the corrections staged for a loan statement, which is the statement's own identifier.
Example lstmt_9f2Kd8QpLzXw
typeenumrequiredSdbiItemAttributesissuerTransactionIdItxnIdrequiredThe statement's transaction. Read it at /issuer-transactions/{issuerTransactionId}.
Example itxn_9f2Kd8QpLzXw
The ten data-based invoicing references of a transaction. A reference left out is a reference left blank.
typeenumrequiredSdbiReferencesAttributespkstringdsstringksstringaestringikstringbdstringAs the file writes it, 20260331, or as a date, 2026-03-31.
prstringaustringakstringrzstringtravellerNamestringExample Ada Lovelace
travelAgencyInvoiceNumberstringstagedAtstring (date-time)Example 2026-08-19T04:21:07Z
updatedAtstring (date-time)Example 2026-08-19T04:21:07Z
{
"type": "SdbiViewAttributes",
"statementDbiBatchId": "lstmt_9f2Kd8QpLzXw",
"items": [
{
"type": "SdbiItemAttributes",
"issuerTransactionId": "itxn_9f2Kd8QpLzXw",
"references": {
"type": "SdbiReferencesAttributes",
"pk": "string",
"ds": "string",
"ks": "string",
"ae": "string",
"ik": "string",
"bd": "string",
"pr": "string",
"au": "string",
"ak": "string",
"rz": "string"
},
"travellerName": "Ada Lovelace",
"travelAgencyInvoiceNumber": "string"
}
],
"stagedAt": "2026-08-19T04:21:07Z",
"updatedAt": "2026-08-19T04:21:07Z"
}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"
}