POST
/
Import
/
ocrDocumentJson
/
{typeResult}

Learn how to use our OCR engine to scrape documents and create : Use the OCR Engine

Authorizations

requestToken
string
header
required

Most endpoints require an organization token. Some endpoints require an application token, and those endpoints are noted.

Path Parameters

typeResult
string
required

The type of object to create in Payabli. Accepted values are bill and invoice.

Body

Contains details about a file. See See fileObject Object Model for a complete reference.

fContent
string | null

Content of file, Base64-encoded. Ignored if furl is specified.

filename
string | null

The name of the attached file.

ftype
enum<string> | null

The MIME type of the image file (if content is provided).

Available options:
pdf,
jpg,
jpeg,
png,
gif
furl
string | null

Optional url provided to show or download the file remotely.

Response

200 - application/json

Success

isSuccess
boolean

Boolean indicating whether the operation was successful. A true value indicates success. A false value indicates failure.

pageIdentifier
string | null

Auxiliary validation used internally by payment pages and components.

responseCode
integer | null

Code for the response. Learn more in API Response Codes.

responseData
object | null

Object containing the response data.

responseText
string | null

Response text for operation: 'Success' or 'Declined'.

Was this page helpful?