201 Successful Response
Schema: InvoiceAICreatePayloadResponse
-
itemsarray · DraftInvoice requiredDraftInvoice -
List of draft invoice entities extracted by AI.
14 fields
-
customer_namestring -
Customer/company name extracted by AI. Use to match or create a customer.
-
amountinteger -
Total invoice amount in cents extracted by AI.
-
descriptionstring -
Invoice description or notes.
-
invoice_numberstring -
Invoice number from the document.
-
issue_datestring -
Invoice issue date (YYYY-MM-DD) extracted by AI.
-
due_datestring -
Payment due date (YYYY-MM-DD) extracted by AI.
-
notesstring -
Additional notes or terms extracted by AI.
-
customer_idstring -
Matched customer UUID (if the customer was found in the system).
-
currencystring -
Currency code (USD, CAD, AUD, EUR, or GBP). Defaults to USD.
-
line_itemsarray · object -
Line items extracted by AI: [{description, quantity, unit_price_cents, total_cents}].
-
s3_keystring -
S3 key of the source document for this invoice.
-
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 · InvoiceFileProcessingError InvoiceFileProcessingError -
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.
-