AlmondTill/G3N API

On this page

cannedPeripheralModels

query · in the family Reading your records

What it does

The platform’s supported-hardware presets — the printers, scanners, and card readers Almond Till knows how to drive. A device peripheral names one of these.

The AT-maintained preset peripheral-model roster: every model names its peripheralType + supported connections; createDevicePeripheral must cohere with a row. Unpaginated bounded roster (not a construct list). Requires authentication.

What happens

Reads only.

Who may call it

Capability area: Reading your records — Looking up and listing the records of your organization.

Returns

PeripheralModel [PeripheralModel!]! — One preset peripheral model.

Example request

query ExampleCannedPeripheralModels {
  cannedPeripheralModels {
    model
    caption
    peripheralType
    connections
  }
}

Example response

{
  "data": {
    "cannedPeripheralModels": [
      {
        "model": "<model>",
        "caption": "Blue jeans",
        "peripheralType": "barcode_scanner",
        "connections": [
          "native_usb"
        ]
      }
    ]
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer