SmartGare
API referenceEndpoints

Place a test code on a keypad

Has the keypad at the address take a fresh eight-digit code through the station's hardware bridge, for the plate TEST, which names no coach, valid five minutes. Answers the order's outcome — DELIVERED, NOT_DELIVERED or OUTCOME_UNKNOWN — and, unless NOT_DELIVERED, the code and when it runs out; never fails because of the bridge. Nothing is kept of the code. Each request places one code, which replaces the one before. **Required permission:** `referential.keypad-test-code:create`

POST/referential/v1/keypad-test-codes

Has the keypad at the address take a fresh eight-digit code through the station's hardware bridge, for the plate TEST, which names no coach, valid five minutes. Answers the order's outcome — DELIVERED, NOT_DELIVERED or OUTCOME_UNKNOWN — and, unless NOT_DELIVERED, the code and when it runs out; never fails because of the bridge. Nothing is kept of the code. Each request places one code, which replaces the one before.

Required permission: referential.keypad-test-code:create

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*PlaceKeypadTestCodeRequest

Response Body

*/*

curl -X POST "https://example.com/referential/v1/keypad-test-codes" \  -H "Content-Type: application/json" \  -d '{    "address": "string"  }'
{  "address": "string",  "code": "string",  "expires_at": "2019-08-24T14:15:22Z",  "order": "DELIVERED"}