---
title: OR24 - Validate the Shipment of an Order
slug: or24-validate-the-shipment-of-an-order
docTags: 
createdAt: 2023-03-02T18:14:43.000Z
---

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": " https://saksus2-dev.mirakl.net/api/orders/{order_id}/ship",
  "name": "OR24 - Validate the Shipment of an Order",
  "method": "PUT",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "order_id",
        "type": "string",
        "children": [],
        "description": "Order identifier"
      }
    ],
    "queryParameters": [
      {
        "kind": "optional",
        "name": "shop_id",
        "type": "Integer",
        "children": [],
        "description": "Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used."
      }
    ],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": ""
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "v7DTFM7X5fBGJC-QuHW8W",
        "code": "",
        "language": "204",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "v7DTFM7X5fBGJC-QuHW8W"
  },
  "examples": {
    "languages": [
      {
        "id": "zT6SfF9_OB8nYylX58bE3",
        "code": "curl --location -g --request PUT 'https://saksus2-dev.mirakl.net/api/orders/{order_id}/cancel?shop_id=Integer' \\\n--header 'Accept: application/json' \\\n--header 'Authorization: string'",
        "language": "curl",
        "customLabel": ""
      },
      {
        "id": "jf34-dYq-JJ9KIx4qb5Xv",
        "code": "var request = require('request');\nvar options = {\n   'method': 'PUT',\n   'url': 'https://saksus2-dev.mirakl.net/api/orders/{order_id}/cancel?shop_id=Integer',\n   'headers': {\n      'Accept': 'application/json',\n      'Authorization': 'string'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "language": "nodejs",
        "customLabel": ""
      },
      {
        "id": "EW9t0-N3tNFCvYdr4AEAT",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Authorization\", \"string\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://saksus2-dev.mirakl.net/api/orders/{order_id}/cancel?shop_id=Integer\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "language": "javascript",
        "customLabel": ""
      },
      {
        "id": "1TvSevFbWkJ9fhLXdi2CB",
        "code": "import requests\n\nurl = \"https://saksus2-dev.mirakl.net/api/orders/{order_id}/cancel?shop_id=Integer\"\n\npayload={}\nheaders = {\n   'Accept': 'application/json',\n   'Authorization': 'string'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "language": "python",
        "customLabel": ""
      },
      {
        "id": "Qi_rQ1wizGouZbhx7elKt",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://saksus2-dev.mirakl.net/api/orders/{order_id}/cancel?shop_id=Integer\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Authorization\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "language": "ruby",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "zT6SfF9_OB8nYylX58bE3"
  },
  "description": "Validate the shipment of an order in the SHIPPING status",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "or24-validate-the-shipment-of-an-order",
  "legacyHash": "maZHvWeiBD4W3uQ36Keqk"
}
```
:::

::::VerticalSplit{layout="middle"}
:::VerticalSplitItem
**CALL FREQUENCIES**
:::

:::VerticalSplitItem
Recommended: Each time the tracking number is entered (OR23)

Maximum: Each time the tracking number is entered (OR23)
:::
::::



