> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/cleartax-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file.md).

# Ingest Documents via File

A file can contain either sale documents or purchase documents. Each document can contain one or more document line items. Each document line item represents one row in the file.

A file can contain documents belonging to one or more GSTINs belonging to the same PAN.

To upload a file, the following 4 APIs are to be used in the same order:

{% content-ref url="/pages/VHi1hdNho6ECHxxVosZ2" %}
[Get Pre-signed URL](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/get-pre-signed-url.md)
{% endcontent-ref %}

{% content-ref url="/pages/tkVhu4yaoUVTZWb2zjeI" %}
[Upload File to Storage](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/upload-file-to-storage.md)
{% endcontent-ref %}

{% content-ref url="/pages/Pfs0Pp691nmfeZeWhmmc" %}
[Trigger File Ingestion](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/trigger-file-ingestion.md)
{% endcontent-ref %}

{% content-ref url="/pages/Bg75BXjUuGXPtfjg6nUE" %}
[Get File Ingestion Status](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/get-file-ingestion-status.md)
{% endcontent-ref %}
