Integration Overview
...
Orders
OR21 - Accept or Refuse Order Lines
{ "tab" "examples", "url" "https //saksus2 dev mirakl net/api/orders/{order id}/accept", "name" "or21 accept or refuse order lines", "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" \[ { "kind" "required", "name" "order lines", "type" "array", "children" \[], "description" "list of representations of order line for acceptance" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "v7dtfm7x5fbgjc quhw8w", "code" "", "language" "204", "customlabel" "" } ], "selectedlanguageid" "v7dtfm7x5fbgjc quhw8w" }, "examples" { "languages" \[ { "id" "da0x1y cpuyc4cbak 8ob", "code" "curl location g request put 'https //saksus2 dev mirakl net/api/orders/{order id}/accept?shop id=integer' \\\\\n header 'accept application/json' \\\\\n header 'authorization string' \\\\\n data raw '{\\"order lines\\" \\"array\\"}'", "language" "curl", "customlabel" "" }, { "id" "ei3gykjs3w39wqjfd w e", "code" "var request = require('request');\nvar options = {\n 'method' 'put',\n 'url' 'https //saksus2 dev mirakl net/api/orders/{order id}/accept?shop id=integer',\n 'headers' {\n 'accept' 'application/json',\n 'authorization' 'string'\n },\n body '{\\"order lines\\" \\"array\\"}'\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" "j3rnfgbstne6s1tbs99 s", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"order lines\\\\\\" \\\\\\"array\\\\\\"}\\";\n\nvar requestoptions = {\n method 'put',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //saksus2 dev mirakl net/api/orders/{order id}/accept?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" "cckcyp2tjkefdpjnmoatm", "code" "import requests\n\nurl = \\"https //saksus2 dev mirakl net/api/orders/{order id}/accept?shop id=integer\\"\n\npayload = \\"{\\\\\\"order lines\\\\\\" \\\\\\"array\\\\\\"}\\"\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" "zsx3hbq6bwi9mx7nzxflv", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //saksus2 dev mirakl net/api/orders/{order id}/accept?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\\"\nrequest body = \\"{\\\\\\"order lines\\\\\\" \\\\\\"array\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "da0x1y cpuyc4cbak 8ob" }, "description" "accept or refuse order lines in the waiting acceptance status", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } call frequencies recommended at each new order on the marketplace maximum at each new order on the marketplace