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 the "Download AIS V2" 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 AIS data |
| data.client_id | String | Unique Client ID |
| data.pan_no | String | PAN (Permanent Account Number) of the client |
| data.ais_file | String | URL pointing to the AIS data file |
| data.file_type | String | Type of the file (JSON or PDF) |
| data.status | String | Current status of the AIS data (pending or 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 | Response message |
| message_code | String | Code representing the response message |
{
"data": {
"client_id": "itr_NbbjQVLknmgpagZXpxta",
"pan_no": "EOHPK1234E",
"ais_file": "https://aadhaar-kyc-docs.s3.amazonaws.com/itr/itr_NbbjQVLknmgpagZXpxta/EOHP1234E/1804202420004784-2024-04-18-150908417544.pdf?X-Amz-Algorith",
"file_type": "pdf",
"status": "completed",
"financial_year": "2022-23"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"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/get-ais' \
--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": "https://aadhaar-kyc-docs.s3.amazonaws.com/itr/itr_NbbjQVLknmgpagZXpxta/EOHP1234E/1804202420004784-2024-04-18-150908417544.pdf?X-Amz-Algorith",
"file_type": "pdf",
"status": "completed",
"financial_year": "2022-23"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}