get http://testapi.worldbox.ch/v1/monitoring/
Get the order with the order items
Example:
$.get('https://api.worldbox.ch/v1/monitoring/6788392624?binary=true', function(data) {
console.log(data);
});
Response
An array of monitoring orders including their current status and the reports including the binary if already available.
{
"reports": [
{
"language": "EN",
"company": "Worldbox AG",
"itemnumber": "1602B5118",
"reference": "Your referencenumber",
"status": "available",
"datecreated": "2016-11-15T13:42:40Z",
"statuscode": 3,
"name": "Credit/Investigation report normal (offline)",
"comment": "",
"productcode": "REO110",
"format": "XML",
"binary": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhkZS1DSCkgL1N0cnVjdFRyZWVSb290IDIxIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+Pg0KZW5kb2J..."
},
{
"language": "EN",
"company": "Worldbox AG",
"itemnumber": "1707B0113",
"delta": "DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhkZS1DSCkgL1N0cnVjdFRyZWVSb290IDIxIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+Pg0KZW5kb2J...",
"reference": "Your referencenumber",
"status": "available",
"datecreated": "2017-03-14T13:42:40Z",
"statuscode": 3,
"name": "Credit/Investigation report normal (offline)",
"comment": "",
"productcode": "REO110",
"format": "XML",
"binary": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhkZS1DSCkgL1N0cnVjdFRyZWVSb290IDIxIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+Pg0KZW5kb2J..."
},
{
"language": "EN",
"company": "Worldbox AG",
"itemnumber": "1707B0122",
"estimated production time": "5 days",
"reference": "Your referencenumber",
"status": "processing",
"datecreated": "2017-07-17T09:12:10Z",
"statuscode": 3,
"name": "Credit/Investigation report normal (offline)",
"comment": "",
"productcode": "REO110",
"format": "XML"
}
],
"monitoring": {
"enddate": "2018-07-13T13:42:17Z",
"startdate": "2017-07-13T13:42:17Z",
"intervals": 3,
"code": "REM593",
"name": "MON Normal Full report 4 months",
"charge": "CHF 93.95",
"ordernumber": "6788392624"
}
}
The "report.binary" contains the report as base64 encoded JSON-string. Please decode it to a real binary with your preferred programming language.
The delta element holds as base64 encoded JSON-string that contains decode an XML file with the differences to the previous report.
For the full documentation of the XML data file follow the link below
Wbdata.Delta XML documentation