201 Successful Response
Schema: BillAICreatePayloadResponse
-
itemsarray · DraftBill requiredDraftBill -
List of draft bill entities extracted by AI.
17 fields
-
vendor_namestring -
Vendor/company name extracted by AI. Use to match or create a vendor.
-
amountinteger -
Bill amount in cents extracted by AI.
-
descriptionstring -
Description of what the bill is for.
-
bill_numberstring -
Bill/invoice number from the vendor document.
-
bill_datestring -
Date of the bill (YYYY-MM-DD) extracted by AI.
-
expense_categorystring -
Expense category suggested by AI (e.g., 'Office Supplies', 'Rent').
-
vendor_idstring -
Matched vendor UUID (if the vendor was found in the system).
-
currencystring -
Currency code (USD, CAD, AUD, EUR, or GBP). Defaults to USD.
-
typestring -
Bill type: 'recurring' or 'one_time'. Defaults to 'one_time'.
-
received_onstring -
Date bill was received (ISO 8601). Defaults to bill_date if available.
-
due_onstring -
Payment due date (ISO 8601). Maps from due_date.
-
s3_keystring -
S3 key of the source document for this bill.
-
ledger_idstring -
Matched expense ledger UUID (if matched from expense_category).
-
journal_entry_datestring -
Date for journal entry (ISO 8601). Defaults to received_on.
-
confidencenumber -
AI confidence score for this extraction (0.0-1.0).
-
sourcestring -
Source type: 'pasted_text', 'single_file', or 'multi_file'.
-
source_filenamestring -
Original filename or S3 key of the source document.
-
-
errorsarray · FileProcessingError FileProcessingError -
List of per-file errors for files that could not be processed.
3 fields
-
s3_keystring required -
S3 key of the file that failed.
-
filenamestring -
Original filename (if determinable from the S3 key).
-
errorstring required -
Human-readable error description.
-