xid Endpoint

Returns data related to animal identifier changes for all animals in the herd. All animals (live, sold, and dead) are included in the response for this endpoint.

GET https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/xid

Path Parameters (required)

The following parameters must be included in the request path for this endpoint: 

{location-id}integerREQUIRED

VAS-specificClosed A data value that originates from the VAS product line. [dairy] location identifier. For routes with “com.vas.dairies.id”, {location-id} is a VAS-specific dairy id.

Sample Request (cURL)
curl -X GET \
https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/xid \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}' 
Sample Request (cURL) - with query parameter(s)
curl -X GET \
https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/xid?pageSize=10 \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}' 

Response Schema

Sample Response (JSON)
{
    "view": {
        "pageSize": 10,
        "currentPage": 1,
        "totalPages": 1,
        "totalItems": 1
    },
    "member": [
        {
            "meta": {
                "created": "2022-06-22T20:04:28+00:00",
                "modified": "2022-06-22T20:04:28+00:00"
            },
            "animal": {
                "identifier": {
                    "id": "120898682",
                    "scheme": "com.vas.animals.id"
                },
            },
            "location": {
                "id": "679",
                "scheme": "com.vas.dairies.id"
            },
            "pen": {
                "identifier": {
                    "id": "110222",
                    "scheme": "com.vas.pens.id"
                },
                "alternativeIdentifiers": [
                    {
                        "id": "3",
                        "scheme": "com.vas.pens.number"
                    }
                ]
            },
            "eventDateTime": "2022-06-22T05:00:00+00:00",
            "remark": "3273",
            "daysInMilk": 344,
            "ageInDays": 1416,
            "lactation": 2,
            "responsible": {
                "id": null,
                "technicianNumber": null,
                "technicianName": null
            }
        }
    ]
}
NOTE: See API Errors and HTTP Status Code Details for a list of API errors and HTTP status codes.