payware_poi_get_status
Retrieves a POI's current state and latest or session-specific transaction status, enabling merchants to follow a sale to its final outcome and recover from missed callbacks.
Instructions
[Merchant] Get the current status of a POI and the outcome of its sales.
Authentication: your own JWT (an ISV makes the same call on your behalf). Endpoint: GET /poi/{poiId}/status[?sessionToken=...] Use Case: Follow a sale to its outcome - the backup to callbacks, and on Basic (no transaction endpoints) the only way when a callback is lost or there is no backend.
POI States:
IDLE: no pending price and no sale running
READY: price set, waiting for a scan (wins over BUSY: the POI can take the next price while a sale runs)
BUSY: a customer scanned and the sale is running
Every response carries lastTransactionId / lastTransactionStatus - the POI's most recent sale, running (ACTIVE) or finished (CONFIRMED, DECLINED, FAILED, CANCELLED, EXPIRED). Once the POI is back to IDLE, lastTransactionStatus is how the last sale ended.
With sessionToken (from payware_poi_set_price) the response also carries transactionId / transactionStatus for exactly that sale - use it when the POI may be re-armed before the previous sale finishes. Poll every 2-3 seconds and stop at a final status; the read is rate limited.
Required: POI ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"poiId": "<poiId>"
},
"name": "payware_poi_get_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poiId | Yes | The POI identifier (format: pi + 8 alphanumeric chars, e.g., piABC12345) | |
| useSandbox | No | Use sandbox environment for testing | |
| sessionToken | No | Optional. The sessionToken returned by payware_poi_set_price; returns that sale's transaction and status |