Processing Options
Invaro offers two ways to process documents:
- Individual Processing - Process one document at a time
- Batch Processing - Process up to 10 documents simultaneously
Individual Processing
curl -X POST "https://api.invaro.ai/api/v1/parse/invoices" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"document_id": "your_document_id"
}'
const response = await fetch('https://api.invaro.ai/api/v1/parse/invoices', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
document_id: document_id
})
});
const data = await response.json();
const job_id = data.data.job_id;
curl -X POST "https://api.invaro.ai/api/v1/parse/invoices" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"document_id": "your_document_id"
}'
const response = await fetch('https://api.invaro.ai/api/v1/parse/invoices', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
document_id: document_id
})
});
const data = await response.json();
const job_id = data.data.job_id;
curl -X POST "https://api.invaro.ai/api/v1/parse/statements" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"document_id": "your_document_id"
}'
const response = await fetch('https://api.invaro.ai/api/v1/parse/statements', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
document_id: document_id
})
});
const data = await response.json();
const job_id = data.data.job_id;
Batch Processing
Process multiple documents at once (maximum 10 documents per batch):
curl -X POST "https://api.invaro.ai/api/v1/parse/invoices/batch" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"files": [
{"document_id": "uuid-of-document-1"},
{"document_id": "uuid-of-document-2"}
]
}'
const response = await fetch('https://api.invaro.ai/api/v1/parse/invoices/batch', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
files: [
{document_id: "uuid-of-document-1"},
{document_id: "uuid-of-document-2"}
]
})
});
const data = await response.json();
const { batch_id, job_ids } = data.data;
curl -X POST "https://api.invaro.ai/api/v1/parse/invoices/batch" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"files": [
{"document_id": "uuid-of-document-1"},
{"document_id": "uuid-of-document-2"}
]
}'
const response = await fetch('https://api.invaro.ai/api/v1/parse/invoices/batch', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
files: [
{document_id: "uuid-of-document-1"},
{document_id: "uuid-of-document-2"}
]
})
});
const data = await response.json();
const { batch_id, job_ids } = data.data;
curl -X POST "https://api.invaro.ai/api/v1/parse/statements/batch" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"files": [
{"document_id": "uuid-of-document-1"},
{"document_id": "uuid-of-document-2"}
]
}'
const response = await fetch('https://api.invaro.ai/api/v1/parse/statements/batch', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
files: [
{document_id: "uuid-of-document-1"},
{document_id: "uuid-of-document-2"}
]
})
});
const data = await response.json();
const { batch_id, job_ids } = data.data;
For batch processing, you’ll receive both a batch_id
and an array of job_ids
. You can use either to check the processing status.
Next Steps
Check Status
Learn how to check the processing status of your documents