Integration Overview
...
Products & Offers
OF02 - Get Information and Statistics About an Import
{ "tab" "examples", "url" "https //saksus2 dev mirakl net/api/offers/imports/{import}", "name" "of02 get information and statistics about an import", "method" "get", "request" { "pathparameters" \[ { "kind" "required", "name" "import", "type" "integer", "children" \[], "description" "import 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" "xmfx98ly0wgpen tg0xc", "code" "", "language" "200", "customlabel" "" } ], "selectedlanguageid" "xmfx98ly0wgpen tg0xc" }, "examples" { "languages" \[ { "id" "kp9mqtthpshatgkq9d7vh", "code" "curl location g request get 'https //saksus2 dev mirakl net/api/offers/imports/{import}?shop id=integer' \\\\\n header 'accept application/json' \\\\\n header 'authorization string'", "language" "curl", "customlabel" "" }, { "id" "fg8boly xp4jakljyrlv8", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //saksus2 dev mirakl net/api/offers/imports/{import}?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" "gmdea9gonobc3curpqtfa", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //saksus2 dev mirakl net/api/offers/imports/{import}?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" "nyjim9ftpxivfxewdxati", "code" "import requests\n\nurl = \\"https //saksus2 dev mirakl net/api/offers/imports/{import}?shop id=integer\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "language" "python", "customlabel" "" }, { "id" "po4egh n4nklvqlr5ncb0", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //saksus2 dev mirakl net/api/offers/imports/{import}?shop id=integer\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "kp9mqtthpshatgkq9d7vh" }, "description" "used after of01 to check the status of an import ", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } call frequencies recommended after each of01 call, every 5 minutes maximum once per minute