Adds an order to a workstation

<aside> 📌 POST https://apis.globalreader.eu/api/v1/orders?token=YOUR_TOKEN&workstation_uid=WORKSTATION_UID&order_remote_id=ORDER_ID&status=STATUS&production_code=PRODUCTION_CODE&planned_quantity=QUANTITY

</aside>

accepts JSON body or POST parameters

Parameters

token required your API token provided by GlobalReader
comment optional comments about the order
data optional additional data about the order
due_at optional due date for the order
name required production name
order_remote_id required unique order id
planned_duration optional planned duration
planned_end_at optional planned end in UTC
planned_quantity required planned quantity
planned_start_at optional planned start in UTC
priority optional Orders can be planned by priority
product required product block
code required product code (this value is used between ERP systems)
max_production optional max production value for the product
min_production optional min production value for the product
multiplier optional production multiplier
name optional name for the product
product_code optional product code
production_code required production code
status required 2 - ready or stop
1 - pause
0 - waiting
workstation_uid required workstation uid. Available in https://passport.globalreader.eu/devices

Request body

[
{
  "comment": "test comment",
  "data": {
    "some": "additional data can be sent",
    "product_drawing_link": "valid local link or URL",
    "operation_drawing_link": "valid local link or URL"
  },
  "due_at": "2020-06-01T10:00:00+03:00",
  "name": "Production name",
  "order_remote_id": "726a040d-e11d-47e9",
  "planned_duration": 807,
  "planned_end_at": "2020-06-01T17:43:41+03:00",
  "planned_quantity": 1000,
  "planned_start_at": "2020-06-01T17:30:13+03:00",
  "priority": 1,
  "product": {
    "code": "TEST-123456",
    "max_production": 80,
    "min_production": 10,
    "multiplier": 1,
    "name": "TestProduct"
  },
  "product_code": "TEST-123456",
  "production_code": "AB12345",
  "status": 0,
  "workstation_uid": "e42ca6d8-8961-441a-8401"
}
]

Success response

HTTP status code 200

[
{
  "order_remote_id": "726a040d-e11d-47e9",
  "result": "ok"
}
]

Error response example

Any HTTP status code in 400 to 500

Missing API token key

Response fields