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://6dc8806175.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://6dc8806175.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://6dc8806175.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

Search for manufacturer's last registered device

This API allows the invoker to search for the details of the device with the highest ID from the latest batch of registered device record(s) that the invoker has access to. The route takes the required device details to filter the database and returns the details of the latest and highest device as a response.

post
https://6dc8806175.gateways.konggateway.com/public/device/v1/latest

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
manufacturerCodestringrequired
picstringrequired

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

manufacturedDatestringrequired
speciesstringrequired

Allowed values:cattlesheepgoatscamelidspigsbuffalosother

Response

application/json
receiptIdstringrequired
lastRegisteredDeviceobjectrequired
Show Child Parameters
post/public/device/v1/latest

Body

{ "manufacturerCode": "237845692", "pic": "56TH9381PR", "manufacturedDate": "01-01-2025", "species": "Cattle" }
 
application/json

Reallocate unused device(s) to a new PIC

This API allows the invoker to reallocate a single/list of unused device(s) to a new PIC. The route takes a single/list of device(s) as an input and returns a receipt ID with a list of EID(s) of successfully reallocated device(s).

post
https://6dc8806175.gateways.konggateway.com/public/device/v1/reallocate

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
fromPicstringrequired

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

toPicstringrequired

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

reallocateEffectiveDatestringrequired
EIDOne Of
required
Variant 1object
Show Child Parameters
commentsstring

Response

application/json
receiptIdstringrequired
reallocatedDevicesOne Of
arrayrequired
Variant 1object
Show Child Parameters
post/public/device/v1/reallocate

Body

[ { "fromPic": "3MGJE153", "toPic": "3MGJE162", "reallocateEffectiveDate": "05-05-2025", "EID": { "nlisId": "3MGJE153XBJ00611" }, "comments": "Device to be used in new PIC." }, { "fromPic": "3MGJE167", "toPic": "3MGJE188", "reallocateEffectiveDate": "05-05-2025", "EID": { "nlisId": "3MGJE153XBJ00612" }, "comments": "Device to be used in new PIC." } ]
 
application/json