We have a REST API for recording, recalling and editing transactions.
Requests are sent over HTTPs (this is recommended but not mandatory) via a get request to:https://api.thebank.com/endpoint.shtml
You will also supply any additional parameters that the method requires.
Additionally, your API key and password, separated by a colon, must be hashed and sent in a HTTP Header, X-Secret-Key-Hash. The hashing is performed using SHA256.
Every request will result in a HTTP 200, the body of the resonse will contain a string contains the details of any errors, or a "OK" string for success.
Eg: "Transaction failed, insufficient priviledge"
Or: "Transaction Suceeded"
The API supports a series of methods:
|record||record a transaction||method=record
amount=value of sales
|.... then a long series of methods (omitted), each with different parameters.|