Add/Modify/Delete device(s) status(es)

This API allows the invoker add/modify/delete the status(es) of a single/list of device(s). The route takes a single/list of device RFID(s)/NLIS ID(s), corresponding status and action as an input and returns a receipt ID with a list of successfully updated device ID(s).

post
https://7d40e2d8b1.gateways.konggateway.com/public/device/v1/status/update

Headers

correlationIdstringrequired

UUID used to track the API call from the invoker’s perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

Body

application/json
statusesarray[object]required
Show Child Parameters
EIDOne Of
required
Variant 1object
Show Child Parameters

Response

application/json

OK

receiptIdstringrequired
updatedDevicesarray[object]required
Show Child Parameters
post/public/device/v1/status/update

Body

[ { "EID": { "rfid": "982 123489467678" }, "statuses": [ { "action": "Apply", "status": "Anthrax Withholding (AV-AV1)", "statusCode": "AV1", "category": "Vaccination", "programCode": "AV", "effectiveDate": "01/01/2025", "expiryDate": "01/03/2025", "comments": "Assigned to cattle that have been vaccinated against anthrax." } ] } ]
 
application/json

Search for a single/list of device status(es) using either an RFID or a NLIS ID

This API allows the invoker to get the status(es) of a single/list of device record(s). The route takes a request containing device RFID(s)/NLIS ID(s) and returns the status(es) of the device(s) as a response.

post
https://7d40e2d8b1.gateways.konggateway.com/public/device/v1/status

Headers

correlationIdstringrequired

UUID used to track the API call from the invoker’s perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

Body

application/json
array
One Of
rfidstringrequired

The RFID is 16 character number

>= 15 characters<= 16 characters

Response

application/json
receiptIdstringrequired
devicesarray[object]required
Show Child Parameters
post/public/device/v1/status

Body

[ { "rfid": "982 123489467678" }, { "rfid": "982 123489467679" } ]
 
application/json

Search for a list of device(s)

This API allows the invoker to get a list of devices that the invoker has access to. The route takes a request containing filter metadata and returns Device metadata that fulfils the search filter as a response. The response only returns the required Device data in a sorted order, specified in the header.

post
https://7d40e2d8b1.gateways.konggateway.com/public/device/v1/search

Headers

correlationIdstringrequired

UUID used to track the API call from the invoker’s perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

outputFieldsstringrequired

A comma-separated list of the Device data fields to return from the search. If blank, it will return all Device data.

Example:devices.EID.rfid

sortBystring

The field to sort the output list by.

sortOrderstring

The order to return the list based on sortBy i.e. ascend means alphabetical/numerical.

Allowed values:ascdesc

Body

application/json
manufacturerCodestring
deviceTypeobject

Optional if object is a non-NLIS device

Show Child Parameters
EIDOne Of
array

An array of EID objects, where each object contains either: - rfid: A 15–16 digit number - nlisId: A 16-character alphanumeric value

Variant 1object
Show Child Parameters
productCodestring

Product codes uniquely identify the type of identification device, including its specific characteristics such as type, colour, and usage.

currentPicstring

Match pattern:^[A-Z0-9]{8}$

picOfIssuestring

Match pattern:^[A-Z0-9]{8}$

speciesarray[string]
lifetimeTraceabilityboolean
issueDatearray[string]

>= 2 items<= 2 items

managementEarTagIdstring
isNLISDeviceboolean

True if device object is an NLIS device. False if device object is a non NLIS device.

statusesarray[object]
Show Child Parameters

Response

application/json
receiptIdstringrequired
devicesarray[object]required
* Additional properties are NOT allowed.
Show Child Parameters
post/public/device/v1/search

Body

{ "currentPic": "QZ222336" }
 
application/json

Search for a list of device(s) Copy

INTERNAL USE.

options
https://7d40e2d8b1.gateways.konggateway.com/public/device/v1/search

Headers

correlationIdstringrequired

UUID used to track the API call from the invoker’s perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

outputFieldsstringrequired

A comma-separated list of the Device data fields to return from the search. If blank, it will return all Device data.

Example:devices.EID.rfid

sortBystring

The field to sort the output list by.

sortOrderstring

The order to return the list based on sortBy i.e. ascend means alphabetical/numerical.

Allowed values:ascdesc

Response

options/public/device/v1/search
 

Replace NLIS device

This API allows the invoker to replace a single/list of old NLIS device(s) with new NLIS device(s). The route takes a single/list of device(s) as an input and returns a receipt ID with a list of successfully replaced device(s).

put
https://7d40e2d8b1.gateways.konggateway.com/public/device/v1/replace

Headers

correlationIdstringrequired

UUID used to track the API call from the invoker’s perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

Body

application/json
oldDeviceOne Of
required
Variant 1object
Show Child Parameters
newDeviceOne Of
required
Variant 1object
Show Child Parameters
replacementDatestringrequired

Confirms the date on which the NLIS Device was replaced

replacementReasonstring

Allows users to capture more details as to the cause of the device being lost or damaged

Response

application/json
receiptIdstringrequired
replacedDevicesOne Of
arrayrequired
Variant 1object
Show Child Parameters
put/public/device/v1/replace

Body

[ { "oldDevice": { "rfid": "982 123489467678" }, "newDevice": { "nlisId": "3MGJE153XBJ00612" }, "replacementDate": "01-01-2025", "replacementReason": "Missing device." } ]
 
application/json