POST
/
v0
/
business
/
{business_id}
/
document
Upload Documents to a Task
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 'task_id=<string>'
{
  "data": {
    "task_id": "tsk_R2fAXCjqJPdpYata112zyW",
    "business_id": "biz_R2fAXCjqJPdpYata112zyW",
    "name": "receipt.pdf",
    "description": "Receipt",
    "document_type": "receipt",
    "file_size": 1024,
    "status": "processing",
    "external_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "metadata_": {},
    "id": "doc_R2fAXCjqJPdpYata112zyW",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

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

Body

multipart/form-data
files
file[]
required

Document files. 5MB each, max 10 files. Only PDF bank statements are supported

task_id
string<tsk_string> | null

The ID of the associated task

Response

Successful Response

data
object
required