tripletex-api2 icon indicating copy to clipboard operation
tripletex-api2 copied to clipboard

GET /v2/order returns null for inventory when inventoryLocation is not null

Open chrisbbe opened this issue 1 year ago • 1 comments

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 ?

chrisbbe avatar Apr 24 '24 09:04 chrisbbe

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.

AutoCompleteFailure avatar Apr 24 '24 11:04 AutoCompleteFailure