Documentation for Banka API v0.0.0 url: https://banka-ch-api.herokuapp.com Root: /api/v1/
POST /accounts
Name | Type | Description |
---|---|---|
firstName | String | user first name. |
lastName | user last name |
|
dob | ISO Date(1995-05-25) | user date of birth. |
sex | String | user sex |
user email |
||
phone | user phone |
|
type | 'current' or 'savings' |
|
currency | 'Naira' or 'Dollar' |
|
address | user address |
DELETE /accounts/:account-number
Name | Type | Description |
---|---|---|
account-number | Integer | Account number to be deleted |
GET /accounts/:account-number
GET /accounts
PATCH /accounts/:account-number
Name | Type | Description |
---|---|---|
status | String | Status to patch; 'active' or 'dormant' |
POST /auth/signup
Name | Type | Description |
---|---|---|
Authorization | String | Basic authorization with email and password. |
Name | Type | Description |
---|---|---|
access_token | String | JWT token |
POST /auth/signin
Name | Type | Description |
---|---|---|
Authorization | String | Basic authorization with email and password. |
Name | Type | Description |
---|---|---|
access_token | String | JWT token |
POST /users
Name | Type | Description |
---|---|---|
firstName | String | user first name. |
lastName | user last name |
|
user email |
||
password | String | user password |
confirmPassword |
DELETE /users/:id
Name | Type | Description |
---|---|---|
id | Integer | User id. |
GET /users/:id
GET /users
Name | Type | Description |
---|---|---|
id | Integer | User id. |
POST /transactions/:account-number/credit
Name | Type | Description |
---|---|---|
amount | Integer | Amount to Credit |
transactionType | String | 'Credit' or 'Debit' |
POST /transactions/:account-number/debit
Name | Type | Description |
---|---|---|
amount | Integer | Amount to debit |
transactionType | String | 'Credit' or 'Debit' |