Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Latest commit

 

History

History
64 lines (44 loc) · 1.08 KB

transferMoney.md

File metadata and controls

64 lines (44 loc) · 1.08 KB

Transfer Money

Transfer Money from one bank account to another.

URL : /api/banking/transfers/transfer

Method : POST

Required Header : access-token

Data example

{
  "receiverForename": "Max",
  "receiverSurname": "Muster",
  "receiverIban": "DE12345678902345",
  "iban": "DE126789098767876",
  "date": "2021-01-12",
  "description": "Concert tickets",
  "amount": 1000
}

Success Response

Code : 201 Created

Content example

{
  "receiverForename": "Max",
  "receiverSurname": "Muster",
  "receiverIban": "DE12345678902345",
  "iban": "DE126789098767876",
  "date": "2021-01-12",
  "description": "Concert tickets",
  "amount": 1000
}

Error Response


Condition : The access token is not valid.

Code : 401 Unauthorized


Condition : The payer account is not sufficiently funded.

Code : 402 Payment Required


Condition : The given iban is not in the system.

Code : 404 Not Found


Condition : The requested transfer has the same payer and receiver iban.

Code : 409 Conflict