---
title: "Upload bill document"
method: POST
path: "/v3/documents/bills/{billId}"
tags: ["documents"]
---

# Upload bill document

`POST /v3/documents/bills/{billId}`

Upload a document for an existing bill. The file size limit is 6 MB. When you upload a bill document, the uploaded document is available on the bill details page in the BILL web app.

In the response, the `name`, `createdTime`, and `downloadLink` is available when the upload is complete.

When you upload a document, it takes a few minutes for BILL to complete the upload process.
* **Upload in-progress**: A temporary BILL-generated ID is available for the document when the upload is in progress. The value begins with `0du`. You can get the document upload status with `GET /v3/documents/upload-status`.
* **Upload complete**: A BILL-generated ID is available for the document when the upload is complete. The value begins with `00h`. You can get details about the uploaded document with `GET /v3/documents/bills/{billId}`.

See [Documents and attachments](https://developer.bill.com/docs/documents-attachments) in the Guides section for more information, sample requests, and responses.

## Path parameters

- `billId` string, required — BILL-generated ID of the bill. The value begins with `00n`.

## Query parameters

- `name` string, required — File name with extension. For example, to upload a PDF document titled `business_details`, set `name` as `business_details.pdf`.

## Headers

- `sessionId` string, nullable — API session ID generated with `/v3/login`
- `devKey` string, nullable — Developer key generated with your BILL developer account

## Response `200`

Upload bill document response

- DocumentCreateResponseDto — Document response.
  - `uploadId` string — BILL-generated ID of the upload. This is a temporary BILL-generated ID for the document when the upload is in progress. The value begins with `0du`. When the upload is complete, a new BILL-generated ID is available for the document. The value begins with `00h`. You can get the document upload status with `GET /v3/documents/upload-status`.

## Other responses

- `4XX` — List of errors.
- `5XX` — List of errors.

---

[API](https://skmtc.net/bill/apis/bill-v3-api.md) · [All operations](https://skmtc.net/bill/apis/bill-v3-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bill/bill-v3-api/revisions/0483350c434e/schema)
