tripletex-api2
tripletex-api2 copied to clipboard
GET /v2/order returns null for inventory when inventoryLocation is not null
Hi,
The response from HTTP GET https://api.tripletex.io/v2/order?orderDateFrom=2020-05-01&fields=number,orderLines(inventory, inventoryLocation)&orderDateTo=2024-05-17&isClosed=false
is
{
"count": 1,
"from": 0,
"fullResultSize": 1,
"values": [
{
"number": "139",
"orderLines": [
{
"inventory": null,
"inventoryLocation": {
"displayName": "B1",
"id": 41,
"inventory": {
"id": 8064,
"url": "api.tripletex.io/v2/inventory/8064"
},
"isDeletable": false,
"isInactive": false,
"name": "B1",
"number": 1,
"url": "api.tripletex.io/v2/inventory/location/41",
"version": 0
}
}
]
}
],
"versionDigest": "'If-None-Match' header not specified"
}
Why is inventory NULL , while inventoryLocation is not ?
Thanks for the feedback! You are correct that inventory should not be NULL in this scenario. It looks like a bug and we're looking at it.