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.
Check transaction
This API endpoint enables an API user to check the transaction details of a mock transaction. All the transactions 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: GET
Request header: Content-Type: application/x-www-form-urlencoded
Request body:
{
"action":"get_transaction" ,
"transaction_id":XXXX
}
Expected response:
{
"result":"True",
"amount":"XXXX",
"currency":"USD"
}
Types of output to expect
- Transaction details retrieved and returned
- Error message on missing API body
- Error message on missing attribute in the API body
- Error message on transaction id attribute not being alphabetic
Related topics
Create user
Check transaction