POST '/users'
input
{
"first_name": "pedrito",
"last_name": "mendoza",
"document_id": "1234545678",
"type": "client-person",
"birthday": "1997-01-01",
"country": "peru",
"city": "lima",
"address": "av siempreviva",
"email": "jm@texample.com",
"phone_number": "999555999"
}
output
{
"username": "pramirez",
"password": "pe4819",
"code": 54802436
}POST /login
input
{
"username" : "jmendoza",
"password" : "ju9254",
"code" : 28184139
}
output
{
"access_token": "Bearer eyJhbGciOi..."
}
GET /home
input
# Header Value
Authorization "Bearer eyJhbGciOi...."
output
{
"user": [
{
"address": "av siempreviva",
"birthday": "1997-01-01",
"city": "lima",
...
}
]
}POST /accounts
input
# Header Value
Authorization "Bearer eyJhbGciOi...."
output
{
"balance": 90.0,
"cbu": 10200020001,
"creation_date": "Wed, 08 Mar 2023 00:00:00 GMT",
"currency": "local",
"user_id": 2
}POST /transactions
# input
{
"transaction_type": "deposit",
"origin_account": 423424, #can be a DNI
"final_account": 10200020001, #account to be update
"description": "test deposit",
"amount": 100.0
}# input
{
"transaction_type": "withdraw",
"origin_account": 10200020001, #account to be update
"final_account": 78687543, #can be a DNI
"description": "test withdraw",
"amount": 10.0
}# input
{
"transaction_type": "transaction",
"origin_account": 10200020001,
"final_account": 10200020002,
"description": "test transaction",
"amount": 50.0
}output
{
"amount": 50.0,
"balance": 40.0,
"description": "test transaction",
"final_account": 10200020002,
"origin_account": 10200020001
}