Skip to Content
BusinessDocuments

Document Object

business_idstring<biz_string>required

The id of the Business

Example:"biz_R2fAXCjqJPdpYata112zyW"
namestringrequired

The original file name

Maximum string length:255
Example:"receipt.pdf"
descriptionstringrequired

The description of the Document

Maximum string length:255
Example:"Receipt"
document_typeenum<string>required

The type of the Document.

Available options:receiptstatementotherpayrollbillmileageinvoicecheck
file_sizeintegerrequired

The size of the file in kilobytes

Example:1024
statusenum<string>required

The status of the Document

Available options:processingprocessedpartially_processedfailed
external_account_idstring<uuid>required

The 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>required
idstring<doc_string>required

The id of the Document

Example:"doc_R2fAXCjqJPdpYata112zyW"
created_atstring<date-time>required

The datetime the Document was created in UTC ISO-8601 format

task_idstring<tsk_string>

The id of the Task

Example:"tsk_R2fAXCjqJPdpYata112zyW"
memostring

Optional business purpose the uploader provides for a document

Example:"Client dinner with Acme Corp"
sourceenum<string>

The ingest channel the Document arrived through

Available options:manual_uploademailsmsintegration
Default:"manual_upload"
external_idstring

External identifier for deduplication (e.g., provider payroll ID)

Maximum string length:255
Example:"gusto-payroll-abc123"
metadata_object
journal_entry_idsstring<je_string>[]

The ids of the Journal Entries associated with the document

Example:"je_R2fAXCjqJPdpYata112zyW"
external_account_idsstring<eac_string>[]

The ids of the External Accounts associated with the document

Example:"eac_R2fAXCjqJPdpYata112zyW"
transaction_idsstring<txn_string>[]

The ids of the Transactions associated with the document

Example:"txn_R2fAXCjqJPdpYata112zyW"
status_reasonstring

Human-readable reason when the document has the failed status

failure_codestring

The code of the failure when the document has the failed status

bill_idstring<bil_string>

The id of the Bill associated with the document

Example:"bil_R2fAXCjqJPdpYata112zyW"
invoice_idstring<inv_string>

The id of the Invoice associated with the document

Example:"inv_R2fAXCjqJPdpYata112zyW"
check_idstring<chk_string>

The id of the Check associated with the document

Example:"chk_R2fAXCjqJPdpYata112zyW"
received_check_idstring<rck_string>

The id of the Received Check associated with the document

Example:"rck_R2fAXCjqJPdpYata112zyW"