APG PayAPG Paydocs

Loans

Replace statement dbi batch

PUT/statement-dbi-batches/{statementDbiBatchId}

Stage the references of the statement's transactions, replacing anything already staged.

Permissions

Required permission
loanStatements:update

Requires the `update` action on `loanStatements` for the supplied runtime context

Path parameters

statementDbiBatchIdstring
required

Request 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.

Discriminated by type
type = "SdbiReplaceAttributes"
curl -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.

Discriminated by type
type = "SdbiViewAttributes"
statementDbiBatchIdSdbiIdrequired

Identifier of the corrections staged for a loan statement, which is the statement's own identifier.

Example lstmt_9f2Kd8QpLzXw

stagedAtstring (date-time)

Example 2026-08-19T04:21:07Z

updatedAtstring (date-time)

Example 2026-08-19T04:21:07Z

Example
{
  "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