events/da Endpoint
The events
endpoint provides information on a dairy cow's PULSE/DairyComp 305 displaced abomasum Displaced abomasum in cattle occurs when the abomasum, also known as the true stomach, which typically resides on the floor of the abdomen, fills with gas and rises to the top of the abdomen, where it is said to be "displaced". Symptoms may include reduced appetite, lower milk yield, reduced rumination, and a distended abdomen. (DA) diagnosis events. All animals (live, sold, and dead) are included in the response for this endpoint.
|
|
PATH PARAMETERS | |
{dairyId}* |
VAS-specific |
{dairyCowId}* |
VAS-specific dairy cow identifier. This number is used in all VAS products, including PULSE and DairyComp 305. This identifier is unique to each animal in the VAS suite of products, and is the most stable and reliable source of animal identification data. dairyCowId differs from the animal's cowNumber, displayCowNumber, EID |
QUERY PARAMETERS |
|
lactation |
Period of time initiated at calving/freshening when milk production begins until the animal is dried off and stops producing milk. If no parameter is defined, the response reflects the current lactation. |
sinceDate |
Start date for which to include results (YYYY-MM-DD). If no parameter is defined, all results are returned. |

curl -X GET \
https://platform-vendor-api.vas.com/dairies/{dairyId}/cows/{dairyCowId}/events/da \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}'

{
"items": [
{
"id": 3839951,
"createdAt": "2019-07-22T21:26:26+00:00",
"eventDate": "2019-07-22T20:16:36+00:00",
"eventCode": 32,
"standardEventCode": 2008,
"eventDetails": {
"protocolNumber": 0,
"protocolName": null,
"description": null
},
"name": "DA",
"remark": "F036T037",
"daysInMilk": 0,
"ageInDays": 422,
"lactation": 0,
"pen": {
"id": 1939,
"penNumber": 36,
"zoneId": 23,
"penType": 0,
"capacity": 104
},
"responsible": null,
"updatedAt": "2019-07-23T00:08:03+00:00"
}
{
"id": 3839848,
"createdAt": "2019-05-16T21:26:26+00:00",
"eventDate": "2019-05-16T20:16:36+00:00",
"eventCode": 32,
"standardEventCode": 2008,
"eventDetails": {
"protocolNumber": 0,
"protocolName": null,
"description": null
},
"name": "DA",
"remark": "null",
"daysInMilk": 0,
"ageInDays": 358,
"lactation": 0,
"pen": {
"id": 1939,
"penNumber": 36,
"zoneId": 23,
"penType": 0,
"capacity": 104
},
"responsible": null,
"updatedAt": "2019-05-17T00:08:03+00:00"
}
],
"pageSize": 10,
"currentPage": 1,
"totalPages": 1,
"totalItems": 2
}

curl -X GET \
https://platform-vendor-api.vas.com/dairies/{dairyId}/cows/{dairyCowId}/events/da?sinceDate=2019-01-01 \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}'

{
"items": [
{
"id": 3839951,
"createdAt": "2019-07-22T21:26:26+00:00",
"eventDate": "2019-07-22T20:16:36+00:00",
"eventCode": 32,
"standardEventCode": 2008,
"eventDetails": {
"protocolNumber": 0,
"protocolName": null,
"description": null
},
"name": "DA",
"remark": "F036T037",
"daysInMilk": 0,
"ageInDays": 422,
"lactation": 0,
"pen": {
"id": 1939,
"penNumber": 36,
"zoneId": 23,
"penType": 0,
"capacity": 104
},
"responsible": null,
"updatedAt": "2019-07-23T00:08:03+00:00"
}
],
"pageSize": 10,
"currentPage": 1,
"totalPages": 1,
"totalItems": 1
}

Data Point |
Data Type |
Definition |
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer |
VAS-specific event identifier |
||||||||||||||||||||||||
createdAt |
string |
Date/time stamp (YYYY-MM-DDThh:mm:ss |
||||||||||||||||||||||||
eventDate |
string |
Date/time stamp (YYYY-MM-DDThh:mm:ss |
||||||||||||||||||||||||
eventCode |
integer |
Event identifier (customizable PULSE/DairyComp 305 code), which may deviate from the standardEventCode |
||||||||||||||||||||||||
standardEventCode |
integer |
VAS-specific event identifier: 2008: DA - The animal was diagnosed with a displaced abomasum (DA) |
||||||||||||||||||||||||
![]()
|
||||||||||||||||||||||||||
name |
string |
Event name |
||||||||||||||||||||||||
remark |
string |
Additional information on the event, which may be automatically generated by PULSE and/or DairyComp 305, or manually entered |
||||||||||||||||||||||||
daysInMilk |
integer |
Number of days into current lactation. For dry cows, total days in most recent lactation prior to being dried off. |
||||||||||||||||||||||||
ageInDays |
integer |
Number of days since the animal birth date |
||||||||||||||||||||||||
lactation |
integer |
Current lactation number |
||||||||||||||||||||||||
![]()
|
||||||||||||||||||||||||||
id |
integer |
VAS-specific pen identifier |
||||||||||||||||||||||||
penNumber |
integer |
Pen number |
||||||||||||||||||||||||
zoneId |
integer |
Dairy zone to which the pen belongs |
||||||||||||||||||||||||
penType |
integer |
Reserved for future use |
||||||||||||||||||||||||
capacity |
integer |
Maximum number of animals the pen can contain |
||||||||||||||||||||||||
![]()
|
||||||||||||||||||||||||||
updatedAt |
string |
Date/time stamp (YYYY-MM-DDThh:mm:ss |

Status Code/Error | Description |
---|---|
200 OK
|
Standard response for a successful HTTP request. |
201 Created
|
A |
202 Accepted
|
The server accepted the request and will execute it at a later point. |
204 No Content
|
The server successfully executed the method but returns no response body. |
400 Bad Request
|
Bad request. Depending on the endpoint, additional error details may be sent in the response. Use the strategies below to troubleshoot the error:
NOTE: The resource URI is case-sensitive. If you are encountering unexpected 400 errors, check your URI for correct capitalization of resource names.
|
401 Unauthorized
|
Authentication failed due to invalid authentication credentials. |
403 Forbidden
|
You are not permitted to access this resource. |
404 Not Found
|
The resource could not be found. It is possible that the resource has been moved or deleted, or that there is a typo in your request. |
405 Method Not Allowed
|
The requested method and resource are not compatible. |
429 Too Many Requests
|
You sent too many requests within a given period and exceeded the rate limit. |
500 Internal Server Error
|
A VAS server error has occurred and the request cannot be fulfilled. |
502 Bad Gateway
|
The server did not receive a timely response from another server. |
503 Service Unavailable
|
The server is not available, usually due to overloading or maintenance issues. |
504 Gateway Timeout
|
The server, while acting as a gateway or proxy, cannot get a response in time. |
Last Built: November 21, 2024

The VAS Developer API is designed to align with industry standards, including NAAB National Association of Animal Breeders. www.naab-css.org and ICAR
International Committee for Animal Recording (ICAR) is a global organization focused on the standardization of animal identification, recording, genetic evaluation, and data management.. However, due to the customizable nature of VAS applications, we cannot guarantee that our users' data comply with industry standards. VAS partners' use of the API is at their sole discretion and risk. The VAS Developer API is provided "as is," including any potential errors or missing data.