Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisbbe opened this issue Apr 24, 2024 · 1 comment

Comments

@chrisbbe
Copy link

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 ?

@AutoCompleteFailure
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants