{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://api-evangelist.github.io/bank-of-america/json-schema/transaction-schema.json", "title": "Transaction", "type": "object", "description": "An account transaction record", "properties": { "transactionId": { "type": "string", "description": "Unique transaction identifier" }, "accountId": { "type": "string", "description": "Account the transaction belongs to" }, "type": { "type": "string", "description": "Transaction type (debit, credit)", "enum": [ "debit", "credit" ] }, "amount": { "type": "number", "format": "double", "description": "Transaction amount" }, "currency": { "type": "string", "description": "Transaction currency" }, "description": { "type": "string", "description": "Transaction description or memo" }, "referenceNumber": { "type": "string", "description": "Bank reference number" }, "valueDate": { "type": "string", "format": "date", "description": "Value date of the transaction" }, "postDate": { "type": "string", "format": "date", "description": "Post date of the transaction" }, "status": { "type": "string", "description": "Transaction status" } } }