Invoice Extraction
- This API extracts information from an invoice file.
- Note: The file should be in a supported format (e.g., PDF).
Header Parameters
The content type should be multipart/form-data for file upload.
API key for authorization.
Request Body
The file to extract data from (e.g., invoice document).
- 200
- 400
- 401
- 422
Success
Schema
- Array [
- ]
result object
Extracted data from the invoice.
Vendor who created this invoice.
Address of the vendor.
Name associated with vendor address.
Customer to whom the invoice is given.
Reference id for a customer.
Address of the invoiced customer.
Name associated with customer address.
Reference id for the given invoice.
The date the invoice was given to the customer.
Total charges issued in the invoice.
Due date for the payment.
A reference number for a purchase order.
Billing address of the customer.
Name associated with the billing address.
Shipping address of the customer.
Name associated with the shipping address.
Invoice items object[]
The item descripiton.
Respective Quantity of the invoice item.
The unit measurement of the invoice item.
The price of one unit of the invoice item.
Code associated with the respective invoice item.
Date asscoiated with each invoice item.
Tax associated with each invoice item.
Total amount of the invoice item.
Subtotal on the invoice.
Total discount on the invoice.
Total tax on the invoice.
Previous unpaid balance amount.
Total amount to be paid by the customer.
Starting date of the service.
Ending date of the service.
Explicit service address for the customer.
Name associated with the service address.
Explicit payment address for the customer.
Name associated with Remittance address.
The tax ID associated with vendor.
The tax ID associated with customer.
Tax Details object
Amount of the tax detail.
Rate of the tax detail.
table_n object
All the tables extracted. table_n means nth table where n=1,2,3,...
All the rows in the table extracted. row_n means nth row of a table where n=1,2,3,...
All the text extracted from the document.
{
"result": {
"Vendor Name": "string",
"Vendor Address": "string",
"Vendor Address Recipient": "string",
"Customer Name": "string",
"Customer Id": "string",
"Customer Address": "string",
"Customer Address Recipient": "string",
"Invoice Id": "string",
"Invoice Date": "string",
"Invoice Total": "string",
"Due Date": "string",
"Purchase Order": "string",
"Billing Address": "string",
"Billing Address Recipient": "string",
"Shipping Address": "string",
"Shipping Address Recipient": "string",
"Invoice items": [
{
"Description": "string",
"Quantity": "string",
"Unit": "string",
"Unit Price": "string",
"Product Code": "string",
"Date": "string",
"Tax": "string",
"Amount": "string"
}
],
"Subtotal": "string",
"Total Discount": "string",
"Total Tax": "string",
"Previous Unpaid Balance": "string",
"Amount Due": "string",
"Service Start Date": "string",
"Service End Date": "string",
"Service Address": "string",
"Service Address Recipient": "string",
"Remittance Address": "string",
"Remittance Address Recipient": "string",
"Vendor Tax Id": "string",
"Customer Tax Id": "string",
"Tax Details": {
"Amount": "string",
"Rate": "string"
},
"table_n": {
"row_n": [
"string"
]
},
"whole_extracted_text": [
"string"
]
}
}
{
"result": {
"Vendor Name": "Vendor Name",
"Customer Name": "Customer Name",
"Invoice Id": "INV123456",
"Invoice Date": "2024-12-01",
"Invoice Total": 500.75,
"Invoice items": [
{
"Description": "Item 1 Description",
"Amount": 200.25
}
],
"Tax Details": [
{
"Amount": 50.75,
"Rate": 10
}
],
"table_1": {
"row_1": [
"Row 1, Column 1",
"Row 1, Column 2"
]
},
"whole_extracted_text": [
"Line 1 of extracted text",
"Line 2 of extracted text"
]
}
}
Bad Request
Schema
Status of the API
The error message of the API
{
"status": "string",
"message": "string"
}
{
"status": "failed",
"message": "Bad Request"
}
Unauthorized
Schema
Status of the API
The error message of the API
{
"status": "string",
"message": "string"
}
{
"status": "Unauthorized"
}
Unprocessable Entity
Schema
Status of the API
The error message of the API
The errors array which includes objects with a "property" and "message" properties describing the error
{
"customCode": 0,
"message": "string"
}
{
"customCode": 422,
"message": "Validation Error",
"errorsArray": []
}