Read a vendor bill from a stored file
Runs text recognition over a file already in the company's file store and returns what it read — vendor name, dates, reference, total and lines — as a suggestion to fill a create-bill form with. Nothing is created and nothing is matched to a vendor or chart of account.
Authorization
AuthorizationstringrequiredPath parameters
fileIdstringrequiredThe stored file to read. A Snowflake id sent as a decimal string.
Query parameters
languagestringThe recognition language code. eng for English; chi_sim for simplified Chinese.
Response
200 · What was read off the file. Check `success` — a failed parse still returns 200.
successbooleanWhether anything could be read from the file. false leaves suggestion absent and fills error.
suggestionobjectWhat was read off the document, as a starting point for a create-bill call. Nothing here is validated against the company's records — the vendor is a name, not an id. Absent when success is false.
rawOcrTextstringThe full text read off the file, unparsed. Absent when nothing could be read.
ocrConfidencenumberHow clearly the text could be read, from 0 to 100. This is about legibility, not about whether the fields are right.
processingTimeMsintegerHow long the parse took, in milliseconds.
errorstringWhy the parse failed. Absent when success is true.