Skip to content

Download a work report as a PDF

GET
/work-reports/{id}/pdf
curl --request GET \
--url https://example.com/work-reports/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/pdf \
--cookie __Host-bottle.session_token=<__Host-bottle.session_token>

The work report as the customer is sent it: the cylinders with their job and checks, other equipment, the driver’s note, what the customer agreed to, the signatures and any problem photos, under the business’s name and logo. Drawn from what was recorded when the driver finished the stop, so later changes to the settings or the customer do not change it. A report that is not finished, or whose stop was undone, says so at the top.

id
required

UUID v7

string format: uuid

Example

019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f

UUID v7

The work report

Media typeapplication/pdf
string

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not an owner or admin, or the plan does not open Assets

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not found, or Assets is not available to this business

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Assets is switched off, or the business already has 50 job types or checks

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string

Example

{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}