{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/australia-post/main/json-schema/australia-post-transactions-schema.json",
  "title": "Transactions",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/australia-post-agency-data-delivery-openapi.yml#/components/schemas/Transactions",
  "type": "object",
  "properties": {
    "lastEvaluatedKeyString": {
      "$ref": "#/$defs/EvaluatedKey"
    },
    "Transactions": {
      "$ref": "#/$defs/Transaction"
    }
  },
  "$defs": {
    "EvaluatedKey": {
      "type": "object",
      "properties": {
        "Entity_SK": {
          "type": "string"
        },
        "AgencyNumber": {
          "type": "string"
        },
        "Entity_PK": {
          "type": "string"
        },
        "TxnDate": {
          "type": "string"
        }
      }
    },
    "Transaction": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TransactionDetail"
      }
    },
    "TransactionDetail": {
      "type": "object",
      "properties": {
        "ID": {
          "type": "string"
        },
        "Channel": {
          "type": "string"
        },
        "TransCode": {
          "type": "string"
        },
        "PrincipalID": {
          "type": "string"
        },
        "WCC": {
          "type": "string"
        },
        "OutletName": {
          "type": "string"
        },
        "TerminalID": {
          "type": "string"
        },
        "Date": {
          "type": "string"
        },
        "ReceiptNumber": {
          "type": "string"
        },
        "SettlementDate": {
          "type": "string"
        },
        "EntryMethod": {
          "type": "string"
        },
        "PaymentMethod": {
          "type": "string"
        },
        "LineNumber": {
          "type": "string"
        },
        "ReversalCode": {
          "type": "string"
        },
        "Factor": {
          "type": "string"
        },
        "MaterialCode": {
          "type": "string"
        },
        "AgencyTransDescription": {
          "type": "string"
        },
        "GSTIndicator": {
          "type": "string"
        },
        "Amount": {
          "type": "string"
        },
        "Quantity": {
          "type": "string"
        }
      }
    }
  }
}