Complete API reference for integrating with BillExtractor through Zapier and custom applications. Extract key information from invoices, receipts, and financial documents.
All API requests require authentication using an API key in the request headers.
| Header | Value | Description |
|---|---|---|
X-API-Key |
your_api_key_here |
Your unique API key for authentication |
Content-Type |
application/json |
Required for POST requests with JSON body |
curl -X GET "https://billextractor.com/api/zapier/test-connection" \
-H "X-API-Key: your_api_key_here"
{
"status": "connected",
"user": {
"email": "user@example.com",
"credits": 29
}
}
{
"error": "Invalid or inactive API key"
}
The following endpoints are used by the Zapier integration and can also be called directly from custom applications.
Purpose: Verify API key validity and test connection to the BillExtractor API.
This endpoint has no query parameters or request body.
{
"status": "connected",
"user": {
"email": "user@example.com",
"credits": 29
}
}
{
"error": "Invalid or inactive API key"
}
Purpose: List recently extracted key information from invoices and receipts. This is the primary trigger endpoint for Zapier workflows.
| Parameter | Type | Required | Description |
|---|---|---|---|
since |
string | Optional | ISO 8601 timestamp (e.g., 2024-01-01T00:00:00). Only return extractions after this time. |
limit |
integer | Optional | Number of results to return. Default: 100, Max: 1000 |
curl -X GET "https://billextractor.com/api/zapier/key-info?since=2026-09-01T00:00:00&limit=20" \
-H "X-API-Key: your_api_key_here"
[
{
"id": 456,
"fileName": "invoice.pdf",
"createdAt": "2026-09-14T10:30:00+08:00",
"invoice_number": "INV-2026-001",
"invoice_date": "2026-09-14",
"date_of_issue": "2026-09-14",
"date_due": "2026-10-14",
"total": "1,234.56",
"subtotal": "1,000.00",
"subtotal_less_discount": "",
"tax_rate": "23.456%",
"total_tax": "234.56",
"discount": "",
"shipping_handling": ""
},
...
]
Purpose: Extract structured key information from invoices, receipts, and financial documents using AI.
{
"pdfUrl": "https://example.com/invoice.pdf",
"fileName": "invoice.pdf"
}
| Field | Type | Required | Description |
|---|---|---|---|
pdfUrl |
string | Required | Publicly accessible URL to the PDF file. The URL must not require authentication. |
fileName |
string | Optional | Name of the file for identification. Default: "invoice.pdf" |
curl -X POST "https://billextractor.com/api/zapier/extract-key-info" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"pdfUrl": "https://drive.google.com/uc?export=download&id=FILE_ID",
"fileName": "vendor_invoice.pdf"
}'
{
"status": "completed",
"fileName": "vendor_invoice.pdf",
"invoice_number": "INV-2026-001",
"invoice_date": "2026-09-14",
"date_of_issue": "2026-09-14",
"date_due": "2026-10-14",
"total": "1,234.56",
"subtotal": "1,000.00",
"subtotal_less_discount": "",
"tax_rate": "23.456%",
"total_tax": "234.56",
"discount": "",
"shipping_handling": ""
}
{
"error": "Failed to download PDF from URL. Please ensure the URL is publicly accessible and points to a valid PDF file."
}
{
"error": "Extraction failed: Unable to parse document structure"
}
The API uses standard HTTP status codes to indicate success or failure of requests.
| HTTP Status | Description | Common Causes |
|---|---|---|
200 OK |
Request completed successfully | N/A |
400 Bad Request |
Invalid request parameters | Missing required fields, invalid URL format, non-PDF file |
401 Unauthorized |
Authentication failed | Invalid or missing API key, inactive integration |
403 Forbidden |
Access denied | Insufficient credits, account restrictions |
404 Not Found |
Resource not found | Extraction ID does not exist |
500 Internal Server Error |
Server-side error | Processing failure, timeout, unexpected error |
{
"error": "Descriptive error message explaining what went wrong"
}
BillExtractor uses a credit-based system to track API usage. Each extraction operation consumes credits from your account.
| Plan | Credits | Period |
|---|---|---|
| Anonymous (no login) | 3 | Per day (rolling window) |
| Registered (free) | 30 | Per day (rolling window) |
| Starter | 400 | Per month |
| Growth | 1,000 | Per month |
| Business | 4,000 | Per month |
You can check your remaining credits by calling the test-connection endpoint:
curl -X GET "https://billextractor.com/api/zapier/test-connection" \
-H "X-API-Key: your_api_key_here"
# Response:
{
"status": "connected",
"user": {
"email": "user@example.com",
"credits": 29 // Remaining credits
}
}
pdfUrl, make sure the URL is publicly accessible without authentication. For Google Drive files, use the direct download link format: https://drive.google.com/uc?export=download&id=FILE_IDlimit values to avoid large payloads.For questions, issues, or feedback about the API: