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=[
null
]' \
--form document_type=receipt \
--form 'description=<string>' \
--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",
"id": "doc_R2fAXCjqJPdpYata112zyW",
"created_at": "2023-11-07T05:31:56Z"
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The response is of type object
.
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=[
null
]' \
--form document_type=receipt \
--form 'description=<string>' \
--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",
"id": "doc_R2fAXCjqJPdpYata112zyW",
"created_at": "2023-11-07T05:31:56Z"
}
}
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=[
null
]' \
--form document_type=receipt \
--form 'description=<string>' \
--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",
"id": "doc_R2fAXCjqJPdpYata112zyW",
"created_at": "2023-11-07T05:31:56Z"
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The response is of type object
.
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=[
null
]' \
--form document_type=receipt \
--form 'description=<string>' \
--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",
"id": "doc_R2fAXCjqJPdpYata112zyW",
"created_at": "2023-11-07T05:31:56Z"
}
}