Create a 10 minute pairing code for a new station
POST
Try it now/v1/stations/pairing-codesFactory API keyBase URL api.skuflo.ioBody parameters#
| Name | Type | Description |
|---|---|---|
namerequired | string | · |
rolerequired | string | · One of "produce", "dispatch", "returns", "stock" |
ask_bayoptional | boolean | Made stations: ask for the rack bay label before each piece Default true |
worker_nameoptional | string, max 60, nullable | · |
photo_modeoptional | string | · One of "optional", "required"Default "optional" |
record_locationoptional | boolean | · Default false |
calibrateoptional | boolean | The device scans the test barcode four times before it scans anything else Default true |
Responses#
| Status | Meaning |
|---|---|
| 201 | Created. The new record is in the body. |
Other errors#
| Status | Meaning |
|---|---|
| 401 | No key, or the key is not recognised. |
| 402 | billing_required. Reading always works, but this is a write and stops once a trial ends or a plan is cancelled. |
| 403 | The key is valid but its role cannot do this. |
| 422 | The body failed validation. The response lists every problem at once. |
| 429 | More than 600 requests a minute. Wait retry-after seconds. |