GET | /gencode | Returns The Requested Code (s) |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
SerialNumber | body | String | Yes | The serial # of the Boot for which codes are being requested |
MasterArming | body | boolean | No | Master Arming Request |
MasterUnlock | body | boolean | No | Master Unlock Request |
RotateUnlockYesterdayRequest | body | boolean | No | Rotate Unlock Yesterday Request |
RotateUnlockTodayRequest | body | boolean | No | Rotate Unlock Today Request |
RotateUnlockTomorrowRequest | body | boolean | No | Rotate Unlock Tomorrow Request |
RotateLockRequest | body | boolean | No | Rotate Lock |
StaticEnableDisableRequest | body | boolean | No | Static enable/disable |
SetTimeRequest | body | boolean | No | Set Time |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
MasterArmingProgramming | form | string | No | |
MasterUnlockProgramming | form | string | No | |
StaticToggleProgramming | form | string | No | |
SetTimeProgramming | form | string | No | |
RotateUnlockYesterday | form | string | No | |
RotateUnlockToday | form | string | No | |
RotateUnlockTomorrow | form | string | No | |
RotateLock | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /gencode HTTP/1.1 Host: api.paylock.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"masterArmingProgramming":"String","masterUnlockProgramming":"String","staticToggleProgramming":"String","setTimeProgramming":"String","rotateUnlockYesterday":"String","rotateUnlockToday":"String","rotateUnlockTomorrow":"String","rotateLock":"String"}