Skip to main content
POST
/
v0
/
business
/
{business_id}
/
document
Upload documents for a Business
curl --request POST \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=<string>' \
  --form 'task_id=<string>' \
  --form 'entity_ids=<string>' \
  --form files.items='@example-file'
{
  "data": {
    "business_id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "file_size": 123,
    "external_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "task_id": "tsk_R2fAXCjqJPdpYata112zyW",
    "external_id": "gusto-payroll-abc123",
    "metadata_": {},
    "journal_entry_ids": "je_R2fAXCjqJPdpYata112zyW",
    "external_account_ids": "eac_R2fAXCjqJPdpYata112zyW",
    "transaction_ids": "txn_R2fAXCjqJPdpYata112zyW",
    "bill_id": "bil_R2fAXCjqJPdpYata112zyW"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required

The id of the business

Example:

"biz_GA6EG2qFxA97NZHtxeLPUy"

Body

multipart/form-data
files
file[]
required

Document files. 5MB each, max 12 files.

task_id
string<tsk_string> | null

The ID of the associated task

document_type
enum<string> | null

The type of document being created.

Available options:
receipt,
statement,
other,
payroll,
bill,
mileage
entity_ids
(string<eac_string> | string<txn_string> | string<je_string> | string<bil_string>)[] | null

Optional list of entity ids to associate with the document. Only external accounts, transactions, and journal entries are supported.

Maximum array length: 100

Response

Successful Response

data
DocumentPublic · object
required