Hanzo
OpenapiBooks

Returns the org's open document queue — everything uploaded but not yet booked,…

Returns the org's open document queue — everything uploaded but not yet booked, newest first, each with its extracted summary and the confidence the…

GET /v1/books/inbox

Addresshttps://api.hanzo.ai/v1/books/inbox
MethodGET
Operationget_books_inbox
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the org's open document queue — everything uploaded but not yet booked, newest first, each with its extracted summary and the confidence the scanner resolved its category at. A booked document drops out of the queue.

Request

1 field.

FieldInTypeRequiredDescription
sandboxquerystringSandbox reads the org's SANDBOX ledger when it is exactly "true"; anything else reads the live one.

Response

StatusBodyMeaning
200inboxOutok

200 body — 19 fields.

FieldInTypeAlwaysDescription
itemsbodyInboxItem[]Items is every document still unsorted or in draft, newest first.
items[].categorybodystringCategory is the expense account the scanner proposed, as a chart number — a PROPOSAL, not a posting: nothing is booked until it is accepted.
items[].confidencebodystringConfidence is how sure the scanner is of that reading, and is the signal for whether a person needs to check it before it is booked.
items[].createdAtbodystringCreatedAt is when the document was uploaded.
items[].extractedbodyExtracted
items[].extracted.categorybodystringCategory is the expense bucket the SCANNER guessed, as a slug — a hint only.
items[].extracted.currencybodystringCurrency is the ISO code the document is denominated in.
items[].extracted.issuedAtbodystringIssuedAt is the document's OWN date as YYYY-MM-DD — when the bill was issued, which is not when it was uploaded or when it will post.
items[].extracted.lineItemsbodyLineItem[]LineItems are the individual lines read off the document, where it had any.
items[].extracted.lineItems[].amountCentsbodyintegerAmountCents is that line's amount in whole cents.
items[].extracted.lineItems[].descriptionbodystringDescription is the line as it appears on the document.
items[].extracted.merchantbodystringMerchant is the supplier as printed on the document.
items[].extracted.notebodystringNote is anything else worth carrying from the document that has no field of its own.
items[].extracted.taxCentsbodyintegerTaxCents is how much of that total is tax, in cents.
items[].extracted.totalCentsbodyintegerTotalCents is the document total in whole cents, tax INCLUDED.
items[].filenamebodystringFilename is the name the document was uploaded under, for a person to recognise it by.
items[].idbodystringID is the CONTENT HASH of the uploaded bytes, which is what makes the queue idempotent: re-uploading the same document returns this item rather than adding a…
items[].statusbodystringStatus is where the document is in the queue — unsorted until the scanner has read it, and thereafter whether it is waiting on a person or has been booked.
items[].vendorbodystringVendor is the supplier the scanner identified, surfaced beside the item so a queue renders without opening each document.

Failure carries the platform error shape — see Errors.

Examples

hanzo books inbox get

Books API · All Hanzo APIs · Interactive reference

How is this guide?

On this page