List what needs checking after drivers’ stops
const url = 'https://example.com/asset-exceptions?kind=work_report&limit=100&offset=0';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/asset-exceptions?kind=work_report&limit=100&offset=0' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Newest first: work reports missing something the business requires (work_report), cylinders a driver couldn’t name with their reason (unnamed), serial numbers a driver added that weren’t in the Asset register (new_serial), and other cylinders not named at a stop (stop_gap). counts is every open item by kind, whatever the filters. Dates are London days.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Work_report: a work report missing something the business requires, not numbered or emailed yet. unnamed: cylinders a driver couldn’t name, with their reason. new_serial: a serial a driver recorded that wasn’t in the Asset register. stop_gap: other cylinders not named at a stop. quarantine: a cylinder that went out while still in quarantine. past_date: a cylinder delivered after one of its dates had passed, such as its expiry date.
Work_report: a work report missing something the business requires, not numbered or emailed yet. unnamed: cylinders a driver couldn’t name, with their reason. new_serial: a serial a driver recorded that wasn’t in the Asset register. stop_gap: other cylinders not named at a stop. quarantine: a cylinder that went out while still in quarantine. past_date: a cylinder delivered after one of its dates had passed, such as its expiry date.
Responses
Section titled “Responses”What needs checking
object
object
UUID v7
Work_report: a work report missing something the business requires, not numbered or emailed yet. unnamed: cylinders a driver couldn’t name, with their reason. new_serial: a serial a driver recorded that wasn’t in the Asset register. stop_gap: other cylinders not named at a stop. quarantine: a cylinder that went out while still in quarantine. past_date: a cylinder delivered after one of its dates had passed, such as its expiry date.
object
UUID v7
UUID v7
object
UUID v7
UUID v7
object
UUID v7
object
UUID v7
object
object
Example
{ "items": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "kind": "work_report", "customer": { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "orderId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "stop": { "roundId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "stopId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "product": { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "side": "delivered", "reason": "unreadable", "holder": { "kind": "place", "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "missing": [ { "code": "notRecorded", "image": "customerSignature" } ] } ]}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}Not an owner or admin, missing scope, or the plan does not open Assets
object
Example
{ "error": "not_found", "message": "Customer not found"}Not found, already dealt with, or another business’s
object
Example
{ "error": "not_found", "message": "Customer not found"}Assets is switched off, the item changed meanwhile, or a work report needs a signature the office cannot add
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}