AI Invoice Parser
Process invoices faster than ever by extracting data and structuring it automatically with our advanced AI. Get quick and accurate data from any invoice, no matter the layout.
The AI Invoice parser automatically detects invoice layouts without the manual effort previously required to supply document parsing templates for reference.
Available Methods
[POST] /ai-invoice-parser
The AI Invoice parser automatically detects invoice layouts without the manual effort previously required to supply document parsing templates for reference.
Attributes |
---|
url required URL to the source file. Supports links from Google Drive, Dropbox, and PDF.co built-in files storage. To upload files via API, Check out the Files Upload section. |
Output contains jobId
which need to be used with job/check
endpoint to retrieve data.
- Method: POST
- URL: /v1/ai-invoice-parser
Query parameters
No query parameters accepted.
Body payload
{
"url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/document-parser/sample-invoice.pdf"
}
Example responses
/ai-invoice-parser
{
"jobId": "LFNLFAQY49RFTPFQ1JPKSA4YRTF6TXPE--155-200",
"error": false,
"status": 200,
"credits": 100,
"remainingCredits": 700904,
"duration": 0
}
Code Snippet
CURL
curl --location --request POST 'https://api.pdf.co/v1/ai-invoice-parser' \
--header 'x-api-key: ' \
--data-raw '{
"url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/document-parser/sample-invoice.pdf"
}'
[POST] /ai-invoice-parser (with callback)
The AI Invoice parser automatically detects invoice layouts without the manual effort previously required to supply document parsing templates for reference.
Attributes |
---|
url required URL to the source file. Supports links from Google Drive, Dropbox, and PDF.co built-in files storage. To upload files via API, Check out the Files Upload section. |
callback The callback URL (or Webhook) used to receive the POST data. |
Output will be available at provided callback
Webhook URL.
- Method: POST
- URL: /v1/ai-invoice-parser
Query parameters
No query parameters accepted.
Body payload
{
"url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/document-parser/sample-invoice.pdf",
"callback": "https://example.com/callback/url/you/provided"
}
Example responses
/ai-invoice-parser
{
"jobId": "SF0P14Q53DV3Z1FK77Z79FBBUZJOK98L--155-100",
"error": false,
"status": 200,
"credits": 100,
"remainingCredits": 701006,
"duration": 0
}
Code Snippet
CURL
curl --location --request POST 'https://api.pdf.co/v1/ai-invoice-parser' \
--header 'x-api-key: ' \
--data-raw '{
"url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/document-parser/sample-invoice.pdf",
"callback": "https://example.com/callback/url/you/provided"
}'
Copyright © 2016 - 2024 PDF.co