Bank API
Developer Portfolio
  1. bank_api
  • bank_api
    • heart_beat
      GET
    • create_account
      POST
    • get_account_by_id
      GET
    • list_acounts
      GET
    • update_account
      PATCH
    • delete_account
      DELETE
    • create_transfer
      POST
    • create_account
      POST
    • login
      POST
    • logout
      POST
    • refresh_token
      POST
  1. bank_api

create_transfer

Developing
POST
http://localhost:8080/transfer

Request

Body Params application/json

Example
{
    "from_account_id": 6,
    "to_account_id": 3,
    "amount": 1,
    "currency": "USD"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8080/transfer' \
--header 'Content-Type: application/json' \
--data-raw '{
    "from_account_id": 6,
    "to_account_id": 3,
    "amount": 1,
    "currency": "USD"
}'

Responses

🟢201Created
application/json
Body

Example
{
    "transfer": {
        "id": 0,
        "from_account_id": 0,
        "to_account_id": 0,
        "amount": 0,
        "created_at": "string"
    },
    "from_account": {
        "id": 0,
        "owner": "string",
        "currency": "string",
        "created_at": "string",
        "balance": 0
    },
    "to_account": {
        "id": 0,
        "owner": "string",
        "currency": "string",
        "created_at": "string",
        "balance": 0
    },
    "from_entry": {
        "id": 0,
        "account_id": 0,
        "amount": 0,
        "created_at": "string"
    },
    "to_entry": {
        "id": 0,
        "account_id": 0,
        "amount": 0,
        "created_at": "string"
    }
}
Modified at 2025-02-23 20:10:01
Previous
delete_account
Next
create_account
Built with