72 lines
1.6 KiB
JSON
72 lines
1.6 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",
|
|
"reason": "insufficient funds",
|
|
"status": "rejected"
|
|
},
|
|
{
|
|
"id": "TXN-004",
|
|
"type": "deposit",
|
|
"account_id": "ACC-002",
|
|
"amount": -100.0,
|
|
"description": "Invalid negative deposit",
|
|
"reason": "invalid amount"
|
|
},
|
|
{
|
|
"id": "TXN-005",
|
|
"type": "deposit",
|
|
"account_id": "ACC-003",
|
|
"amount": 1000.0,
|
|
"description": "Deposit to frozen account",
|
|
"reason": "account not active"
|
|
},
|
|
{
|
|
"id": "TXN-007",
|
|
"type": "withdrawal",
|
|
"account_id": "ACC-999",
|
|
"amount": 50.0,
|
|
"description": "Unknown account",
|
|
"reason": "account not found"
|
|
},
|
|
{
|
|
"id": "TXN-008",
|
|
"type": "deposit",
|
|
"account_id": "ACC-001",
|
|
"amount": 0,
|
|
"description": "Zero-amount deposit",
|
|
"reason": "invalid amount"
|
|
}
|
|
]
|
|
} |