HeadHoncho

List field reports

List field reports is a read in the HeadHoncho API. What technicians reported from the field and nobody booked yet: what they collected, how, the parts and the job's total, newest first.

Read as Markdown

The request

Reference for List field reports, HeadHoncho API v1. It is a read, sent to the base address https://api.headhoncho.app.

GET /api/v1/field-reports

The key needs the Money area at read. An answered call costs 1 credit; a refusal costs nothing. See credits.

Send your key as Authorization: Bearer hh_live_.... See API keys.

Parameters

NameKindRequiredDescriptionExample
job_idid, in the queryNoOnly this job, by id or number.job_1138
company_idid, in the queryNoOnly this company. Default: every company in reach.cmp_14f5

Try it with your key

Paste your key and change the values. The box builds the call as a cURL line and a fetch line, ready to copy. It never sends anything itself.

Your key stays in this page and is never sent anywhere. Copy the line below and run it yourself.

What comes back

field_reports: id, job (id, number, status), worker_id, worker_name, collected, method, parts, total and reported_at. Booked and set-aside ones are not listed.

It never changes a record. It only reads the companies the key reaches.

Every field in the answer

Types are read from the example answer. Money is a plain number in the company's currency. A time carries its offset from UTC (Z is UTC). Ids are opaque text. A field with no line of its own here has its name spelled out; the common fields mean the same on every page.

FieldTypeMeaning
field_reportslist of objectsThe field reports.
field_reports[].idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
field_reports[].jobobjectThe job.
field_reports[].job.idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
field_reports[].job.numberwhole numberThe number people say out loud, such as the job number.
field_reports[].job.statustextThe job status.
field_reports[].worker_idid (text)The id of the worker.
field_reports[].worker_nametextThe worker name.
field_reports[].collectedmoney (number)The money received on the job so far. In the company's currency.
field_reports[].methodtextHow it was paid, such as card or cash.
field_reports[].partsmoney (number)The parts. In the company's currency.
field_reports[].totalmoney (number)The total, in the company's currency.
field_reports[].reported_attime (ISO 8601, with offset)When it was reported. Carries its offset from UTC; Z is UTC.

Where they come from

A technician texts the numbers when the job is done. The app reads them into a field report; Book it or Not this decides it, here or on Finance.

Errors that apply

CodeStatusWhat it means
`missing_key`401Send your key as Authorization: Bearer hh_live_...
`unknown_key`401That key is not one we issued, or it was revoked.
`no_access`403This credential does not reach that. Ask the person who made it for access.
`not_found`404No such record in the companies this credential reaches.
`out_of_scope`404No such company in the companies this credential reaches.
`invalid`422Some fields were refused. See fields.
`no_credits`402Out of credits. Top up on Settings › Credits, or turn on auto top-up.