Logout ITR Session
End the income tax portal session for a PAN after ITR calls complete. Server-side POST with Bearer auth.
API reference
JWT Bearer token authentication. Obtain a token from the KwikID dashboard.
In: header
Pan number
stringResponse Body
curl -X POST "https://__mock__/verification/v2/itr/logout" \ -H "Content-Type: application/json" \ -d '{}'{
"status": {}
}{
"detail": {},
"message": "string"
}{
"detail": {},
"message": "string"
}{
"error": "string"
}Overview
Call POST /verification/v2/itr/logout from your backend when the user has finished Get ITR Data or abandons the flow, so the ITR portal session tied to that PAN can be closed cleanly.
Send Authorization: Bearer <token> and an optional JSON body with pan if your integration passes it for correlation.
Key features
- Session hygiene: Reduces risk of stale portal sessions for repeat users.
- Same auth model as other ITR endpoints.
Implementation
Step 1: Call from your backend
POST /verification/v2/itr/logout HTTP/1.1
Host: <verification-api-base-url>
Authorization: Bearer <token>
Content-Type: application/json
{
"pan": "ABCDE1234F"
}Step 2: Confirm outcome
On 200 OK, read status if present and mark your server-side session complete.
Error handling
| HTTP status | When |
|---|---|
| 400 | Validation error. |
| 401 | Invalid Bearer token. |
| 500 | Server error. |
Benefits
- Clear lifecycle boundary after ITR data pulls.
Next steps
Get ITR Data for Assessment Year POST
Fetch ITR filing data for a specific assessment year. Server-side POST with Bearer auth; supply PAN and year in the JSON body.
Verify DL Basic POST
Verify an Indian driving licence against RTO records with DL number, DOB, and consent. Server-side POST with Bearer auth.