---
title: "Search for a single/list of device status(es) using either an RFID or a NLIS ID"
url: "https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2/operations/searchDeviceStatus"
---

> Full API specification: https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2.md

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

`POST` `/public/device/v1/status`

Operation ID: `searchDeviceStatus`

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.

## Header parameters

- `correlationId` (string, required) - 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.

## Request body

Content types: `application/json`

## Responses

- `200`
- `404`
- `422`

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Device Public
  version: v1.0.0
servers:
  - url: https://7d40e2d8b1.gateways.konggateway.com
paths:
  /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

                              required:
                                - rfid
                            - type: object
                              properties:
                                nlisId:
                                  type: string
                                  description: |+
                                    The NLISID is a 16 character alphanumeric

                              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: []
security: []
components:
  schemas:
    UpdateDeviceStatus:
      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
        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
    ValidationError:
      properties:
        field:
          type: string
          title: Message
        message:
          type: string
          title: Error Type
      type: object
      required:
        - field
        - message
      title: ValidationError
```
