---
title: Query order index es
slug: mihai-tests/query-order-index-es
createdAt: 2025-05-09T09:41:47.054Z
---

{
  "id": "28yFaHeb4pLCptKpmX6rf",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://{domain}/app/logisticsorders/v1/api/orders/es",
    "servers": [
      {
        "url": "https://{domain}/app/logisticsorders/v1/api/orders/es"
      }
    ],
    "name": "Query order index es",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "X-COREOS-TID",
          "type": "string",
          "description": "Tenant id"
        },
        {
          "kind": "required",
          "name": "X-COREOS-ACCESS",
          "type": "string",
          "description": "<p>core-os access token</p>"
        },
        {
          "kind": "required",
          "name": "X-COREOS-USERINFO",
          "type": "string",
          "description": "<p>core-os user info token</p>"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "OrderESRequest",
          "schema": [
            {
              "name": "offset",
              "kind": "optional",
              "type": "integer",
              "example": 0
            },
            {
              "name": "size",
              "kind": "optional",
              "type": "integer",
              "example": 0,
              "default": 100
            }
          ],
          "modelRef": "#/components/schemas/OrderESRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://{domain}/app/logisticsorders/v1/api/orders/es \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-coreos-tid: string' \\\n     --header 'x-coreos-access: string' \\\n     --header 'x-coreos-userinfo: string' \\\n     --data '{\n     \"size\": 100\n     }'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-coreos-tid\", \"string\");\nmyHeaders.append(\"x-coreos-access\", \"string\");\nmyHeaders.append(\"x-coreos-userinfo\", \"string\");\n\nvar raw = JSON.stringify({\n   \"size\": 100\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://{domain}/app/logisticsorders/v1/api/orders/es\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{domain}/app/logisticsorders/v1/api/orders/es\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-coreos-tid\"] = \"string\"\nrequest[\"x-coreos-access\"] = \"string\"\nrequest[\"x-coreos-userinfo\"] = \"string\"\nrequest.body = JSON.dump({\n   \"size\": 100\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://{domain}/app/logisticsorders/v1/api/orders/es\"\n\npayload = json.dumps({\n   \"size\": 100\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-coreos-tid': 'string',\n   'x-coreos-access': 'string',\n   'x-coreos-userinfo': 'string'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// OK\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}