The ID for the order run for which the API call is gathering information. If none is passed the information for the most recent order run in the kitchen is returned.
The example Python script below gathers order run information for the last order run that occurred in the specified kitchen. Note that the payload includes a request to return the test result from the order run.
#!/usr/bin/env pythonimportjsonimportrequests# Plain text, no need to urlencodeusername="<USERNAME>",password="<PASSWORD>"kitchen="<KITCHEN_NAME>"payload_in={'username':username,'password':password}r=requests.post('https://cloud.datakitchen.io/v2/login',data=payload_in)token=r.texturl="https://cloud.datakitchen.io/v2/order/details/%s"%kitchenheaders={'Content-Type':'application/json','Authorization':'Bearer '+token}# Define what OrderRun info to returnpayload_out={'serving_hid':'<ORDERRUNID>','testresults':True}r2=requests.post(url,headers=headers,data=json.dumps(payload_out))ifr2.status_code==200orr2.status_code==200:print'response ok'response=r2.json()print'response: %s'%response