---
title: "Device Public"
url: "https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2"
---

# Device Public

OpenAPI specification document.

```json
{"openapi":"3.1.0","info":{"title":"Device Public","description":"","version":"v1.0.0"},"tags":[{"name":"Device"},{"name":"Miscellaneous"}],"servers":[{"url":"https://7d40e2d8b1.gateways.konggateway.com"}],"paths":{"/public/device/health":{"get":{"summary":"Get device service availability status","deprecated":false,"description":"This API allows the invoker to check the availability of the Device service.","operationId":"healthCheck","tags":["Device"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"Status of service"}},"required":["status"]},"example":{"status":"Healthy"}}},"headers":{}},"503":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"Status of service"}},"required":["status"]},"example":{"status":"Unhealthy"}}},"headers":{}}},"security":[]}},"/public/device/v1/register/device":{"post":{"summary":"Issue a single/list of new device(s)","deprecated":false,"description":"This API allows the invoker to issue a single/list of new device(s). 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 issued device(s).","operationId":"registerDevice","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/IssueNonNLIS"},{"$ref":"#/components/schemas/IssueNLIS"}]}},"example":[{"manufacturerCode":"123 876548","deviceType":{"code":"A","colorCode":"O"},"EID":{"rfid":"982 123489467678","nlisId":"3MGJE153XBJ00611"},"productCode":"97","pic":"3MGJE153","issueDate":"05-06-2025","managementEarTagId":"34821746","isNLISDevice":true},{"manufacturerCode":"123 876548","EID":{"rfid":"982 123489467679"},"issueDate":"05-06-2025","managementEarTagId":"34821746","isNLISDevice":false},{"manufacturerCode":"123 876548","deviceType":{"code":"A","colorCode":"O"},"EID":{"rfid":"982 123489467680","nlisId":"3MGJE153XBJ00613"},"productCode":"97","pic":"3MGJE153","issueDate":"05-06-2025","managementEarTagId":"34821746","isNLISDevice":true}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"issuedDevices":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16},"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. ","minLength":16,"maxLength":16}},"required":["nlisId","rfid"]}]}}},"required":["receiptId","issuedDevices"]},"example":{"receiptId":"qk43gh513hgh","issuedDevices":[{"rfid":"982 123489467678","nlisId":"3MGJE153XBJ00611"},{"rfid":"982 123489467679"},{"rfid":"982 123489467680","nlisId":"3MGJE153XBJ00613"}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"404":{"description":"Sample not found","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Register a single/list of new device(s) Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"registerDeviceOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"registeredDevices":{"type":"array","items":{"type":"string","description":"RFID(s)"}}},"required":["receiptId","registeredDevices"]},"example":{"receiptId":"qk43gh513hgh","registeredDevices":["982 123489467678","982 123489467679","982 123489467680"]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"404":{"description":"Sample not found","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"headers":{}}},"security":[]}},"/public/device/v1/register/livestock":{"post":{"summary":"Register livestock(s)","deprecated":false,"description":"This API allows the invoker to register livestock(s). The route takes a single/list of device(s) with the livestocks' and PIC information as an input and returns a receipt ID with a list of successfully registered livestock(s).","operationId":"registerLivestock","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Livestock"}},"example":[{"EID":{"nlisId":"3MGJE153XBJ00612"},"pic":"3MGJE153","applicationDate":"01-01-2025","species":"cattle","managementEarTagId":"Orange","dentition":3}]}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"registeredLivestocks":{"type":"array","items":{"$ref":"#/components/schemas/Livestock"}}},"required":["receiptId","registeredLivestocks"]},"example":{"receiptId":"i345iutyrowtyegt43wh","registeredLivestocks":[{"EID":{"nlisId":"3MGJE153XBJ00612"},"pic":"3MGJE153","applicationDate":"01-01-2025","species":"cattle","managementEarTagId":"Orange","dentition":3}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"403":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Register livestock(s) Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"registerLivestockOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"registeredLivestocks":{"type":"array","items":{"$ref":"#/components/schemas/Livestock"}}},"required":["receiptId","registeredLivestocks"]},"example":{"receiptId":"i345iutyrowtyegt43wh","registeredLivestocks":[{"rfid":"982 123489467679","nlisId":"3MGJE153XBJ00612","pic":"3MGJE153","applicationDate":"01-01-2025","animalType":"Cattle","managementEarTagId":"Orange","dentition":3}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"403":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["detail"]}}},"headers":{}}},"security":[]}},"/public/device/v1/register/livestock-death":{"post":{"summary":"Record livestock(s) that died on the property","deprecated":false,"description":"This API allows the invoker to record livestock death(s). The route takes a single/list of device(s) with the PIC information as an input and returns a receipt ID with a list of successfully recorded livestock death(s).","operationId":"recordLivestockDeath","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeathRegister"}},"example":[{"dateOfDeath":"01-01-2025","EID":{"rfid":"982 123489467679"},"picOfDeath":"3MGJE153","causeOfDeath":"Injury"}]}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"registeredLivestockDeaths":{"type":"array","items":{"$ref":"#/components/schemas/DeathRegister"}}},"required":["receiptId","registeredLivestockDeaths"]},"example":{"receiptId":"i345iutyrowtyegt43wh","registeredLivestockDeaths":[{"dateOfDeath":"01-01-2025","EID":{"rfid":"982 123489467679"},"picOfDeath":"3MGJE153","causeOfDeath":"Injury"}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"403":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Record livestock(s) that died on the property Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"recordLivestockDeathOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"registeredLivestockDeaths":{"type":"array","items":{"$ref":"#/components/schemas/DeathRegister"}}},"required":["receiptId","registeredLivestockDeaths"]},"example":{"receiptId":"i345iutyrowtyegt43wh","registeredLivestockDeaths":[{"dateOfDeath":"01-01-2025","rfid":"982 123489467679","nlisId":"3MGJE153XBJ00612","picOfDeath":"3MGJE153","causeOfDeath":"Injury"}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"403":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["detail"]}}},"headers":{}}},"security":[]}},"/public/device/v1/delete":{"delete":{"summary":"Delete a single/list of NLIS/non-NLIS device(s)","deprecated":false,"description":"This API allows the invoker to soft delete a single/list of NLIS/non-NLIS device(s). The route takes a single/list of NLIS/non-NLIS device(s) as an input and returns a receipt ID with a list of NLIS/non-NLIS device(s) that have been flagged as inactive.","operationId":"deleteDevice","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeleteDeviceRequest"}},"example":[{"EID":{"rfid":"982 123489467678"},"comments":"Device is no longer in use"},{"EID":{"nlisId":"3MGJE153XBJ00612"},"comments":null}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"deletedDevices":{"type":"array","items":{"$ref":"#/components/schemas/EidSchema"}}},"required":["receiptId","deletedDevices"]},"example":{"receiptId":"i345iutyrowtyegt43wh","deletedDevices":[{"EID":{"rfid":"982 123489467678"}},{"EID":{"nlisId":"3MGJE153XBJ00612"}}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"Sample not found","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Delete a single/list of NLIS device(s) Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"deleteDeviceOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"deletedDevices":{"type":"array","items":{"type":"object","properties":{"rfid":{"type":"string"},"nlisId":{"type":"string"}},"required":["rfid","nlisId"]}}},"required":["receiptId","deletedDevices"]},"example":{"receiptId":"i345iutyrowtyegt43wh","deletedDevices":[{"rfid":"982 123489467678","nlisId":"3MGJE153XBJ00611"},{"rfid":"982 123489467679","nlisId":"3MGJE153XBJ00612"}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"Sample not found","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"headers":{}}},"security":[]}},"/public/device/v1/device-statuses":{"get":{"summary":"Get list of device statuses","deprecated":false,"description":"This API allows the invoker to retrieve a list of device status categories and options that are available to be assigned to a device.","operationId":"getDeviceStatusList","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"object","properties":{"program":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"vaccination":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"residue":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"notice":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"operational":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"restriction":{"type":"array","items":{"$ref":"#/components/schemas/Status"}}},"required":["program","vaccination","residue","notice","operational","restriction"]}},"required":["category"]},"example":{"category":{"program":[{"status":{"name":"Lifetime Traceable (NLA-LT)","code":"LT","codeDescription":"Life Time Traceable"},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Moved from Non-LPA Property (LPA-NL1)","code":"NL1","codeDescription":"Assigned to devices that have moved from a non LPA PIC to an LPA A or LPA A1 PIC and have resided on the LPA A or LPA A1 PIC for less than 60 days."},"program":{"code":"LPA","codeDescription":"Market access issue - we cannot give you assurance of these animals."}},{"status":{"name":"Moved from Non-LPA Property (LPA-NL2)","code":"NL2","codeDescription":"Assigned to devices that have moved to an LPA A or LPA A1 PIC from a non LPA PIC with an OC status and have resided on the LPA A or LPA A1 PIC for less than 6 months."},"program":{"code":"LPA","codeDescription":null}},{"status":{"name":"EU Eligible (NLS-EU)","code":"EU","codeDescription":"Assigned to cattle that are eligible for the EU market."},"program":{"code":"NLS","codeDescription":null}}],"vaccination":[{"status":{"name":"Anthrax Withholding (AV-AV1)","code":"AV1","codeDescription":"AV1 - Anthrax vaccine withholding period yet to expire. Not for human consumption."},"program":{"code":"AV","codeDescription":"Assigned to cattle that have been vaccinated against anthrax. Status lapses 42 days after date of vaccination and then converts to an AV2 status. Note: Anthrax vaccine has a 42 day WHP."}},{"status":{"name":"Anthrax Vaccinated (AV-AV2)","code":"AV2","codeDescription":"Assigned to cattle that have been vaccinated against anthrax more than 42 days earlier i.e. the WHP has expired."},"program":{"code":"AV","codeDescription":"Assigned to cattle that have been vaccinated against anthrax more than 42 days earlier, i.e. the WHP has expired."}},{"status":{"name":"Bovine Brucellosis (BBV-BB)","code":"BB","codeDescription":"Assigned to cattle that have been vaccinated against bovine brucellosis and are not suitable or human consumption."},"program":{"code":"BBV","codeDescription":null}},{"status":{"name":"Bluetongue Virus Vaccination (BTH-BTV)","code":"BTV","codeDescription":"Assigned to cattle that have been vaccinated against bluetongue virus and are suitable for human consumption."},"program":{"code":"BTH","codeDescription":null}},{"status":{"name":"Bluetongue Virus Restricted (BTV-BTV)","code":"BTV","codeDescription":"Assigned to cattle that have been vaccinated against Bluetongue Virus and are not suitable for human consumption."},"program":{"code":"BTV","codeDescription":"Bluetongue Virus"}},{"status":{"name":"Johnes Disease Vaccination (JD-JDV)","code":"JDV","codeDescription":"Cattle vaccinated against bovine Johnes disease."},"program":{"code":"JD","codeDescription":"Johnes Disease"}}],"residue":[{"status":{"name":"Cysticercus Bovis (Beef Measles) - Grazed Exposure (CB-CBA)","code":"CBA","codeDescription":"Assigned to cattle that reside on a PIC assigned a CBP status which indicates they have grazed on high-risk land where exposure to beef measles (C. bovis) may have occurred, i.e., land treated with recycled water containing human effluent from a sewerage treatment facility not adequately treated."},"program":{"code":"CB","codeDescription":"Cysticercus Bovis"}},{"status":{"name":"May have Accessed Cotton Trash (CT-CTA)","code":"CTA","codeDescription":"Assigned to cattle that have or may have accessed cotton trash."},"program":{"code":"CT","codeDescription":"Cotton Trash"}},{"status":{"name":"Antibacterial Residue Testing (NARM-K1F)","code":"K1F","codeDescription":"K1F - Collect urine and kidney for antibiotic residues. Assigned by States/Territories to cattle where antibacterial residue testing is required. NRS to fund testing."},"program":{"code":"NARM","codeDescription":null}},{"status":{"name":"Antibacterial Residue Testing (NARM-K1V)","code":"K1V","codeDescription":"K1V - Collect urine and kidney for antibiotic residues. Assigned by States/Territories to cattle where antibacterial residue testing is required. NRS will not fund testing. Commercial arrangements apply."},"program":{"code":"NARM","codeDescription":null}},{"status":{"name":"Antibacterial Residue Restriction (NARM-K3)","code":"K3","codeDescription":"K3 - carcase must be condemned. Assigned by treating veterinary surgeon to cattle that potentially have antibacterial residues in edible tissue. APVMA permits for the use of streptomycin products require NLIS ID or equivalent. Allocation of this status to treated cattle facilitates abattoir disclosure."},"program":{"code":"NARM","codeDescription":null}}],"notice":[{"status":{"name":"Non-EU Breeding Cattle (NLS-B)","code":"B","codeDescription":"Assigned to non EU breeding cattle that have been introduced onto an EU property."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"State Surveillance (DOI-DN1)","code":"DN1","codeDescription":"Devices of interest to states and territories for surveillance of cattle movements."},"program":{"code":"DOI","codeDescription":"Device Of Interest"}},{"status":{"name":"State Surveillance - Not Fit For Consumption (DOI-DN2)","code":"DN2","codeDescription":"Devices of interest to states and territories for surveillance of cattle movements. Animal associated with this with this may not be fit for human consumption."},"program":{"code":"DOI","codeDescription":"Device Of Interest"}},{"status":{"name":"Restricted Animal Material - Domestic Consumption Only (RAM-F1)","code":"F1","codeDescription":"Cattle exposed to imported/unknown status restricted animal material (RAM) within the past 30 months. Only suitable for domestic consumption if slaughtered within 30 months of exposure, and SRMs must be removed at slaughter. If slaughtered >30months after exposure to RAM, carcase not suitable for human consumption or production of MBM."},"program":{"code":"RAM","codeDescription":null}},{"status":{"name":"Restricted Animal Material - Not suitable for Consumption (RAM-F2)","code":"F2","codeDescription":"F2 - Unsuitable for human consumption. Cattle exposed to imported/unknown status restricted animal material (RAM) more than 30 months earlier."},"program":{"code":"RAM","codeDescription":null}},{"status":{"name":"Restricted Animal Material - Unsuitable for Export (RAM-F3)","code":"F3","codeDescription":"F3 - Unsuitable for export to some markets. Cattle exposed to restricted animal material of Australian origin. Such cattle are unsuitable for export to prescribed export markets, and specific risk material (SRMs) must be removed at slaughter."},"program":{"code":"RAM","codeDescription":null}},{"status":{"name":"Bovine Spongiform Encephalopathy - Unsuitable for Consumption (IMPO-IM1)","code":"IM1","codeDescription":"IM1 - Not for human or animal consumption. Contact 1800 675 888. Assigned by the federal department, the States/Territories or AHA to cattle imported from a country where BSE has been diagnosed."},"program":{"code":"IMPO","codeDescription":"Imported Cattle"}},{"status":{"name":"Bovine Spongiform Encephalopathy - Import (IMPO-IM2)","code":"IM2","codeDescription":"IM2 - Imported from a country without BSE. Assigned by the States/Territories to cattle imported from a country where BSE has not been diagnosed."},"program":{"code":"IMPO","codeDescription":"Imported Cattle"}},{"status":{"name":"Johnes Disease Non-Clinical (JD-JD1)","code":"JD1","codeDescription":"Cattle determined by a State/Territory authority to be a Johne’s disease non-clinical reactor."},"program":{"code":"JD","codeDescription":"Johnes Disease"}},{"status":{"name":"Johnes Disease Clinical - Not suitable for consumption (JD-JD2)","code":"JD2","codeDescription":"JD2-JD clinical. Not for human consumption knackery only. Cattle determined by a State/Territory authority to be a Johne’s disease clinical case."},"program":{"code":"JD","codeDescription":"Johnes Disease"}},{"status":{"name":"Organochlorides Testing (OC-N1F)","code":"N1F","codeDescription":"N1F - Sample fat for OC testing. (# Domestic abattoirs may test and release test carcase and/or companion animals subject to state meat hygiene authority approval). Assigned by the States/Territories to individual cattle that have grazed on high risk OC contaminated properties or are known to or are likely to have residues >MRL."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Organochlorides Testing (OC-N1V)","code":"N1V","codeDescription":"N1V - Sample fat for OC testing. (# Domestic abattoirs may test and release test carcase and/or companion animals subject to state meat hygiene authority approval). Assigned by the States/Territories to individual cattle that have grazed on high risk OC contaminated properties or are known to or are likely to have residues >MRL. NRS will not fund testing. Commercial arrangements apply."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Organochlorides Testing (OC-N2F)","code":"N2F","codeDescription":"N2F - Sample fat for OC testing. Assigned by the State/Territory to individual cattle that have grazed on low-risk properties to monitor/check for evidence of OC contaminated and/or PMP/RMP compliance. NRS to fund testing."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Organochlorides Testing (OC-N2V)","code":"N2V","codeDescription":"N2V - Sample fat for OC testing. Assigned by the State/Territory to individual cattle that have grazed on low-risk properties to monitor/check for evidence of OC contaminated and/or PMP/RMP compliance. NRS will not fund testing. Commercial arrangements apply."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Lead Residue - Block Processing (LEAD-PB1)","code":"PB1","codeDescription":"This animal is not fit for human (or animal) consumption. Do not slaughter. Contact your local animal health authority or state food authority for further advice. Assigned by the States/Territories to cattle placed under movement restrictions due to lead residues."},"program":{"code":"LEAD","codeDescription":"Abattoirs feedlots and live exporters to establish the status of cattle scheduled for slaughter introduction or live export."}},{"status":{"name":"Lead Residue - Test (LEAD-PB2)","code":"PB2","codeDescription":"This animal is fit for human consumption. The liver and kidneys must be condemned. Contact your local animal health authority or state food authority for further advice. Assigned by the States/Territories to cattle placed under movement restrictions due to lead residues where unacceptable residues are not anticipated in carcase meat."},"program":{"code":"LEAD","codeDescription":"Abattoirs feedlots and live exporters to establish the status of cattle scheduled for slaughter introduction or live export."}},{"status":{"name":"Replaced (NLS-R1)","code":"R1","codeDescription":"Replaced device."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Police Surveillance - Stolen Cattle Reported (NLS-S)","code":"S","codeDescription":"Cattle reported to police as Stolen. Assigned at the request of the police or the States/Territories to devices carried by cattle that a producer has reported to the police as stolen."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Police Surveillance - Lost or Stolen (NLS-S1)","code":"S1","codeDescription":"Producer claim Lost or Stolen. Assigned at the request of the police or States/Territories, to devices on cattle that a producer claims were lost, or stolen but where a police report containing specific device details has not been lodged, and/or where the cattle may have strayed or are missing from a Saleyard."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Bovine tuberculosis (TB-TB1)","code":"TB1","codeDescription":"TB1 - TB inspection required. All lymph nodes - head - thorax and abdomen. Submit any granulomas for laboratory inspection. Assigned to cattle determined by States/Territories to require specific inspection procedures and laboratory granuloma submission."},"program":{"code":"TB","codeDescription":null}},{"status":{"name":"Organochlorides (OC-X)","code":"X","codeDescription":"X - Do not sell or slaughter. Contact relevant State/Territory Animal Health Authority."},"program":{"code":"OC","codeDescription":null}}],"operational":[{"status":{"name":"Inactive","code":"D1","codeDescription":"Assigned to devices that have become damaged or defective or no longer work."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Active (NLS-A)","code":"A","codeDescription":null},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Deceased (NLS-D)","code":"D","codeDescription":null},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Inactive (NLS-IA)","code":"IA","codeDescription":"Inactive Device"},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Lost (NLS-L1)","code":"L1","codeDescription":"Lost Device. Assigned at the request of the States/Territories, or by the database administrator to unused devices that producers and/or device manufacturers claim were lost or stolen."},"program":{"code":"NLS","codeDescription":"Lost prior to application."}},{"status":{"name":"Lost after attachment (NLS-L2)","code":"L2","codeDescription":"Devices Lost after attachment. Assigned by an account holder where a lost device that has been attached to cattle is found. Cattle with a device with this status can be traded or slaughtered."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Recovered (NLS-RC1)","code":"RC1","codeDescription":"Assigned to devices that have been recovered from abattoirs for re-use in RFID devices outside the NLIS (Cattle) program. RC1 status is applied when a recovered device is uploaded by the device manufacturer and the device is already deceased."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Recovered (NLS-RC2)","code":"RC2","codeDescription":"Assigned to devices that have been recovered from abattoirs for re-use in RFID devices outside the NLIS (Cattle) program. RC2 status is applied when a recovered device is uploaded by the device manufacturer and the device was not already deceased."},"program":{"code":"NLS","codeDescription":null}}],"restriction":[{"status":{"name":"Cysticercoses Bovis (Beef Measles) - Grazed Exposure","code":"CB","codeDescription":"Assigned to cattle that have grazed on land where exposure to beef measles No producer or saleyard disclosure(Cysticercosis Bovis) may have occurred, e.g. land treated with discharge from a sewerage treatment facility."},"program":{"code":"VBM","codeDescription":null}}]}}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}}},"security":[]},"options":{"summary":"Get list of device statuses Copy","deprecated":false,"description":"INTERNAL USE.","operationId":"getDeviceStatusListOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"object","properties":{"program":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"vaccination":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"residue":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"notice":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"operational":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"restriction":{"type":"array","items":{"$ref":"#/components/schemas/Status"}}},"required":["program","vaccination","residue","notice","operational","restriction"]}},"required":["category"]},"example":{"category":{"program":[{"status":{"name":"Lifetime Traceable (NLA-LT)","code":"LT","codeDescription":"Life Time Traceable"},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Moved from Non-LPA Property (LPA-NL1)","code":"NL1","codeDescription":"Assigned to devices that have moved from a non LPA PIC to an LPA A or LPA A1 PIC and have resided on the LPA A or LPA A1 PIC for less than 60 days."},"program":{"code":"LPA","codeDescription":"Market access issue - we cannot give you assurance of these animals."}},{"status":{"name":"Moved from Non-LPA Property (LPA-NL2)","code":"NL2","codeDescription":"Assigned to devices that have moved to an LPA A or LPA A1 PIC from a non LPA PIC with an OC status and have resided on the LPA A or LPA A1 PIC for less than 6 months."},"program":{"code":"LPA","codeDescription":null}},{"status":{"name":"EU Eligible (NLS-EU)","code":"EU","codeDescription":"Assigned to cattle that are eligible for the EU market."},"program":{"code":"NLS","codeDescription":null}}],"vaccination":[{"status":{"name":"Anthrax Withholding (AV-AV1)","code":"AV1","codeDescription":"AV1 - Anthrax vaccine withholding period yet to expire. Not for human consumption."},"program":{"code":"AV","codeDescription":"Assigned to cattle that have been vaccinated against anthrax. Status lapses 42 days after date of vaccination and then converts to an AV2 status. Note: Anthrax vaccine has a 42 day WHP."}},{"status":{"name":"Anthrax Vaccinated (AV-AV2)","code":"AV2","codeDescription":"Assigned to cattle that have been vaccinated against anthrax more than 42 days earlier i.e. the WHP has expired."},"program":{"code":"AV","codeDescription":"Assigned to cattle that have been vaccinated against anthrax more than 42 days earlier, i.e. the WHP has expired."}},{"status":{"name":"Bovine Brucellosis (BBV-BB)","code":"BB","codeDescription":"Assigned to cattle that have been vaccinated against bovine brucellosis and are not suitable or human consumption."},"program":{"code":"BBV","codeDescription":null}},{"status":{"name":"Bluetongue Virus Vaccination (BTH-BTV)","code":"BTV","codeDescription":"Assigned to cattle that have been vaccinated against bluetongue virus and are suitable for human consumption."},"program":{"code":"BTH","codeDescription":null}},{"status":{"name":"Bluetongue Virus Restricted (BTV-BTV)","code":"BTV","codeDescription":"Assigned to cattle that have been vaccinated against Bluetongue Virus and are not suitable for human consumption."},"program":{"code":"BTV","codeDescription":"Bluetongue Virus"}},{"status":{"name":"Johnes Disease Vaccination (JD-JDV)","code":"JDV","codeDescription":"Cattle vaccinated against bovine Johnes disease."},"program":{"code":"JD","codeDescription":"Johnes Disease"}}],"residue":[{"status":{"name":"Cysticercus Bovis (Beef Measles) - Grazed Exposure (CB-CBA)","code":"CBA","codeDescription":"Assigned to cattle that reside on a PIC assigned a CBP status which indicates they have grazed on high-risk land where exposure to beef measles (C. bovis) may have occurred, i.e., land treated with recycled water containing human effluent from a sewerage treatment facility not adequately treated."},"program":{"code":"CB","codeDescription":"Cysticercus Bovis"}},{"status":{"name":"May have Accessed Cotton Trash (CT-CTA)","code":"CTA","codeDescription":"Assigned to cattle that have or may have accessed cotton trash."},"program":{"code":"CT","codeDescription":"Cotton Trash"}},{"status":{"name":"Antibacterial Residue Testing (NARM-K1F)","code":"K1F","codeDescription":"K1F - Collect urine and kidney for antibiotic residues. Assigned by States/Territories to cattle where antibacterial residue testing is required. NRS to fund testing."},"program":{"code":"NARM","codeDescription":null}},{"status":{"name":"Antibacterial Residue Testing (NARM-K1V)","code":"K1V","codeDescription":"K1V - Collect urine and kidney for antibiotic residues. Assigned by States/Territories to cattle where antibacterial residue testing is required. NRS will not fund testing. Commercial arrangements apply."},"program":{"code":"NARM","codeDescription":null}},{"status":{"name":"Antibacterial Residue Restriction (NARM-K3)","code":"K3","codeDescription":"K3 - carcase must be condemned. Assigned by treating veterinary surgeon to cattle that potentially have antibacterial residues in edible tissue. APVMA permits for the use of streptomycin products require NLIS ID or equivalent. Allocation of this status to treated cattle facilitates abattoir disclosure."},"program":{"code":"NARM","codeDescription":null}}],"notice":[{"status":{"name":"Non-EU Breeding Cattle (NLS-B)","code":"B","codeDescription":"Assigned to non EU breeding cattle that have been introduced onto an EU property."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"State Surveillance (DOI-DN1)","code":"DN1","codeDescription":"Devices of interest to states and territories for surveillance of cattle movements."},"program":{"code":"DOI","codeDescription":"Device Of Interest"}},{"status":{"name":"State Surveillance - Not Fit For Consumption (DOI-DN2)","code":"DN2","codeDescription":"Devices of interest to states and territories for surveillance of cattle movements. Animal associated with this with this may not be fit for human consumption."},"program":{"code":"DOI","codeDescription":"Device Of Interest"}},{"status":{"name":"Restricted Animal Material - Domestic Consumption Only (RAM-F1)","code":"F1","codeDescription":"Cattle exposed to imported/unknown status restricted animal material (RAM) within the past 30 months. Only suitable for domestic consumption if slaughtered within 30 months of exposure, and SRMs must be removed at slaughter. If slaughtered >30months after exposure to RAM, carcase not suitable for human consumption or production of MBM."},"program":{"code":"RAM","codeDescription":null}},{"status":{"name":"Restricted Animal Material - Not suitable for Consumption (RAM-F2)","code":"F2","codeDescription":"F2 - Unsuitable for human consumption. Cattle exposed to imported/unknown status restricted animal material (RAM) more than 30 months earlier."},"program":{"code":"RAM","codeDescription":null}},{"status":{"name":"Restricted Animal Material - Unsuitable for Export (RAM-F3)","code":"F3","codeDescription":"F3 - Unsuitable for export to some markets. Cattle exposed to restricted animal material of Australian origin. Such cattle are unsuitable for export to prescribed export markets, and specific risk material (SRMs) must be removed at slaughter."},"program":{"code":"RAM","codeDescription":null}},{"status":{"name":"Bovine Spongiform Encephalopathy - Unsuitable for Consumption (IMPO-IM1)","code":"IM1","codeDescription":"IM1 - Not for human or animal consumption. Contact 1800 675 888. Assigned by the federal department, the States/Territories or AHA to cattle imported from a country where BSE has been diagnosed."},"program":{"code":"IMPO","codeDescription":"Imported Cattle"}},{"status":{"name":"Bovine Spongiform Encephalopathy - Import (IMPO-IM2)","code":"IM2","codeDescription":"IM2 - Imported from a country without BSE. Assigned by the States/Territories to cattle imported from a country where BSE has not been diagnosed."},"program":{"code":"IMPO","codeDescription":"Imported Cattle"}},{"status":{"name":"Johnes Disease Non-Clinical (JD-JD1)","code":"JD1","codeDescription":"Cattle determined by a State/Territory authority to be a Johne’s disease non-clinical reactor."},"program":{"code":"JD","codeDescription":"Johnes Disease"}},{"status":{"name":"Johnes Disease Clinical - Not suitable for consumption (JD-JD2)","code":"JD2","codeDescription":"JD2-JD clinical. Not for human consumption knackery only. Cattle determined by a State/Territory authority to be a Johne’s disease clinical case."},"program":{"code":"JD","codeDescription":"Johnes Disease"}},{"status":{"name":"Organochlorides Testing (OC-N1F)","code":"N1F","codeDescription":"N1F - Sample fat for OC testing. (# Domestic abattoirs may test and release test carcase and/or companion animals subject to state meat hygiene authority approval). Assigned by the States/Territories to individual cattle that have grazed on high risk OC contaminated properties or are known to or are likely to have residues >MRL."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Organochlorides Testing (OC-N1V)","code":"N1V","codeDescription":"N1V - Sample fat for OC testing. (# Domestic abattoirs may test and release test carcase and/or companion animals subject to state meat hygiene authority approval). Assigned by the States/Territories to individual cattle that have grazed on high risk OC contaminated properties or are known to or are likely to have residues >MRL. NRS will not fund testing. Commercial arrangements apply."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Organochlorides Testing (OC-N2F)","code":"N2F","codeDescription":"N2F - Sample fat for OC testing. Assigned by the State/Territory to individual cattle that have grazed on low-risk properties to monitor/check for evidence of OC contaminated and/or PMP/RMP compliance. NRS to fund testing."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Organochlorides Testing (OC-N2V)","code":"N2V","codeDescription":"N2V - Sample fat for OC testing. Assigned by the State/Territory to individual cattle that have grazed on low-risk properties to monitor/check for evidence of OC contaminated and/or PMP/RMP compliance. NRS will not fund testing. Commercial arrangements apply."},"program":{"code":"OC","codeDescription":null}},{"status":{"name":"Lead Residue - Block Processing (LEAD-PB1)","code":"PB1","codeDescription":"This animal is not fit for human (or animal) consumption. Do not slaughter. Contact your local animal health authority or state food authority for further advice. Assigned by the States/Territories to cattle placed under movement restrictions due to lead residues."},"program":{"code":"LEAD","codeDescription":"Abattoirs feedlots and live exporters to establish the status of cattle scheduled for slaughter introduction or live export."}},{"status":{"name":"Lead Residue - Test (LEAD-PB2)","code":"PB2","codeDescription":"This animal is fit for human consumption. The liver and kidneys must be condemned. Contact your local animal health authority or state food authority for further advice. Assigned by the States/Territories to cattle placed under movement restrictions due to lead residues where unacceptable residues are not anticipated in carcase meat."},"program":{"code":"LEAD","codeDescription":"Abattoirs feedlots and live exporters to establish the status of cattle scheduled for slaughter introduction or live export."}},{"status":{"name":"Replaced (NLS-R1)","code":"R1","codeDescription":"Replaced device."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Police Surveillance - Stolen Cattle Reported (NLS-S)","code":"S","codeDescription":"Cattle reported to police as Stolen. Assigned at the request of the police or the States/Territories to devices carried by cattle that a producer has reported to the police as stolen."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Police Surveillance - Lost or Stolen (NLS-S1)","code":"S1","codeDescription":"Producer claim Lost or Stolen. Assigned at the request of the police or States/Territories, to devices on cattle that a producer claims were lost, or stolen but where a police report containing specific device details has not been lodged, and/or where the cattle may have strayed or are missing from a Saleyard."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Bovine tuberculosis (TB-TB1)","code":"TB1","codeDescription":"TB1 - TB inspection required. All lymph nodes - head - thorax and abdomen. Submit any granulomas for laboratory inspection. Assigned to cattle determined by States/Territories to require specific inspection procedures and laboratory granuloma submission."},"program":{"code":"TB","codeDescription":null}},{"status":{"name":"Organochlorides (OC-X)","code":"X","codeDescription":"X - Do not sell or slaughter. Contact relevant State/Territory Animal Health Authority."},"program":{"code":"OC","codeDescription":null}}],"operational":[{"status":{"name":"Inactive","code":"D1","codeDescription":"Assigned to devices that have become damaged or defective or no longer work."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Active (NLS-A)","code":"A","codeDescription":null},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Deceased (NLS-D)","code":"D","codeDescription":null},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Inactive (NLS-IA)","code":"IA","codeDescription":"Inactive Device"},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Lost (NLS-L1)","code":"L1","codeDescription":"Lost Device. Assigned at the request of the States/Territories, or by the database administrator to unused devices that producers and/or device manufacturers claim were lost or stolen."},"program":{"code":"NLS","codeDescription":"Lost prior to application."}},{"status":{"name":"Lost after attachment (NLS-L2)","code":"L2","codeDescription":"Devices Lost after attachment. Assigned by an account holder where a lost device that has been attached to cattle is found. Cattle with a device with this status can be traded or slaughtered."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Recovered (NLS-RC1)","code":"RC1","codeDescription":"Assigned to devices that have been recovered from abattoirs for re-use in RFID devices outside the NLIS (Cattle) program. RC1 status is applied when a recovered device is uploaded by the device manufacturer and the device is already deceased."},"program":{"code":"NLS","codeDescription":null}},{"status":{"name":"Recovered (NLS-RC2)","code":"RC2","codeDescription":"Assigned to devices that have been recovered from abattoirs for re-use in RFID devices outside the NLIS (Cattle) program. RC2 status is applied when a recovered device is uploaded by the device manufacturer and the device was not already deceased."},"program":{"code":"NLS","codeDescription":null}}],"restriction":[{"status":{"name":"Cysticercoses Bovis (Beef Measles) - Grazed Exposure","code":"CB","codeDescription":"Assigned to cattle that have grazed on land where exposure to beef measles No producer or saleyard disclosure(Cysticercosis Bovis) may have occurred, e.g. land treated with discharge from a sewerage treatment facility."},"program":{"code":"VBM","codeDescription":null}}]}}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}}},"security":[]}},"/public/device/v1/status/update":{"post":{"summary":"Add/Modify/Delete device(s) status(es)","deprecated":false,"description":"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).","operationId":"updateDeviceStatus","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"properties":{"statuses":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"comments":{"type":"string"}},"required":["action","status","statusCode","category","programCode","effectiveDate","expiryDate"]}},"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n\n"}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is a 16 character alphanumeric\n\n"}},"required":["nlisId"]}]}},"required":["statuses","EID"],"$ref":"#/components/schemas/UpdateDeviceStatus"}},"example":[{"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."}]}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"updatedDevices":{"type":"array","items":{"properties":{"statuses":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"comments":{"type":"string"}},"required":["action","status","statusCode","category","programCode","effectiveDate","expiryDate"]}},"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n\n"}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is a 16 character alphanumeric\n\n"}},"required":["nlisId"]}]}},"required":["statuses","EID"],"$ref":"#/components/schemas/UpdateDeviceStatus"}}},"required":["receiptId","updatedDevices"]},"example":{"receiptId":"adhfoa90sd78fa","updatedDevices":[{"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."}]}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"400":{"description":"Invalid sample supplied","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"404":{"description":"Sample not found","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Add/Modify/Delete device(s) status(es) Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"updateDeviceStatusOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"updatedDevices":{"type":"array","items":{"type":"object","properties":{"rfid":{"type":"string"},"nlisId":{"type":"string"},"statuses":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"comments":{"type":"string"}}}}}}}},"required":["receiptId","updatedDevices"]},"example":{"receiptId":"adhfoa90sd78fa","updatedDevices":[{"rfid":"982 123489467678","nlisId":"3MGJE153XBJ00611","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."}]}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"400":{"description":"Invalid sample supplied","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"404":{"description":"Sample not found","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"headers":{}}},"security":[]}},"/public/device/v1/status":{"post":{"summary":"Search for a single/list of device status(es) using either an RFID or a NLIS ID","deprecated":false,"description":"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.","operationId":"searchDeviceStatus","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. Optional if object is a non-NLIS device","minLength":16,"maxLength":16}},"required":["nlisId"]}]}},"example":[{"rfid":"982 123489467678"},{"rfid":"982 123489467679"}]}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"devices":{"type":"array","items":{"properties":{"statuses":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"comments":{"type":"string"}},"required":["action","status","statusCode","category","programCode","effectiveDate","expiryDate"]}},"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n\n"}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is a 16 character alphanumeric\n\n"}},"required":["nlisId"]}]}},"required":["statuses","EID"],"$ref":"#/components/schemas/UpdateDeviceStatus"}}},"required":["receiptId","devices"]},"example":{"receiptId":"adhfoa90sd78fa","devices":[{"EID":{"rfid":"982 123489467678"},"statuses":[{"status":"Anthrax Withholding (AV-AV1)","statusCode":"AV1","category":"Vaccination","programCode":"AV","effectiveDate":"01/01/2025","expiryDate":"01/03/2025"}]},{"EID":{"rfid":"982 123489467679"},"statuses":[{"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."}]}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Search for a single/list of device status(es) using either an RFID or a NLIS ID Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"searchDeviceStatusOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"devices":{"type":"array","items":{"type":"object","properties":{"rfid":{"type":"string"},"nlisId":{"type":"string"},"statuses":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"comments":{"type":"string"}},"required":["status","statusCode","category","programCode","effectiveDate","expiryDate","comments"]}}},"required":["rfid","nlisId","statuses"]}}},"required":["receiptId","devices"]},"example":{"receiptId":"adhfoa90sd78fa","devices":[{"rfid":"982 123489467678","nlisId":"3MGJE153XBJ00611","statuses":[{"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."}]},{"rfid":"982 123489467679","nlisId":"3MGJE153XBJ00612","statuses":[{"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."}]}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["detail"]}}},"headers":{}}},"security":[]}},"/public/device/v1/search":{"post":{"summary":"Search for a list of device(s)","deprecated":false,"description":"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.","operationId":"searchDevice","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}},{"name":"outputFields","in":"header","description":"A comma-separated list of the Device data fields to return from the search. If blank, it will return all Device data.","required":true,"example":"devices.EID.rfid","schema":{"type":"string"}},{"name":"sortBy","in":"header","description":"The field to sort the output list by.","required":false,"example":"","schema":{"type":"string"}},{"name":"sortOrder","in":"header","description":"The order to return the list based on sortBy i.e. ascend means alphabetical/numerical.","required":false,"example":"","schema":{"type":"string","enum":["asc","desc"]}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"manufacturerCode":{"type":"string"},"deviceType":{"type":"object","properties":{"code":{"type":"string"},"colorCode":{"type":"string"}},"description":"Optional if object is a non-NLIS device"},"EID":{"type":"array","description":"An array of EID objects, where each object contains either: - `rfid`: A 15–16 digit number - `nlisId`: A 16-character alphanumeric value\n","items":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}}},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. Optional if object is a non-NLIS device","minLength":16,"maxLength":16}}}]}},"productCode":{"type":"string","description":"Product codes uniquely identify the type of identification device, including its specific characteristics such as type, colour, and usage."},"currentPic":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"picOfIssue":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"species":{"type":"array","items":{"type":"string"}},"lifetimeTraceability":{"type":"boolean"},"issueDate":{"type":"array","items":{"type":"string"},"minItems":2,"maxItems":2},"managementEarTagId":{"type":"string"},"isNLISDevice":{"type":"boolean","description":"True if device object is an NLIS device. False if device object is a non NLIS device."},"statuses":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"lastAuditDate":{"type":"string"},"auditFrequency":{"type":"string"}}}}}},"example":{"currentPic":"QZ222336"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"devices":{"type":"array","items":{"$ref":"#/components/schemas/DeviceSearch"}}},"required":["receiptId","devices"]},"example":{"receiptId":"8734wy9r83wieuh","devices":[{"EID":{"rfid":"982 123489467678"}},{"EID":{"rfid":"982 234567891234"}},{"EID":{"rfid":"982 345678912345"}}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Search for a list of device(s) Copy","deprecated":false,"description":"INTERNAL USE.","operationId":"searchDeviceOpt","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}},{"name":"outputFields","in":"header","description":"A comma-separated list of the Device data fields to return from the search. If blank, it will return all Device data.","required":true,"example":"devices.EID.rfid","schema":{"type":"string"}},{"name":"sortBy","in":"header","description":"The field to sort the output list by.","required":false,"example":"","schema":{"type":"string"}},{"name":"sortOrder","in":"header","description":"The order to return the list based on sortBy i.e. ascend means alphabetical/numerical.","required":false,"example":"","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"","headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]}},"/public/device/v1/replace":{"put":{"summary":"Replace NLIS device","deprecated":false,"description":"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).","operationId":"replaceDevice","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"oldDevice":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. ","minLength":16,"maxLength":16}},"required":["nlisId"]}]},"newDevice":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value.\n","minLength":16,"maxLength":16}},"required":["nlisId"]}]},"replacementDate":{"type":"string","description":"Confirms the date on which the NLIS Device was replaced"},"replacementReason":{"type":"string","description":"Allows users to capture more details as to the cause of the device being lost or damaged"}},"required":["oldDevice","newDevice","replacementDate"]}},"example":[{"oldDevice":{"rfid":"982 123489467678"},"newDevice":{"nlisId":"3MGJE153XBJ00612"},"replacementDate":"01-01-2025","replacementReason":"Missing device."}]}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"replacedDevices":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n"}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value.\n"}},"required":["nlisId"]}]}}},"required":["receiptId","replacedDevices"]},"example":{"receiptId":"i345iutyrowtyegt43wh","replacedDevices":[{"nlisId":"3MGJE153XBJ00612"}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Replace NLIS/non-NLIS device Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"replaceDeviceOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"replacedDevices":{"type":"array","items":{"type":"object","properties":{"rfid":{"type":"string"},"nlisId":{"type":"string"}},"required":["rfid","nlisId"]}}},"required":["receiptId","replacedDevices"]},"example":{"receiptId":"i345iutyrowtyegt43wh","replacedDevices":[{"rfid":"982 123489467679","nlisId":"3MGJE153XBJ00612"}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["detail"]}}},"headers":{}}},"security":[]}},"/public/device/v1/latest":{"post":{"summary":"Search for manufacturer's last registered device","deprecated":false,"description":"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.","operationId":"getLatestDevice","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"manufacturerCode":{"type":"string"},"pic":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"manufacturedDate":{"type":"string"},"species":{"type":"string","enum":["cattle","sheep","goats","camelids","pigs","buffalos","other"]}},"required":["manufacturerCode","pic","manufacturedDate","species"]},"example":{"manufacturerCode":"237845692","pic":"56TH9381PR","manufacturedDate":"01-01-2025","species":"Cattle"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"lastRegisteredDevice":{"type":"object","properties":{"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16},"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value.\n","minLength":16,"maxLength":16}},"required":["rfid","nlisId"]}]},"manufacturerCode":{"type":"string"},"pic":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"manufacturedDate":{"type":"string"},"species":{"type":"string"},"receiptId":{"type":"string"}},"required":["manufacturerCode","pic","manufacturedDate","species","receiptId","EID"]}},"required":["receiptId","lastRegisteredDevice"]},"example":{"receiptId":"adhfoa90sd78fa","lastRegisteredDevice":{"EID":{"rfid":"982 123489467678","nlisId":"3MGJE153XBJ00611"},"manufacturerCode":"2774527","pic":"23PT24FR","manufacturedDate":"01-01-2025","species":"Cattle","receiptId":"5h3g5k345e"}}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Search for manufacturer's last registered device Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"getLatestDeviceOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"lastRegisteredDevice":{"type":"object","properties":{"rfid":{"type":"string"},"nlisId":{"type":"string"},"manufacturerCode":{"type":"string"},"pic":{"type":"string"},"manufacturedDate":{"type":"string"},"species":{"type":"string"},"receiptId":{"type":"string"}},"required":["rfid","nlisId","manufacturerCode","pic","manufacturedDate","species","receiptId"]}},"required":["receiptId","lastRegisteredDevice"]},"example":{"receiptId":"adhfoa90sd78fa","lastRegisteredDevice":{"rfid":"982 123489467678","nlisId":"3MGJE153XBJ00611","manufacturerCode":"2774527","pic":"23PT24FR","manufacturedDate":"01-01-2025","species":"Cattle","receiptId":"5h3g5k345e"}}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["detail"]}}},"headers":{}}},"security":[]}},"/public/device/v1/reallocate":{"post":{"summary":"Reallocate unused device(s) to a new PIC","deprecated":false,"description":"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).","operationId":"transferUnusedDevice","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReallocateDeviceRequest"}},"example":[{"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."}]}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"reallocatedDevices":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","minLength":15,"maxLength":16,"description":"The RFID is 16 character number\n"}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value.\n"}},"required":["nlisId"]}]}}},"required":["receiptId","reallocatedDevices"]},"example":{"receiptId":"3948rj9304jr23","reallocatedDevices":[{"nlisId":"3MGJE153XBJ00611"},{"nlisId":"3MGJE153XBJ00612"}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Reallocate unused device(s) to a new PIC Copy","deprecated":false,"description":"INTERNAL USE. ","operationId":"transferUnusedDeviceOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"transferredDevices":{"type":"array","items":{"type":"string"}}},"required":["receiptId","transferredDevices"]},"example":{"receiptId":"qk43gh513hgh","transferredDevices":["982 123489467678","982 123489467679"]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["detail"]}}},"headers":{}}},"security":[]}},"/public/device/v1/check-unique":{"post":{"summary":"Check if a single/list of device using RFID or NLIS ID are unique","deprecated":false,"description":"This API allows the invoker to get the uniquess of a single/list of device record(s). The route takes a request containing device RFID(s)/NLIS ID(s) and returns the non-unique device(s) as a response if it exists.","operationId":"checkUnique","tags":["Device"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EidSchema"}},"example":[{"EID":{"rfid":"982 123489467679"}}]}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"nonUniqueDevices":{"type":"array","items":{"$ref":"#/components/schemas/EidSchema"}}},"required":["receiptId","nonUniqueDevices"]},"example":{"receiptId":"adhfoa90sd78fa","nonUniqueDevices":[{"EID":{"rfid":"982 123489467679"}}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"error":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["error","details"]}}},"headers":{}}},"security":[]},"options":{"summary":"Check if a single/list of device using RFID or NLIS ID are unique","deprecated":false,"description":"INTERNAL USE","operationId":"checkUniqueOpt","tags":["Miscellaneous"],"parameters":[{"name":"correlationId","in":"header","description":"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.","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"nonUniqueDevices":{"type":"array","items":{"$ref":"#/components/schemas/EidSchema"}}},"required":["receiptId"]},"example":{"receiptId":"adhfoa90sd78fa","nonUniqueDevices":[{"EID":{"rfid":"982 123489467679","nlisId":"3MGJE153XBJ00612"}},{"EID":{"rfid":"982 123489467679","nlisId":"3MGJE153XBJ00613"}}]}}},"headers":{"correlationId":{"example":"","required":true,"description":"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.","schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{}}}},"headers":{}},"422":{"description":"","content":{"application/json":{"schema":{"title":"","type":"object","properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"required":["detail"]}}},"headers":{}}},"security":[]}}},"components":{"schemas":{"IssueNLIS":{"type":"object","properties":{"manufacturerCode":{"type":"string"},"deviceType":{"type":"object","properties":{"code":{"type":"string"},"colorCode":{"type":"string"}},"required":["code","colorCode"],"description":"Only applies when object is a NLIS device"},"EID":{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is a 16 character number","minLength":15,"maxLength":16},"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value","minLength":16,"maxLength":16}},"required":["rfid","nlisId"]},"productCode":{"type":"string","description":"Product codes uniquely identify the type of identification device, including its specific characteristics such as type, colour, and usage."},"pic":{"type":"string"},"issueDate":{"type":"string"},"managementEarTagId":{"type":"string"},"isNLISDevice":{"type":"boolean","description":"True in this case since device object is an NLIS device. ","default":true}},"required":["manufacturerCode","deviceType","pic","issueDate","isNLISDevice","EID","productCode"]},"IssueNonNLIS":{"type":"object","properties":{"manufacturerCode":{"type":"string"},"EID":{"type":"object","properties":{"rfid":{"type":"string","minLength":15,"maxLength":16,"description":"The RFID is a 16 character number"}},"required":["rfid"]},"issueDate":{"type":"string"},"managementEarTagId":{"type":"string"},"isNLISDevice":{"type":"boolean","description":"False in this case as device object is a non NLIS device.","default":false},"tagDescription":{"type":"string"}},"required":["manufacturerCode","issueDate","isNLISDevice","EID"]},"Device":{"type":"object","properties":{"manufacturerCode":{"type":"string"},"deviceType":{"type":"object","properties":{"code":{"type":"string"},"colorCode":{"type":"string"}},"required":["code","colorCode"],"description":"Optional if object is a non-NLIS device"},"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n"}},"required":["rfid"]},{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n"},"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. Optional if object is a non-NLIS device"}},"required":["rfid","nlisId"]}]},"productCode":{"type":"string","description":"Product codes uniquely identify the type of identification device, including its specific characteristics such as type, colour, and usage."},"pic":{"type":"string"},"issueDate":{"type":"string"},"managementEarTagId":{"type":"string"},"isNLISDevice":{"type":"boolean","description":"True if device object is an NLIS device. False if device object is a non NLIS device."},"statuses":{"type":"array","items":{"$ref":"#/components/schemas/DeviceStatus"}}},"required":["manufacturerCode","deviceType","productCode","pic","issueDate","isNLISDevice","statuses","EID"]},"DeviceStatus":{"type":"object","properties":{"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"lastAuditDate":{"type":"string"},"auditFrequency":{"type":"string"}},"required":["status","statusCode","category","lastAuditDate","auditFrequency","expiryDate","programCode","effectiveDate"]},"DeleteDeviceRequest":{"type":"object","properties":{"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is a 16 character alphanumeric","minLength":16,"maxLength":16}},"required":["nlisId"]}]},"comments":{"type":"string"}},"required":["EID"]},"Status":{"type":"object","properties":{"status":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"codeDescription":{"type":"string"}},"required":["name","code","codeDescription"]},"program":{"type":"object","properties":{"code":{"type":"string"},"codeDescription":{"type":"string"}},"required":["code","codeDescription"]}},"required":["status","program"]},"ReallocateDeviceRequest":{"type":"object","properties":{"fromPic":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"toPic":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"reallocateEffectiveDate":{"type":"string"},"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value.\n","minLength":16,"maxLength":16}},"required":["nlisId"]}]},"comments":{"type":"string"}},"required":["fromPic","toPic","reallocateEffectiveDate","EID"]},"Livestock":{"type":"object","properties":{"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. Optional if object is a non-NLIS device","minLength":16,"maxLength":16}},"required":["nlisId"]}]},"pic":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"applicationDate":{"type":"string"},"species":{"type":"string","enum":["cattle","sheep","goats","camelids","pigs","buffalos","other"]},"managementEarTagId":{"type":"string"},"dentition":{"type":"integer"}},"required":["pic","applicationDate","species","EID"]},"DeathRegister":{"type":"object","properties":{"dateOfDeath":{"type":"string"},"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. Optional if object is a non-NLIS device","minLength":16,"maxLength":16}},"required":["nlisId"]}]},"picOfDeath":{"type":"string","pattern":"^[A-Z0-9]{8}$"},"causeOfDeath":{"type":"string","enum":["Injury","Natural Causes","Birthing Complications","Euthenasia","Unknown","Other"]}},"required":["dateOfDeath","picOfDeath","EID"]},"UpdateDeviceStatus":{"type":"object","properties":{"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is a 16 character alphanumeric\n\n","minLength":16,"maxLength":16}},"required":["nlisId"]}]},"statuses":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"comments":{"type":"string"}},"required":["action","status","statusCode","category","programCode","effectiveDate","expiryDate"]}}},"required":["statuses","EID"]},"DeviceSearch":{"type":"object","additionalProperties":false,"properties":{"manufacturerCode":{"type":"string"},"deviceType":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string"},"colorCode":{"type":"string"}}},"EID":{"type":"array","description":"An array of EID objects, where each object contains either: - `rfid`: A 15–16 digit number - `nlisId`: A 16-character alphanumeric value\n","items":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}}},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. Optional if object is a non-NLIS device","minLength":16,"maxLength":16}}}]}},"productCode":{"type":"string","description":"Product codes uniquely identify the type of identification\n    device, including its specific characteristics such as\n    type, colour, and usage."},"currentPIC":{"type":"string"},"picOfIssue":{"type":"string"},"species":{"type":"array","items":{"type":"string"}},"lifetimeTraceability":{"type":"boolean"},"issueDate":{"type":"array","items":{"type":"string","minItems":2,"maxItems":2}},"managementEarTagId":{"type":"string"},"isNLISDevice":{"type":"boolean","description":"True if device object is an NLIS device. False if device object is a non NLIS device."},"statuses":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string"},"statusCode":{"type":"string"},"category":{"type":"string"},"programCode":{"type":"string"},"effectiveDate":{"type":"string"},"expiryDate":{"type":"string"},"lastAuditDate":{"type":"string"},"auditFrequency":{"type":"string"}}}}}},"DeviceSearchRequest":{"type":"object","description":"Device Search request for searching device(s)","properties":{"nlisId":{"type":"string","description":"The NLISID consists of 15 or 16 alphanumeric characters.."},"rfid":{"type":"string","description":"The RFID consists of 16 numerical characters."}}},"HTTPValidationError":{"required":["details"],"properties":{"details":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"field":{"type":"string","title":"Message"},"message":{"type":"string","title":"Error Type"}},"type":"object","required":["field","message"],"title":"ValidationError"},"EidSchema":{"type":"object","properties":{"EID":{"oneOf":[{"type":"object","properties":{"rfid":{"type":"string","description":"The RFID is 16 character number\n","minLength":15,"maxLength":16}},"required":["rfid"]},{"type":"object","properties":{"nlisId":{"type":"string","description":"The NLISID is 16 character alphanumeric value. ","minLength":16,"maxLength":16}},"required":["nlisId"]}]}}}}}}
```
