---
agentTools:
  projectIndex: https://worldbox-api.readme.io/llms.txt
---

# Query Orderitems

Query the ordered items and get an array of order item according to the filter parameter.

Query the ordered items and get an array of order item according to the filter parameter.

Note: if no date range is provided all orders will be returned to a maximum limit of 100 orders ordered by date descending.

[block:code]
{
  "codes": [
    {
      "code": "$.get('/orderitem/?datefrom=20140803&dateto=20141105&statuscode=6&productid=370', function(data) {\n    console.log(data);\n});",
      "language": "json"
    }
  ]
}
[/block]

**Results**

[block:code]
{
  "codes": [
    {
      "code": "[\n    {\n        \"company\": \"Ascom (Schweiz) AG\",\n        \"ordernumber\": 3034931475,\n        \"reference\": 123456,\n        \"name\": \"Financial Report online\",\n        \"language\": \"DE\",\n        \"format\": \"PDF\",\n        \"datecreated\": \"2014-09-03T19:15:03Z\",\n        \"statuscode\": 6,\n        \"status\": \"available\",\n        \"productcode\": \"DLF110\",\n        \"itemnumber\": \"1409B0064\"\n    },\n    ...\n]",
      "language": "json"
    }
  ]
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://testapi.worldbox.ch/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/orderitem/?datefrom=20140803&dateto=20141105&statuscode=6&productid=370": {
      "get": {
        "summary": "Query Orderitems",
        "description": "Query the ordered items and get an array of order item according to the filter parameter.",
        "operationId": "query-orderitems",
        "parameters": [
          {
            "name": "datefrom",
            "in": "query",
            "description": "Start of the date range. Use two digits for month and dateformat “yyyymmdd”",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateto",
            "in": "query",
            "description": "End of the date range. Use two digits for month and",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "statuscode",
            "in": "query",
            "description": "filtered by status code",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "productcode",
            "in": "query",
            "description": "filtered by product code",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[\n    {\n        \"company\": \"Ascom (Schweiz) AG\",\n        \"ordernumber\": 3034931475,\n        \"reference\": 123456,\n        \"name\": \"Financial Report online\",\n        \"language\": \"DE\",\n        \"format\": \"PDF\",\n        \"datecreated\": \"2014-09-03T19:15:03Z\",\n        \"statuscode\": 6,\n        \"status\": \"available\",\n        \"productcode\": \"DLF110\",\n        \"itemnumber\": \"1409B0064\"\n    },\n    ...\n]"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6303ce04ea33c13c8859c3a3:5491d9c04311181600198e20"
}
```