getStatus method checks the status of the AEA (the payment application) service to see if it’s ready to process transactions (as opposed to getInternalStatus which provides information about the payment terminal’s readiness to do the first part of processing a new transaction).It’s a quick way to diagnose the terminal’s health, but you should call it infrequently.
Request
JSON-RPC 2.0All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Started for more details on how the requests are structured and sent.
- The
methodfield must be set togetStatus. - The service must be set to
ashraitin theparams.
Request Parameters
This method doesn’t require any parameters beyond the standard service name.Response
A successful call returns a string indicating the current status of the payment application.Response Parameters
The table below describes the response parameters for this method.| Value | Description |
|---|---|
ashraitReady | Ready for transactions. |
ashraitNotEstablished | The terminal setup hasn’t been completed. |
ashraitReadyOnline | Ready, but all transactions will be processed online due to an old database. |
ashraitError | A general error occurred (e.g., a corrupted database). |
ashraitNotReady | Not ready for transactions. |