76 lines
1.7 KiB
JSON

{
"accepted": [
{
"id": "TXN-001",
"type": "deposit",
"account_id": "ACC-001",
"amount": 500.0,
"description": "Salary payment",
"status": "accepted"
},
{
"id": "TXN-002",
"type": "withdrawal",
"account_id": "ACC-001",
"amount": 200.0,
"description": "ATM withdrawal",
"status": "accepted"
},
{
"id": "TXN-006",
"type": "transfer",
"account_id": "ACC-001",
"to_account_id": "ACC-002",
"amount": 750.0,
"description": "Transfer to Bob",
"status": "accepted"
}
],
"rejected": [
{
"id": "TXN-003",
"type": "withdrawal",
"account_id": "ACC-002",
"amount": 1500.0,
"description": "Rent payment - exceeds balance",
"status": "rejected",
"reason": "insufficient funds"
},
{
"id": "TXN-004",
"type": "deposit",
"account_id": "ACC-002",
"amount": -100.0,
"description": "Invalid negative deposit",
"status": "rejected",
"reason": "amount must be positive"
},
{
"id": "TXN-005",
"type": "deposit",
"account_id": "ACC-003",
"amount": 1000.0,
"description": "Deposit to frozen account",
"status": "rejected",
"reason": "account is frozen"
},
{
"id": "TXN-007",
"type": "withdrawal",
"account_id": "ACC-999",
"amount": 50.0,
"description": "Unknown account",
"status": "rejected",
"reason": "account not found"
},
{
"id": "TXN-008",
"type": "deposit",
"account_id": "ACC-001",
"amount": 0,
"description": "Zero-amount deposit",
"status": "rejected",
"reason": "amount must be positive"
}
]
}