GET smartlot/v2/OfflineBays/{APIKey}/{siteCode}
This method returns all the offline bays for the current site
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
siteCode | The code of the site you have access to and whose data you want to retrieve. Available on settings page. |
Define this parameter in the request URI. |
APIKey | The API key provided during registration. Available on settings page. |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
[ { "SectorCode": "sample string 1", "LotCode": "sample string 2", "BayNumber": 3, "IsOffline": true, "IsReserved": true, "EventTime": "2019-02-17T05:23:36.2076459+00:00", "Full": true, "LastMessageState": 1, "LastMessageTime": "2019-02-17T05:23:36.2076459+00:00" }, { "SectorCode": "sample string 1", "LotCode": "sample string 2", "BayNumber": 3, "IsOffline": true, "IsReserved": true, "EventTime": "2019-02-17T05:23:36.2076459+00:00", "Full": true, "LastMessageState": 1, "LastMessageTime": "2019-02-17T05:23:36.2076459+00:00" }, { "SectorCode": "sample string 1", "LotCode": "sample string 2", "BayNumber": 3, "IsOffline": true, "IsReserved": true, "EventTime": "2019-02-17T05:23:36.2076459+00:00", "Full": true, "LastMessageState": 1, "LastMessageTime": "2019-02-17T05:23:36.2076459+00:00" } ]
application/xml, text/xml
Sample:
<ArrayOfBay xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartAPI.Entities"> <Bay> <BayNumber>3</BayNumber> <EventTime>2019-02-17T05:23:36.2076459+00:00</EventTime> <Full>true</Full> <IsOffline>true</IsOffline> <IsReserved>true</IsReserved> <LastMessageState>FULL</LastMessageState> <LastMessageTime>2019-02-17T05:23:36.2076459+00:00</LastMessageTime> <LotCode>sample string 2</LotCode> <SectorCode>sample string 1</SectorCode> </Bay> <Bay> <BayNumber>3</BayNumber> <EventTime>2019-02-17T05:23:36.2076459+00:00</EventTime> <Full>true</Full> <IsOffline>true</IsOffline> <IsReserved>true</IsReserved> <LastMessageState>FULL</LastMessageState> <LastMessageTime>2019-02-17T05:23:36.2076459+00:00</LastMessageTime> <LotCode>sample string 2</LotCode> <SectorCode>sample string 1</SectorCode> </Bay> <Bay> <BayNumber>3</BayNumber> <EventTime>2019-02-17T05:23:36.2076459+00:00</EventTime> <Full>true</Full> <IsOffline>true</IsOffline> <IsReserved>true</IsReserved> <LastMessageState>FULL</LastMessageState> <LastMessageTime>2019-02-17T05:23:36.2076459+00:00</LastMessageTime> <LotCode>sample string 2</LotCode> <SectorCode>sample string 1</SectorCode> </Bay> </ArrayOfBay>