List an order's work reports
const url = 'https://example.com/orders/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/work-reports';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/orders/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/work-reports \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>The work reports drivers made at the stops that delivered this order, by number: the cylinders with their job type and checks, the purchase order number, the customer’s printed name, who to email and whether it has been emailed. What each report prints is fixed when it is made, so later changes to the settings do not change it. A report with anything listed in missing is incomplete: it has no number and is not emailed until the office finishes it. A report whose stop was undone has voidedAt set. Empty when the order has none.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Responses
Section titled “Responses”The order’s work reports
object
object
UUID v7
UUID v7
UUID v7
UUID v7
UUID v7
UUID v7
Main_contact: the customer’s main contact. everyone: every contact on the account. ask_driver: the driver picks at the stop.
object
Incomplete: something is missing (see missing); not numbered or emailed until the office finishes it. pending: numbered, not emailed yet. sent: emailed. failed: the email could not be sent. cancelled: the stop was undone before it was emailed.
object
object
object
object
UUID v7
UUID v7
object
object
UUID v7
object
UUID v7
UUID v7
Example
{ "items": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "orderId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "roundId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "roundStopId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "customerSignatureId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "driverSignatureId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "emailTo": "main_contact", "emailChoice": { "contactIds": [ "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" ] }, "emailStatus": "incomplete", "missing": [ { "code": "notRecorded", "image": "customerSignature" } ], "printed": { "cylinders": [ { "side": "delivered", "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "assetId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "jobType": { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "checks": [ { "checkId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "answer": "ok", "photoId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ] } ] } } ]}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}Not an owner or admin, or the plan does not open Assets
object
Example
{ "error": "not_found", "message": "Customer not found"}Not found, or Assets is not available to this business
object
Example
{ "error": "not_found", "message": "Customer not found"}Assets is switched off, or the business already has 50 job types or checks
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}