---
title: "Check if a single/list of device using RFID or NLIS ID are unique"
url: "https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2/operations/checkUnique"
---

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

# Check if a single/list of device using RFID or NLIS ID are unique

`POST` `/public/device/v1/check-unique`

Operation ID: `checkUnique`

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.

## 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/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: []
security: []
components:
  schemas:
    EidSchema:
      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 16 character alphanumeric value. "
                  minLength: 16
                  maxLength: 16
              required:
                - nlisId
    ValidationError:
      properties:
        field:
          type: string
          title: Message
        message:
          type: string
          title: Error Type
      type: object
      required:
        - field
        - message
      title: ValidationError
```
