Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token authentication using JWT |
| Content-Type | Yes | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | String | Yes | Unique Client ID obtained from Create Client endpoint |
| financial_year | String | Yes | Financial year in "YYYY-YY" format (e.g., "2022-23") |
{
"client_id": "itr_zPFdvKzxGoZEOmJuPZfc",
"financial_year": "2022-23"
}| Parameter | Type | Description |
|---|---|---|
| data | Object | Container for the response data |
| data.client_id | String | Unique Client ID |
| data.pan_no | String | PAN (Permanent Account Number) of the client |
| data.ais_file | String | The file containing AIS data (empty if status is pending) |
| data.file_type | String | Type of the file (JSON/PDF, empty if status is pending) |
| data.status | String | Current status of the AIS download (pending/completed) |
| data.financial_year | String | Financial year associated with the data (e.g., "2022-23") |
| status_code | Integer | HTTP status code |
| success | Boolean | Indicates if the request was successful |
| message | String | Human-readable status message |
| message_code | String | Machine-readable status code |
{
"data": {
"client_id": "itr_NbbjQVLknmgpagZXpxta",
"pan_no": "EOHPK1234E",
"ais_file": "",
"file_type": "",
"status": "pending",
"financial_year": "2022-23"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 400,
"success": false,
"message": "Invalid client_id provided",
"message_code": "invalid_client_id"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/itr/download-ais-v2' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "itr_zPFdvKzxGoZEOmJuPZfc",
"financial_year": "2022-23"
}'{
"data": {
"client_id": "itr_NbbjQVLknmgpagZXpxta",
"pan_no": "EOHPK1234E",
"ais_file": "",
"file_type": "",
"status": "pending",
"financial_year": "2022-23"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}