Document Object
business_idstring<biz_string>requiredThe id of the Business
"biz_R2fAXCjqJPdpYata112zyW"namestringrequiredThe original file name
255"receipt.pdf"descriptionstringrequiredThe description of the Document
255"Receipt"document_typeenum<string>requiredThe type of the Document.
receiptstatementotherpayrollbillmileageinvoicecheckfile_sizeintegerrequiredThe size of the file in kilobytes
1024statusenum<string>requiredThe status of the Document
processingprocessedpartially_processedfailedexternal_account_idstring<uuid>requiredThe External Account the Document was uploaded for. The EXTERNAL_ACCOUNT DocumentAssociation is the source of truth; this column is kept in sync with it for the readers that still use it (account deletion, the private create-transaction route), which should migrate to the association.
transaction_idstring<uuid>requiredidstring<doc_string>requiredThe id of the Document
"doc_R2fAXCjqJPdpYata112zyW"created_atstring<date-time>requiredThe datetime the Document was created in UTC ISO-8601 format
task_idstring<tsk_string>The id of the Task
"tsk_R2fAXCjqJPdpYata112zyW"memostringOptional business purpose the uploader provides for a document
"Client dinner with Acme Corp"sourceenum<string>The ingest channel the Document arrived through
manual_uploademailsmsintegration"manual_upload"external_idstringExternal identifier for deduplication (e.g., provider payroll ID)
255"gusto-payroll-abc123"metadata_objectjournal_entry_idsstring<je_string>[]The ids of the Journal Entries associated with the document
"je_R2fAXCjqJPdpYata112zyW"external_account_idsstring<eac_string>[]The ids of the External Accounts associated with the document
"eac_R2fAXCjqJPdpYata112zyW"transaction_idsstring<txn_string>[]The ids of the Transactions associated with the document
"txn_R2fAXCjqJPdpYata112zyW"status_reasonstringHuman-readable reason when the document has the failed status
failure_codestringThe code of the failure when the document has the failed status
bill_idstring<bil_string>The id of the Bill associated with the document
"bil_R2fAXCjqJPdpYata112zyW"invoice_idstring<inv_string>The id of the Invoice associated with the document
"inv_R2fAXCjqJPdpYata112zyW"check_idstring<chk_string>The id of the Check associated with the document
"chk_R2fAXCjqJPdpYata112zyW"received_check_idstring<rck_string>The id of the Received Check associated with the document
"rck_R2fAXCjqJPdpYata112zyW"