Update statement dbi batch
/statement-dbi-batches/{statementDbiBatchId}Add references to what is staged, or apply the batch and have the statement's documents made again.
SdbiUpdateAddSdbiUpdateApplyPermissions
loanStatements:updateRequires the `update` action on `loanStatements` for the supplied runtime context
Path parameters
statementDbiBatchIdstringRequest body
This body is a typed union. Pick a variant to see its fields and a matching example.
typetype = "SdbiUpdateAdd"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 PATCH https://api.tst.au.apgpay.dev/statement-dbi-batches/{statementDbiBatchId} \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "SdbiUpdateAdd",
"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 "SdbiUpdateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.
typetype = "SdbiUpdateRspAttributes"The resource as it stands after the change.
typeenumrequiredSdbiViewAttributesstatementDbiBatchIdSdbiIdrequiredIdentifier 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": "SdbiUpdateRspAttributes",
"updated": {
"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"
}