Read a presence sensor
Asks the station's hardware bridge, once, what the presence sensor at the address last confirmed — OCCUPIED or VACANT, something and never a coach — when, and how much it may be believed: CURRENT, STALE, UNAVAILABLE, UNKNOWN or BRIDGE_UNREACHABLE; and the sensor's health as the device statuses read answers it. Nothing is recorded, and the bridge never fails this read. **Required permission:** `referential.device-status:read`
/referential/v1/presence-sensor-readingsAsks the station's hardware bridge, once, what the presence sensor at the address last confirmed — OCCUPIED or VACANT, something and never a coach — when, and how much it may be believed: CURRENT, STALE, UNAVAILABLE, UNKNOWN or BRIDGE_UNREACHABLE; and the sensor's health as the device statuses read answers it. Nothing is recorded, and the bridge never fails this read.
Required permission: referential.device-status:read
Authorization
oauth2 In: header
Query Parameters
The sensor's bridge address, capability@place or capability[role]@place. One sensor per read.
^([a-z][a-z0-9]*(?:-[a-z0-9]+)*)(?:\[([a-z][a-z0-9]*(?:-[a-z0-9]+)*)\])?@([A-Za-z0-9_.:-]+)$Response Body
*/*
curl -X GET "https://example.com/referential/v1/presence-sensor-readings?address=string"{ "address": "string", "confirmed_at": "2019-08-24T14:15:22Z", "health": { "address": "string", "checked_at": "2019-08-24T14:15:22Z", "condition": "HEALTHY", "health": "AVAILABLE", "last_confirmed_at": "2019-08-24T14:15:22Z", "reason": "PARTIAL_FUNCTION", "stale": true, "status": "IN_SERVICE" }, "last_known": "OCCUPIED", "standing": "CURRENT"}Read a payment terminal
Reads, once, what the station's hardware bridge still keeps of the payment terminal at the address and answers the last outcome it reported — APPROVED, DECLINED or CANCELLED, with when — or NO_REQUEST when it holds none, or BRIDGE_UNREACHABLE; and, apart from it, the terminal's health as the device statuses read answers it. Nothing is recorded, no payment is asked, and the bridge never fails this read. **Required permission:** `referential.device-status:read`
Read a printer's settings
Asks the station's hardware bridge what the printer at the address is set to and answers each value the bridge reported, leaving out any it did not; or, with no value, why none could be read: UNKNOWN_TO_BRIDGE, NOT_A_PRINTER, OFFLINE, NOT_DETERMINABLE, or BRIDGE_UNREACHABLE when no bridge is configured or it gave no usable answer in time. The bridge never fails this read. **Required permission:** `referential.printer-settings:read`