(Deprecated) How to upload an invoice from File?

ClearTax supports uploading of documents in different types of templates. For the purpose of this walk-through, let us upload a sales invoice in ClearTax template. Download a sample file from here.

Upload a sales invoice

You can upload the sales invoice in ClearTax template by submitting a POST request to the URL query string:


The request should have the following headers:

x-cleartax-auth-token: <USER_AUTH_TOKEN>
Content-Type: multipart/form-data
Accept: application/json

If you do not have a user authentication token, click here to learn how to generate an authentication token.

The body of the request is sent as form-data and requires the following properties:

excelFile - The location of the asset on your file system.

Sample Request:


Sample Response:

    activity_id​: b104-e4a629ee-0569-54c4f3fb0123-4657,
    error_response​: {},
    group_id​: {},
    other_activity_ids​: {}

The activity_id is the unique ID associated with this upload activity. To fetch the status or any details of the upload activity, you will have to send this ID along with consequent API calls.

For a complete list of File Upload API calls and request properties, see the File Upload API Reference.

page(Deprecated) GST File Upload API Reference

Last updated