LUIS

GET /v#/Tags

API Specification

API ComponentDetails
API NameTags
Description and suggested purposeReturn Tag Details
Interface Type and expected response rateRESTful, NEAR realtime
HTTP methodGET
URLhttps://luispublic-web.azurewebsites.net/Api/Tags
Direction2-Way
Frequency of InteractionAd hoc
Request DefinitionSee below

Request Definition

FieldMandatoryTypeDescriptionExample

Response Example

{
  "Printed_Tag": "string",
  "Link_Tag": "string",
  "Visual_Tag": "string",
  "CPH": "string",
  "Animal_No": 0,
  "Country": "string",
  "Herd_Ref": "string",
  "Species_Id": "string",
  "HasEID": true,
  "HasGBTag": true,
  "HasGBSuffix": true,
  "Order_Status": "string",
  "HasInternal": true,
  "ExpectedOrderStatus": "string",
  "Tags": [
    {
      "Replica_Count": 0,
      "Tag_Name": "string",
      "Tag_EID": true,
      "Tag_Primary": true,
      "Manufacturers_Code": "string",
      "Tag_Slaughter": true,
      "Tag_Class": "string"
    }
  ]
}

Response Definition

FieldTypeDescriptionExample
Printed_TagstringThe printed representation of the tag"UK160131100033"
Link_TagstringLinked tag identifier, if applicable"UK160131100034"
Visual_TagstringVisual tag representation"UK160131100035"
CPHstringCounty/Parish/Holding reference"08/205/8000"
Animal_NointegerInternal animal number0
CountrystringCountry code or name""
Herd_RefstringHerd reference number"666666"
Species_IdstringSpecies identifier (e.g., C for cattle)"C"
HasEIDbooleanIndicates if the tag has EIDtrue
HasGBTagbooleanIndicates if the tag includes a GB identifiertrue
HasGBSuffixbooleanIndicates if the tag includes a GB suffixtrue
Order_StatusstringCurrent order status for the tag""
HasInternalbooleanIndicates if the tag is internaltrue
ExpectedOrderStatusstringExpected order status""
Tagsarray of objectsList of tag details[...]

Tags[] Object

FieldTypeDescriptionExample
Replica_CountintegerNumber of replicas for this tag0
Tag_NamestringName of the tag"Vis Flex 1"
Tag_EIDbooleanIndicates if the tag is an EID tagtrue
Tag_PrimarybooleanIndicates if the tag is a primary tagtrue
Manufacturers_CodestringManufacturer's code for the tag"14"
Tag_SlaughterbooleanIndicates if the tag is for slaughter animalstrue
Tag_ClassstringClassification of the tag"Visual"

Error Codes

Error CodeDescriptionComments
200Success
400Bad Request
404Not Found

Comments: None

GET /v#/Tags/next-allocated/{c}/{p}/{h}/{herd}/{species}

API Specification

API ComponentDetails
API NameNext Allocated Tag (with Species)
Description and suggested purposeReturns the next allocated tag for a given keeper, herd, and species.
Interface Type and expected response rateRESTful, NEAR realtime
HTTP methodGET
URLhttps://luispublic-web.azurewebsites.net/Api/Tags/next-allocated/{c}/{p}/{h}/{herd}/{species}
Direction2-Way
Frequency of InteractionAd hoc
Request DefinitionSee below

Request Definition

FieldMandatoryTypeDescriptionExample
cMstringCounty reference number06
pMstringParish reference number036
hMstringHolding reference number0006
herdMstringHerd Reference160131
speciesMstringSpecies codeC
quantityint10
hasEidstringTrue

Response Example

{
  "AllocatedTags": [
    {
      "StartTag": {
        "AnimalNumber": 1,
        "HasEid": false,
        "PrintedTag": "",
        "Species": "S"
      },
      "EndTag": {
        "AnimalNumber": 10,
        "HasEid": false,
        "PrintedTag": "",
        "Species": "S"
      },
      "TagCount": 10,
      "Range": "1 - 10",
      "Species": "S",
      "Source": "New",
      "HasEid": false
    }
  ],
  "HerdReference": "561766",
  "Species": "S",
  "TagCount": 10,
  "Range": "1 - 10"
}

Response Definition

FieldTypeDescriptionExample
StartTagobjectStart of the tag range...
StartTag.AnimalNumberintegerStarting animal number in the range1
StartTag.HasEidbooleanIndicates if the starting tag has EIDfalse
StartTag.PrintedTagstringPrinted representation of the starting tag""
StartTag.SpeciesstringSpecies identifier"S"
EndTagobjectEnd of the tag range...
EndTag.AnimalNumberintegerEnding animal number in the range10
EndTag.HasEidbooleanIndicates if the ending tag has EIDfalse
EndTag.PrintedTagstringPrinted representation of the ending tag""
EndTag.SpeciesstringSpecies identifier"S"
TagCountintegerNumber of tags in the allocated range10
RangestringAnimal number range as a string"1 - 10"
SpeciesstringSpecies identifier"S"
SourcestringSource of the tag allocation"New"
HasEidbooleanIndicates if tags in the range have EIDfalse
HerdReferencestringHerd reference number"561766"
TagCountintegerTotal number of tags allocated10
RangestringOverall animal number range"1 - 10"

Error Codes

Error CodeDescriptionComments
200Success
400Bad Request
404Not Found
500Internal Server Error

Comments: None

GET /v#/Tags/next-allocated/{c}/{p}/{h}/{herd}

API Specification

API ComponentDetails
API NameNext Allocated Tag (without Species)
Description and suggested purposeReturns the next allocated tag for a given keeper and herd (species not specified).
Interface Type and expected response rateRESTful, NEAR realtime
HTTP methodGET
URLhttps://luispublic-web.azurewebsites.net/Api/Tags/next-allocated/{c}/{p}/{h}/{herd}
Direction2-Way
Frequency of InteractionAd hoc
Request DefinitionSee below

Request Definition

FieldMandatoryTypeDescriptionExample
cMstringCounty reference number06
pMstringParish reference number036
hMstringHolding reference number0006
herdMstringHerd Reference160131

Response Example

[
  {
    "HerdReference": "561766",
    "NextTag": 20241,
    "OrderType": "EID",
    "Species": "S"
  }
]

Response Definition

FieldTypeDescriptionExample
HerdReferencestringHerd reference number"561766"
NextTagintegerThe next available tag number for the herd20241
OrderTypestringType of tag order (e.g., EID, Conventional)"EID"
SpeciesstringSpecies identifier (e.g., S for sheep)"S"

Error Codes

Error CodeDescriptionComments
200Success
400Bad Request
404Not Found
500Internal Server Error

Comments: None