custom-items Endpoint
Use the custom-items
endpoint with set item-names
parameters to retrieve bulk data for custom items in the location. To see all custom items for a location, use the custom-item-names
endpoint.
|
|
PATH PARAMETERS | |
{location-id}* |
Location identifier. For routes with “com.vas.dairies.id”, {location-id} is a VAS-specific dairy id, commonly referred to as {dairyId} when not part of an ICAR |
QUERY PARAMETERS |
|
{item-names}* |
Specifies the custom item(s) to include in the results. To include multiple custom items, separate each custom item name with a comma. The query can contain up to 5 custom items. ![]()
|
page |
Sets the page number to display in the results. If no parameter is defined, page 1 displays. |
pageSize |
Sets the number of items to display on one page of results. If no parameter is defined, the response includes 10 items per page. The maximum pageSize is 1000. |

curl -X GET \
https://platform-vendor-api.vas.com/locations/com.vas.dairies.id/{location-id}/custom-items?item-names={item-name} \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}'

{
"view": {
"pageSize": 10,
"currentPage": 1,
"totalPages": 1,
"totalItems": 2
},
"member": [
{
"itemDefinitions": [
{
"itemNumber": 37,
"name": "BLDAT
Bullpen entry date",
"description": "Date entered bullpen",
"standardItemNumber": 37
}
],
"animals": [
{
"identifier": {
"id": "100151618",
"scheme": "com.vas.animals.id"
},
"alternativeIdentifiers": [
{
"id": "2",
"scheme": "com.vas.animals.managementNumber"
},
{
"id": "test",
"scheme": "com.vas.animals.name"
}
],
"pen": {
"alternativeIdentifiers": [
{
"id": "3",
"scheme": "com.vas.pens.number"
}
]
},
"items": [
{
"itemNumber": 37,
"value": null,
"valueType": null
}
]
},
{
"identifier": {
"id": "100151619",
"scheme": "com.vas.animals.id"
},
"alternativeIdentifiers": [
{
"id": "5",
"scheme": "com.vas.animals.managementNumber"
},
{
"id": "",
"scheme": "com.vas.animals.name"
}
],
"pen": {
"alternativeIdentifiers": [
{
"id": "1",
"scheme": "com.vas.pens.number"
}
]
},
"items": [
{
"itemNumber": 37,
"value": null,
"valueType": null
}
]
}
]
}
]
}

curl -X GET \
https://platform-vendor-api.vas.com/locations/com.vas.dairies.id/{location-id}/custom-items?item-names={item-name},{item-name} \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}'

{
"view": {
"pageSize": 1,
"currentPage": 1,
"totalPages": 1,
"totalItems": 2
},
"member": [
{
"itemDefinitions": [
{
"itemNumber": 67,
"name": "CALF1
Recent identified offspring",
"description": "Recent Identified Offspring",
"standardItemNumber": 67
},
{
"itemNumber": 68,
"name": "CALF2
Previous identified offspring",
"description": "Previous Identified Offspring",
"standardItemNumber": 68
}
],
"animals": [
{
"identifier": {
"id": "100264744",
"scheme": "com.vas.animals.id"
},
"alternativeIdentifiers": [
{
"id": "9",
"scheme": "com.vas.animals.managementNumber"
},
{
"id": "",
"scheme": "com.vas.animals.name"
}
],
"pen": {
"alternativeIdentifiers": [
{
"id": "0",
"scheme": "com.vas.pens.number"
}
]
},
"items": [
{
"itemNumber": 67,
"value": null,
"valueType": null
},
{
"itemNumber": 68,
"value": null,
"valueType": null
}
]
},
{
"identifier": {
"id": "100151608",
"scheme": "com.vas.animals.id"
},
"alternativeIdentifiers": [
{
"id": "14",
"scheme": "com.vas.animals.managementNumber"
},
{
"id": "sil",
"scheme": "com.vas.animals.name"
}
],
"pen": {
"alternativeIdentifiers": [
{
"id": "45",
"scheme": "com.vas.pens.number"
}
]
},
"items": [
{
"itemNumber": 67,
"value": null,
"valueType": null
},
{
"itemNumber": 68,
"value": null,
"valueType": null
}
]
}
]
}
]
}

Data Point | Data Type | Definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() The itemDefinitions data specifies data for the custom items.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() The animal data includes multiple data points to identify the animal.
|

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.