Request Information

URI Parameters

None.

Body Parameters

CloseCodeViaLockIdRequest

CloseCodeViaLockIdRequest
NameDescriptionTypeAdditional information
TechnicianId

Technician Id

integer

Required

LockId

Lock ID to be used to close an operation code

string

Required

OperationCode

Operation code

integer

Required

OperationResult

Operation result

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TechnicianId": 1,
  "LockId": "12345678",
  "OperationCode": 43232333,
  "OperationResult": "1"
}

application/xml, text/xml

Sample:
<CloseCodeViaLockIdRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.OTC.API.Models.Requests.GenerateOperationCodes">
  <LockId>12345678</LockId>
  <OperationCode>43232333</OperationCode>
  <OperationResult>1</OperationResult>
  <TechnicianId>1</TechnicianId>
</CloseCodeViaLockIdRequest>

application/x-www-form-urlencoded

Sample:
TechnicianId=1&LockId=12345678&OperationCode=43232333,OperationResult=1

Response Information

Resource Description

CloseCodeResponse

CloseCodeResponse
NameDescriptionTypeAdditional information
Header

Close code response message header.

ResponseHeader

None.

Body

Close code response message body.

CloseCodeResponseBody

None.

Response Header Description

ResponseHeader
NameDescriptionTypeAdditional information
Message

Message

string

None.

StatusCode

Status code

ResponseStatus

None.

Status

Status

string

None.

ErrorId

Error id

string

None.

Response Body Description

CloseCodeResponseBody
NameDescriptionTypeAdditional information
CodeClosed

Determines if the code was successfully closed.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Header": {
    "Message": "",
    "StatusCode": 0,
    "Status": "Ok",
    "ErrorId": null
  },
  "Body": {
    "CodeClosed": true
  }
}

application/xml, text/xml

Sample:
<CloseCodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.OTC.API.Models.Responses">
  <Body>
    <CodeClosed>true</CodeClosed>
  </Body>
  <Header>
    <ErrorId i:nil="true" />
    <Message></Message>
    <Status>Ok</Status>
    <StatusCode>Ok</StatusCode>
  </Header>
</CloseCodeResponse>

© 2025 Sargent and Greenleaf