๐Ÿฆ Banking API

Account Management & Transfers

API Sequence Demo

GET /api/v1/account/balance

Retrieve current account balance and details

{
  "success": true,
  "data": {
    "account_id": "ACC-78291",
    "account_holder": "Demo User",
    "available_balance": 15420.50,
    "currency": "USD"
  }
}

POST /api/v1/account/transfer

Transfer funds to another account

// Request Body
{
  "to_account": "ACC-99999",
  "amount": 500
}

// Response
{
  "success": true,
  "data": {
    "transaction_id": "TXN-ABC123",
    "status": "completed"
  }
}

๐Ÿ” API Sequence Enforcement (Cloudflare API Shield)

For security, users must check their balance before transferring funds.

Step 1
GET /balance
โ†’
Step 2
POST /transfer

โš ๏ธ Calling /transfer without first calling /balance will be BLOCKED

๐Ÿงช Try It

Test the API endpoints directly: