Skip to main content
POST
Read a tax invoice or utility bill (v1)
Upload a tax invoice or utility bill as multipart/form-data. idto classifies the document, and for an accepted type returns the buyer and seller (name, address, GSTIN, PAN), invoice number and date, line items, tax totals and any bank details printed on it. Every value is what is printed on the document. This is a v1 endpoint, but its body has the same status, message, error_code and data fields as Invoice OCR; data has the same fields.

Environments

Billing

Charged when status is success. That includes error_code: "IDTO_202": the document was read but is not an accepted type, or has no invoice details; when the type is the reason, data.document_type says what was uploaded. chargeble and user_consent are "true" only on a charged call. There is no billed field on v1.
This endpoint has no Idempotency-Key support. A retried call runs again and can be charged twice. Retry only after you have confirmed the first call failed.
For new integrations use Invoice OCR. They support Idempotency-Key, return a billed flag and use one error format. See Migrate from v1.

Errors

Every wrapped detail object also carries data: null, tranx_id and timestamp.

Test scenarios

Questions: Documents FAQ. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Body

multipart/form-data
file
file
required

JPEG, PNG or PDF, up to 6 MB.

workflow_session_token
string

Set only when the call is made inside an idto workflow session.

Response

The call completed. Charged when status is success, including IDTO_202.

status
enum<string>
Available options:
success
message
string
error_code
string | null

null when the document was accepted and read. IDTO_202 when it is not an accepted type or has no invoice details; still charged.

data
object | null
tranx_id
string

idto transaction id for this call.

timestamp
string<date-time>
chargeble
enum<string>

Present and "true" only when the call was charged.

Available options:
true

Present and "true" only when the call was charged.

Available options:
true
Last modified on December 1, 2026