pens/{penId}/repro-status-observations Endpoint

Returns data related to reproduction status for all animals in a specific pen. Only live animals are included in the response for this endpoint.

GET https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/pens/{penId}/repro-status-observations

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}/pens/{penId}/repro-status-observations \
-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}/pens/{penId}/repro-status-observations?lactation-zero=true \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}' 

Response Schema

Sample Response (JSON)
{
    "view": {
        "pageSize": 1000,
        "currentPage": 1,
        "totalPages": 1,
        "totalItems": 2
    },
    "member": [
        {
            "meta": {
                "created": "2024-07-10T18:50:29+00:00",
                "modified": "2024-07-10T18:50:29+00:00"
            },
            "animal": {
                "identifier": {
                    "id": "103159008",
                    "scheme": "com.vas.animals.id"
                }
            },
            "location": {
                "id": "679",
                "scheme": "com.vas.dairies.id"
            },
            "pen": {
                "identifier": {
                    "id": "122708",
                    "scheme": "com.vas.pens.id"
                },
                "alternativeIdentifiers": [
                    {
                        "id": "9",
                        "scheme": "com.vas.pens.number"
                    }
                ]
            },
            "eventDateTime": "2024-06-16T16:00:00+00:00",
            "eventName": "BRED",
            "remark": null,
            "daysInMilk": 270,
            "ageInDays": 1306,
            "lactation": 2,
            "responsible": {
                "id": 28226,
                "technicianNumber": 2,
                "technicianName": "Levi"
            },
            "withdrawals": [
                {
                    "productType": "Milk",
                    "endDate": null
                },
                {
                    "productType": "Meat",
                    "endDate": null
                }
            ],
            "eventDetails": {
                "protocolNumber": null,
                "protocolName": null
            },
            "isEmbryoTransfer": true,
            "transferDate": "2024-06-21T05:00:00+00:00",
            "embryo": {
                "id": {
                    "id": "21158",
                    "scheme": "com.vas.embryo.id"
                },
                "donorIdentifiers": [
                    {
                        "id": "103160876",
                        "scheme": "com.vas.donor.donorDamRegistrationId"
                    },
                    {
                        "id": "1230",
                        "scheme": "com.vas.donor.donorDamNumber"
                    }
                ],
                "grade": 2,
                "stage": 4,
                "storage": 1,
                "recoveryType": 2,
                "frozenDate": null,
                "cane": null,
                "straw": null,
                "sire": {
                    "sireIdentifiers": {
                        "id": "0",
                        "scheme": "com.vas.sire.id"
                    },
                    "sireAlternativeIdentifiers": [
                        {
                            "id": null,
                            "scheme": "com.vas.sire.isoId"
                        },
                        {
                            "id": "11H11687",
                            "scheme": "com.vas.sire.default"
                        }
                    ],
                    "sireOfficialName": null,
                    "studCode": null,
                    "sireBreed": "H"
                },
                "location": null,
                "embryoStatus": 2,
                "breed": "HO",
                "embryoAge": 5,
                "freezeMethod": 0
            },
            "inseminationType": "Implantation",
            "breedingCode": "L",
            "breedingCodeDescription": "Lut",
            "breedingResultCode": "O",
            "breedingResultCodeDescription": "Open",
            "observedStatus": "Inseminated"
        },
        {
            "meta": {
                "created": "2024-07-10T18:50:29+00:00",
                "modified": "2024-07-10T18:50:29+00:00"
            },
            "animal": {
                "identifier": {
                    "id": "103159008",
                    "scheme": "com.vas.animals.id"
                }
            },
            "location": {
                "id": "679",
                "scheme": "com.vas.dairies.id"
            },
            "pen": {
                "identifier": {
                    "id": "110224",
                    "scheme": "com.vas.pens.id"
                },
                "alternativeIdentifiers": [
                    {
                        "id": "1",
                        "scheme": "com.vas.pens.number"
                    }
                ]
            },
            "eventDateTime": "2024-07-10T05:00:00+00:00",
            "eventName": "BRED",
            "remark": null,
            "daysInMilk": 294,
            "ageInDays": 1330,
            "lactation": 2,
            "responsible": {
                "id": 28226,
                "technicianNumber": 2,
                "technicianName": "Levi"
            },
            "withdrawals": [
                {
                    "productType": "Milk",
                    "endDate": null
                },
                {
                    "productType": "Meat",
                    "endDate": null
                }
            ],
            "eventDetails": {
                "protocolNumber": null,
                "protocolName": null
            },
            "isEmbryoTransfer": false,
            "transferDate": null,
            "embryo": null,
            "inseminationType": "Insemination",
            "breedingCode": "E",
            "breedingCodeDescription": "Excellent heat",
            "breedingResultCode": " ",
            "breedingResultCodeDescription": "Unknown",
            "straw": {
                "sire": {
                    "sireIdentifiers": {
                        "id": "0",
                        "scheme": "com.vas.sire.id"
                    },
                    "sireAlternativeIdentifiers": [
                        {
                            "id": null,
                            "scheme": "com.vas.sire.isoId"
                        },
                        {
                            "id": "11H11687",
                            "scheme": "com.vas.sire.default"
                        }
                    ],
                    "sireOfficialName": null,
                    "studCode": null,
                    "sireBreed": "H"
                }
            },
            "observedStatus": "Inseminated"
        }
    ]
}
NOTE: See API Errors and HTTP Status Code Details for a list of API errors and HTTP status codes.