# (Deprecated) Getting Upload Validation

{% hint style="danger" %}
This API is deprecated. Please use the [E-Waybill APIs from the unified set available here](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/introduction-to-e-invoicing-api).
{% endhint %}

## Get upload validation

<mark style="color:blue;">`GET`</mark> `https://ewb.cleartax.in/api/v0.2/taxable_entities/{taxable_entity_id}/upload_activity/{activity_id}`

This endpoint allows you to get file upload validation.\
\&#xNAN;**{taxable\_entity\_id}** : taxable entity ID associated to the GSTIN.\
\&#xNAN;**{activity\_id}** : activity id given by Creating or Updating Documents API.\
\
`Sample request : https://ewb.cleartax.in/api/v0.2/taxable_entities/c5cc664c-d473-4ec5-9301-acf43349b7c4/upload_activity/02de95e9-864d-49b5-a793-5e29f718dd2b`

#### Headers

| Name                                        | Type   | Description                                        |
| ------------------------------------------- | ------ | -------------------------------------------------- |
| X-Cleartax-Auth-Token: \<USER\_AUTH\_TOKEN> | string | Auth token will be generated & given upon request. |

{% tabs %}
{% tab title="200 file upload validation successfully retrieved.
Note: Only the response fields relevant for integration are mentioned above. Actual response will have other fields which may not be relevant here.
" %}

```javascript
{
    "activity_id": "02de95e9-864d-49b5-a793-5e29f718dd2b",
    "owner_taxable_entity_id": "c5cc664c-d473-4ec5-9301-acf43349b7c4",
    "owner_gstin": "27AACCB1409R1ZH",
    "owner_taxable_entity_name": "Maharashtra",
    "status": "PROCESSED",
    "total_rows_processed": 2,
    ........
}
```

{% endtab %}

{% tab title="404 In case provided activity\_id or parameter is incorrect." %}

```javascript
{
    "errors": {
        "err_1": {
            "code": "404",
            "message": "Unknown activity id 02de95e9-864d-49b5-a793-5e29f718dd2",
            "error_group_code": 0,
            "error_id": 0
        }
    }
}
```

{% endtab %}
{% endtabs %}
