Get Results of Invoices Accessible By A Specific User

Endpoint Name: getuserdocuments

Request type : POST

Authorization : Bearer token as header

Endpoint Details : This API is used to get the results of all the invoices uploaded by that particular user of a company.

Request Type

Method

URL

POST

URL/access/klearstack/getuserdocuments

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.

approve_flag

string

No

If approve_flag is true, then it returns the invoices which are approved.

save_flag

string

No

If save_flag is true, then it returns the invoices which are saved.

Request Code Samples

Shell

  • Request body

Python

  • Request body

Java (OkHttp)

  • Request body

Node.js (Axios)

  • Request body

JavaScript (XHR)

  • Request body

API Response

Status Code

Response

200

{ "result": [ [ [ "6912b53742d6a9c1aa134424", "Document_id" ], [ 1, "Is_Approved" ], [ 1, "Is_Approved" ], [ 0.8624999978870219, "overall_confidence" ], [ "1.500", "Full_Box_Equivalent", 0.90377812915278, { "page_index": 2 } ], [ "55413.0", "Inv_Total", 0.984644436694877, { "page_index": 1 }, [ 1045, 630, 1104, 645 ] ], [ "Flora Concept Llc", "Inv_Supplier", 0.75, { "page_index": 1 }, [ 524, 43, 819, 63 ] ], [ "SOLD TO TRADEWINDS INTL LLC ADDRESS : 2506 PIONEER AVE VISTA CA 92081 SHIPMENT DATE: : 2025/07/26 AWB : 369-95018663 AWBH : BOG - 06717056 FARM NAME : THE ELITE FLOWER S.A.S. C.I.", "Shipto_Party_Address", 0.9, { "page_index": 1 }, [ 92, 253, 577, 570 ] ], [ "SOLD TO TRADEWINDS INTL LLC", "Shipto_Party_Name", 0.9, { "page_index": 1 }, [ 92, 255, 452, 271 ] ], [ "Redacted", "Sign_Exist_Flag", 0.99, { "page_index": 1 }, [ 0, 0, 0, 0 ] ], [ "Redacted", "Sign_Exist_Flag", 0.99, { "page_index": 2 }, [ 0, 0, 0, 0 ] ], [ "BOGOTA", "Inv_Origin", 0.945851113595394, { "page_index": 1 }, [ 929, 251, 1009, 267 ] ], [ "26-Jul-2025", "Inv_Date", 0.47145548871914267, { "page_index": 1 }, [ 1240, 69, 1312, 81 ] ], [ "SOLD TO TRADEWINDS INTL LLC", "Inv_Customer", 0.75, { "page_index": 1 }, [ 201, 253, 452, 271 ] ], [ "1882271", "Inv_Number", 1, { "is_modified": 1 }, { "page_index": 1 }, [ 1227, 163, 1378, 214 ] ], [ "ADDRESS : 2506 PIONEER AVE VISTA , CA 92081,", "Inv_Customer_Address", 0.885890521716398, { "page_index": 1 }, [ 92, 551, 253, 302 ] ] ] ], "status": "complete" }

403

Forbidden: Client Error

501

Server Error

Last updated