---
title: "Issue a single/list of new device(s)"
url: "https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2/operations/registerDevice"
---

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

# Issue a single/list of new device(s)

`POST` `/public/device/v1/register/device`

Operation ID: `registerDevice`

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).

## 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` - OK
- `403` - Forbidden
- `404` - Sample not found
- `422` - Validation Error

## 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/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
                              minLength: 15
                              maxLength: 16
                          required:
                            - rfid
                        - type: object
                          properties:
                            rfid:
                              type: string
                              description: |
                                The RFID is 16 character number
                              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: []
security: []
components:
  schemas:
    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
    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
    ValidationError:
      properties:
        field:
          type: string
          title: Message
        message:
          type: string
          title: Error Type
      type: object
      required:
        - field
        - message
      title: ValidationError
```
