This function will return a list of all active operation codes that have been assigned to the specified lock. INPUTS==> LOCK ID. RETURN==> list of active operation codes
None.
GetOperationCodesByLockRequest
GetOperationCodesByLockRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| LockId |
Lock ID to search for operation codes |
string |
Required |
{
"LockId": "235108754400"
}
<GetOperationCodesByLockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests.OperationCodesQuery"> <LockId>235108754400</LockId> </GetOperationCodesByLockRequest>
LockId=235108754400
OperationCodeListResponse
OperationCodeListResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Header |
Operation code list response message header. |
ResponseHeader |
None. |
| Body |
Operation code list response message body. |
OperationCodeListResponseBody |
None. |
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
Message |
string |
None. |
| StatusCode |
Status code |
ResponseStatus |
None. |
| Status |
Status |
string |
None. |
| ErrorId |
Error id |
string |
None. |
| Name | Description | Type | Additional information |
|---|---|---|---|
| OperationsCodes |
List of Operation codes |
Collection of OperationCode |
None. |
{
"Header": {
"Message": "",
"StatusCode": 0,
"Status": "Ok",
"ErrorId": null
},
"Body": {
"OperationsCodes": [
{
"OpCode": 47637424,
"AtmID": "ATM001",
"LockID": "235108754400",
"UserID": "WilsonFG",
"StartDateTime": "2014-07-14T07:00:00",
"EndDateTime": "2014-07-14T19:00:00"
},
{
"OpCode": 52573166,
"AtmID": "ATM001",
"LockID": "235108754400",
"UserID": "WilsonFG",
"StartDateTime": "2014-07-14T07:00:00",
"EndDateTime": "2014-07-14T19:00:00"
}
]
}
}
<OperationCodeListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses.OpCode">
<Body>
<OperationsCodes xmlns:d3p1="http://schemas.datacontract.org/2004/07/SaG.API.Models">
<d3p1:OperationCode>
<d3p1:AtmID>ATM001</d3p1:AtmID>
<d3p1:EndDateTime>2014-07-14T19:00:00</d3p1:EndDateTime>
<d3p1:LockID>235108754400</d3p1:LockID>
<d3p1:OpCode>47637424</d3p1:OpCode>
<d3p1:StartDateTime>2014-07-14T07:00:00</d3p1:StartDateTime>
<d3p1:UserID>WilsonFG</d3p1:UserID>
</d3p1:OperationCode>
<d3p1:OperationCode>
<d3p1:AtmID>ATM001</d3p1:AtmID>
<d3p1:EndDateTime>2014-07-14T19:00:00</d3p1:EndDateTime>
<d3p1:LockID>235108754400</d3p1:LockID>
<d3p1:OpCode>52573166</d3p1:OpCode>
<d3p1:StartDateTime>2014-07-14T07:00:00</d3p1:StartDateTime>
<d3p1:UserID>WilsonFG</d3p1:UserID>
</d3p1:OperationCode>
</OperationsCodes>
</Body>
<Header xmlns:d2p1="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses">
<d2p1:ErrorId i:nil="true" />
<d2p1:Message></d2p1:Message>
<d2p1:Status>Ok</d2p1:Status>
<d2p1:StatusCode>Ok</d2p1:StatusCode>
</Header>
</OperationCodeListResponse>