{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/barclays/main/json-schema/barclays-get-account-transactions-response-schema.json",
  "title": "get_account_transactions_response",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/barclays-accounts-api-openapi.yml#/components/schemas/get_account_transactions_response",
  "type": "object",
  "properties": {
    "transactions": {
      "type": "object",
      "properties": {
        "booked": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "transactionAmount": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ]
              },
              "creditorAccount": {
                "type": "object",
                "properties": {
                  "bban": {
                    "type": "string"
                  },
                  "iban": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  }
                }
              },
              "bookingDate": {
                "type": "string",
                "format": "date-time"
              },
              "transactionId": {
                "type": "string"
              }
            },
            "required": [
              "transactionAmount"
            ]
          }
        },
        "pending": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "transactionAmount": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ]
              },
              "creditorAccount": {
                "type": "object",
                "properties": {
                  "bban": {
                    "type": "string"
                  },
                  "iban": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  }
                }
              },
              "bookingDate": {
                "type": "string",
                "format": "date-time"
              },
              "transactionId": {
                "type": "string"
              }
            },
            "required": [
              "transactionAmount"
            ]
          }
        }
      }
    },
    "account": {
      "type": "object",
      "properties": {
        "bban": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        }
      }
    }
  }
}