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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BootCodesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel"> <MasterArmingProgramming>String</MasterArmingProgramming> <MasterUnlockProgramming>String</MasterUnlockProgramming> <RotateLock>String</RotateLock> <RotateUnlockToday>String</RotateUnlockToday> <RotateUnlockTomorrow>String</RotateUnlockTomorrow> <RotateUnlockYesterday>String</RotateUnlockYesterday> <SetTimeProgramming>String</SetTimeProgramming> <StaticToggleProgramming>String</StaticToggleProgramming> </BootCodesResult>