Upload Multiple Documents In A Zip Folder And Get Batch Id

Endpoint Name: uploadbatch

Request type : POST

Authorization: Bearer token as header

Endpoint Details: This API is used to get a single batch id for all the invoices uploaded by the user in the form of a zip folder.

Request Type

Method

URL

POST

URL/access/klearstack/uploadbatch

Request Body

Params

Values

Required

Description

company_name

string

Yes

Name of the company.

username

string

Yes

Username for a particular user of a company.

password

string

Yes

Password for a particular user of a company.

file

Binary

Yes

Zip folder containing images/pdf.

processing_pref

string

Yes

Either “Speed” or “Accuracy” ” (It’s not case sensitive).

document_type

string

Yes

Type of document to be processed -

“Invoices”, “Receipts”, “PurchaseOrders”,“NACH”,“LoanAgreement” or “Insurances”.

invoice_type

string

Yes

“B2B” for invoices commissioned by a business to another business directly;

“B2C” for invoices commissioned by a business to a consumer.

“B2C” for Insurances.

source_name

String

No

API

priority_flag

String

No

true or false

account_id

String

No

Account_id number

set_reference_number

String

No

For adding document in Existing Set

set_name

String

No

For assigning Name to document set, it cannot be updated after set is created.

create_new_set

String

No

Flag needs to be True for creating new set, the param if set to True will create a new set with the given set_name and assign new set_reference_number to the document.

Shell

  • Request Body

Python (Requests)

  • Request Body

Java (OkHttp)

  • Request Body

Node.js (Axios)

  • Request Body

JavaScript (XHR)

  • Request Body

API Response

Status

Example Response

200

{

"Function successfully executed!": "169a4df0-52c4-4835-8bb4-10296c8e5e3a",

"release_version": "7.8.9",

"set_reference_number":"12345"

}

400

{"error": "Please provide username."}

400

{"error": "Please provide password."}

401

{"error": "Incorrect username or password."}

500

{"error": "Something went wrong. Please try again later."}

Last updated