201Successful Response
Schema: SuccessEnvelope_BillAICreatePayloadResponse_
successbooleanmessagestringcodestringdataBillAICreatePayloadResponse
/api/v1/bills/ai-createUpload pasted text, PDFs, images, Excel files, or a CSV to extract draft bill entities using AI. Returns draft bills in 'received' status format ready for user review before creation.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: BillAICreatePayloadRequest
pasted_textstringRaw text content to extract a bill from. Limit 1 bill per text input. Mutually exclusive with pasted_text_s3_key.
pasted_text_s3_keystringS3 key of pasted text content. Limit 1 bill per text input. Mutually exclusive with pasted_text.
single_bill_s3_keysarray · stringS3 keys of individual bill documents (PDFs, images, Excel). Each file is processed independently.
multi_bill_s3_keystringS3 key of a CSV file containing multiple bills.
Schema: SuccessEnvelope_BillAICreatePayloadResponse_
successbooleanmessagestringcodestringdataBillAICreatePayloadResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject