Mock API documentation
This page contains free mock API documentation. This API endpoints are meant for learning and testing purposes only. The scenario is of banking domain. Feel free to browse, download, and stay updated with the latest versions.
Deposit amount
This API endpoint enables an API user to deposit amount to the account of a mock bank user. All the balances are taken as USD transactions.
Authentication details
Authentication type : Basic Authentication
Username: test_username
Password: test_password
API request details
Request URL: https://www.busstopsolutions.com/controllers/mock.php
Request method: POST
Request header: Content-Type: application/x-www-form-urlencoded
Request body:
{
"action":"deposit",
"amount":"XXXX" ,
"user_id":"XXXX"
}
Expected response:
{
"result":"True";
"transaction_id":"XXXX"
}
Types of output to expect
- Amount deposited for the user id and transaction id returned
- Error message on missing API body
- Error message on missing attribute in the API body
- Error message on amount attribute not being numeric
- Error message on user id attribute not being numeric
Related topics
Create user
Deposit amount