GET
/
v0
/
business
/
{business_id}
/
document
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/document \
  --header 'Authorization: Bearer <token>'
{
  "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"
    }
  ],
  "pagination": {
    "next_page_token": "<string>",
    "previous_page_token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

business_id
string
required

Query Parameters

document_type
enum<string> | null

Include only Documents with the given document_type

Available options:
receipt,
statement,
other
transaction_id
string | null

Include only Documents that have the given transaction_id

start_datetime
string | null

Include documents after this period (inclusive) in ISO-8601 format

end_datetime
string | null

Include documents before this period (inclusive) in ISO-8601 format

page_token
string | null
page_size
integer
default:100
Required range: 1 <= x <= 100

Response

200
application/json

Successful Response

The response is of type object.

GET
/
v0
/
business
/
{business_id}
/
document
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/document \
  --header 'Authorization: Bearer <token>'
{
  "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"
    }
  ],
  "pagination": {
    "next_page_token": "<string>",
    "previous_page_token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

business_id
string
required

Query Parameters

document_type
enum<string> | null

Include only Documents with the given document_type

Available options:
receipt,
statement,
other
transaction_id
string | null

Include only Documents that have the given transaction_id

start_datetime
string | null

Include documents after this period (inclusive) in ISO-8601 format

end_datetime
string | null

Include documents before this period (inclusive) in ISO-8601 format

page_token
string | null
page_size
integer
default:100
Required range: 1 <= x <= 100

Response

200
application/json

Successful Response

The response is of type object.