Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1017 Bytes

create-device-code-request.md

File metadata and controls

30 lines (22 loc) · 1017 Bytes

Create Device Code Request

Structure

CreateDeviceCodeRequest

Fields

Name Type Tags Description Getter
IdempotencyKey String Required A unique string that identifies this CreateDeviceCode request. Keys can
be any valid string but must be unique for every CreateDeviceCode request.

See Idempotency keys for more information.
Constraints: Minimum Length: 1, Maximum Length: 128
String getIdempotencyKey()
DeviceCode DeviceCode Required - DeviceCode getDeviceCode()

Example (as JSON)

{
  "device_code": {
    "location_id": "B5E4484SHHNYH",
    "name": "Counter 1",
    "product_type": "TERMINAL_API",
    "id": "id4",
    "code": "code2",
    "device_id": "device_id0"
  },
  "idempotency_key": "01bb00a6-0c86-4770-94ed-f5fca973cd56"
}