Returns productions for a specific device and date range.

<aside> 📌 GET https://apis.globalreader.eu/api/v1/monitor/g4/orders?serial=DEVICE_SERIAL&end=1713871640&start=1682249256&token=YOUR_TOKEN

</aside>

Parameters

token required your API token provided by GlobalReader
serial required workstation UID for which device timeline is requested. Available in Passport
start required UNIX timestamp for period start
end required UNIX timestamp for period end. Max query period is 100 hours

Success response

HTTP status code 200


{
  "products": [
    {
      "actual_device_comment": "Actual device Finger Joint",
      "comments": null,
      "end": "2023-12-01 10:00:00+00",
      "entered_amount": "10",
      "entered_amount_limited": "10",
      "id": "111843",
      "materials": null,
      "operator": "",
      "planned_duration": "1800",
      "planned_quantity": "100",
      "product": "Juust",
      "product_code": null,
      "production_code": "",
      "production_duration": "4627",
      "production_duration_w": "4627",
      "production_status": "1",
      "productionlog_id": "219876",
      "scrap_value": null,
      "scraps": null,
      "setup_duration": "2",
      "setup_duration_w": "2",
      "setup_end": "2023-12-01 08:42:55+00",
      "start": "2023-12-01 08:42:53+00",
      "warehouses": [
        {
          "amount": 10.0,
          "name": null
        }
      ]
    },
    {
      "actual_device_comment": "Actual device Finger Joint",
      "comments": null,
      "end": "2024-01-23 10:04:36+00",
      "entered_amount": "0",
      "entered_amount_limited": "0",
      "id": "111843",
      "materials": null,
      "operator": "",
      "planned_duration": "1800",
      "planned_quantity": "100",
      "product": "Juust",
      "product_code": null,
      "production_code": "",
      "production_duration": "21",
      "production_duration_w": "21",
      "production_status": "1",
      "productionlog_id": "406052",
      "scrap_value": "1",
      "scraps": [
        {
          "amount": 1,
          "create_date": "2024-01-23 10:04:24+00",
          "reason": "Awesome scrap",
          "scrap_reason_id": 534
        }
      ],
      "setup_duration": "0",
      "setup_duration_w": "0",
      "setup_end": "2024-01-23 10:04:15+00",
      "start": "2024-01-23 10:04:15+00",
      "warehouses": null
    }
  ],
  "status": "OK"
}

Error response example

Any HTTP status code in 400 to 500

Missing API token key

Response fields

{ "actual_device_comment": "Actual device Finger Joint", "comments": null, "end": "2023-12-01 10:00:00+00", "entered_amount": "10", "entered_amount_limited": "10", "id": "111843", "materials": null, "operator": "", "planned_duration": "1800", "planned_quantity": "100", "product": "Juust", "product_code": null, "production_code": "", "production_duration": "4627", "production_duration_w": "4627", "production_status": "1", "productionlog_id": "219876", "scrap_value": null, "scraps": null, "setup_duration": "2", "setup_duration_w": "2", "setup_end": "2023-12-01 08:42:55+00", "start": "2023-12-01 08:42:53+00", "warehouses": [ { "amount": 10.0, "name": null } ] }, { "actual_device_comment": "Actual device Finger Joint", "comments": null, "end": "2024-01-23 10:04:36+00", "entered_amount": "0", "entered_amount_limited": "0", "id": "111843", "materials": null, "operator": "", "planned_duration": "1800", "planned_quantity": "100", "product": "Juust", "product_code": null, "production_code": "", "production_duration": "21", "production_duration_w": "21", "production_status": "1", "productionlog_id": "406052", "scrap_value": "1", "scraps": [ { "amount": 1, "create_date": "2024-01-23 10:04:24+00", "reason": "Awesome scrap", "scrap_reason_id": 534 } ], "setup_duration": "0", "setup_duration_w": "0", "setup_end": "2024-01-23 10:04:15+00", "start": "2024-01-23 10:04:15+00", "warehouses": null }

actual_device_comment provides a reference to the actual device
comments any comments relevant to the production
end production end UTC
entered_amount planned quantity
entered_amount_limited remaining quantity
id production id
materials list of materials used
operators list of operator codes who were marked as working on the product
code operator uid
product associated product name
product_code associated order product code
production_code associated order production code
production_duration total production duration
production_duration_w total production duration
production_status 2 - ready or stop
1 - pause
0 - waiting
productionlog_id associated production log entry id
scrap_value total number of scraps
scraps list of scrap entries
setup_duration setup time in minutes
setup_duration_w setup time in minutes
setup_end end time for setup
start production start UTC

Back to API Documentation