> ## Documentation Index
> Fetch the complete documentation index at: https://developer.quicko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Open APIs

> Access tax-related data and user insights with consent-based Open APIs

Open APIs are simple, easy to understand collection of REST-like APIs designed for **"Connect" partners** to enhance their understanding about their customers. Open APIs provide a secure, consent-based mechanism to gain insights into users' demographics, income situations and tax deductions, enabling data-driven and personalized investment & financial planning products.

> [card] [Try Quicko Connect in Postman](https://postman.com/com-quicko/quicko-connect)
>
> ![Quicko Connect Workspace](https://mintcdn.com/company-quicko-8c502003/WQlNPxL-997jalUs/projects/connect/assets/getting-started/open-apis.png?fit=max\&auto=format\&n=WQlNPxL-997jalUs\&q=85\&s=c7240514b08b3f3a7830bd1ff04cf947)

## Overview

Open APIs allow "Connect" partners to access a variety of tax-related data through secure, consent-based endpoints.

> [card] [User Details](https://developer.quicko.com/projects/connect/api-reference/open-apis/entitlements/user-details.md)
>
> Retrieve verified identity of the user, such as name, email, and mobile number.

> [card] [Tax Payer](https://developer.quicko.com/projects/connect/api-reference/open-apis/income-tax/tax-payer.md)
>
> Access high-level details about user demographics, including PAN, name, DOB, age as per PAN, category, residential status.

> [card] [ITR Details](https://developer.quicko.com/projects/connect/api-reference/open-apis/income-tax/file/itr-details.md)
>
> Get metadata about Income Tax Returns, such as filing status, type of ITR filed, due dates, and acknowledgment number.

> [card] [Tax Computation](https://developer.quicko.com/projects/connect/api-reference/open-apis/income-tax/file/tax-computation.md)
>
> Fetch computation of income and tax including income by heads, demat accounts, bank accounts, personal assets and liabilities.

> [card] [Advisory Orders](https://developer.quicko.com/projects/connect/api-reference/open-apis/advisory/orders.md)
>
> Access user's advisory service orders and their status.

## Available Endpoints

> [accordion] Get User Details
>
> **Endpoint:** `GET /entitlements/user`
>
> Retrieve verified identity information of the user.
>
> **Returns:**
>
> * Name (first name, last name)
> * Email address
> * Mobile number
> * User ID
> * Account status
> * Creation date
>
> **Use Cases:**
>
> * Verify user identity
> * Pre-fill application forms
> * Personalize user experience

> [accordion] Get Taxpayer
>
> **Endpoint:** `GET /income-tax/tax-payer`
>
> Access comprehensive demographic and tax-related information.
>
> **Returns:**
>
> * PAN number
> * Full name as per PAN
> * Date of birth
> * PAN holder type (individual, HUF, etc.)
> * Filing category (general, senior citizen, etc.)
> * Residential status (resident, non-resident, etc.)
> * Contact details (address, email, mobile)
>
> **Use Cases:**
>
> * KYC verification
> * Age-based product recommendations
> * Residential status-based tax planning

> [accordion] Get ITR Details
>
> **Endpoint:** `GET /income-tax/tax-payer/itr`
>
> Get metadata about the user's Income Tax Returns.
>
> **Returns:**
>
> * Assessment year
> * ITR form type (ITR-1, ITR-2, etc.)
> * Tax regime (old/new)
> * Filing status (filed, in\_progress, etc.)
> * Filing type (original, revised, belated)
> * Due date and filed date
> * Acknowledgement number
> * E-verification details
>
> **Use Cases:**
>
> * Check tax filing compliance
> * Identify tax regime preference
> * Verify ITR filing status

> [accordion] Get Tax Computation
>
> **Endpoint:** `GET /income-tax/tax-payer/itr/computation-of-tax`
>
> Fetch computation of income and tax liability.
>
> **Returns:**
>
> * Income by heads:
>   * Salary income
>   * House property income
>   * Capital gains (STCG, LTCG)
>   * Business & profession income
>   * Other sources
> * Chapter VI-A deductions
> * Total taxable income
> * Tax payable/refundable
> * Interest and penalties (234A, 234B, 234C, 234F)
> * TDS and advance tax paid
>
> **Use Cases:**
>
> * Tax liability assessment
> * Investment planning recommendations
> * Tax saving opportunities identification

> [accordion] Get Advisory Orders
>
> **Endpoint:** `GET /advisory/contacts/{contact_id}/orders`
>
> Access user's advisory service orders.
>
> **Returns:**
>
> * Order ID and status
> * Order creation and update timestamps
> * Order pricing details
> * GST amount
> * Order resolution details
>
> **Use Cases:**
>
> * Track advisory service usage
> * Service billing and reconciliation

## Authorization

> [!NOTE]
>
> Open APIs require an `Authorization` header with the JWT access token obtained through the OAuth flow.

All Open API requests must include two headers:

| Header | Description | Required |
| - | - | - |
| `Authorization` | Resource Owner's JWT access token (obtained via OAuth) | Yes |
| `x-api-key` | Your API User Key (provided during onboarding) | Yes |

### Example Request

```bash cURL theme={null}
curl https://api.quicko.com/income-tax/tax-payer \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMi..." \
  -H "x-api-key: key_live_xxxxxxxxxxxxx"
```

```javascript Node.js theme={null}
const axios = require('axios');

const response = await axios.get('https://api.quicko.com/income-tax/tax-payer', {
  headers: {
    'Authorization': 'Bearer eyJhbGciOiJIUzUxMi...',
    'x-api-key': 'key_live_xxxxxxxxxxxxx'
  }
});

console.log(response.data);
```

```python Python theme={null}
import requests

headers = {
    'Authorization': 'Bearer eyJhbGciOiJIUzUxMi...',
    'x-api-key': 'key_live_xxxxxxxxxxxxx'
}

response = requests.get(
    'https://api.quicko.com/income-tax/tax-payer',
    headers=headers
)

print(response.json())
```

> [card] [Try APIs in API Reference](https://developer.quicko.com/projects/connect/api-reference/open-apis/entitlements/user-details.md)
>
> Explore and test all Open APIs with detailed request/response examples, schemas, and live API playground.

## Getting Started

**1. Get Onboarded**

Contact Quicko to get your API credentials (API Key and Secret).

**2. Authenticate Your Application**

Use the [Authenticate API](https://developer.quicko.com/projects/connect/api-reference/authentication/authentication.md) to get your application's access token.

**3. Implement OAuth Flow**

Follow the [OAuth guide](https://developer.quicko.com/projects/connect/guides/getting-started/oauth) to get user consent and obtain Resource Owner tokens.

**4. Call Open APIs**

Use the Resource Owner's access token to call Open APIs and retrieve user data.

> [card] [Try it with Postman](#)
>
> Download our Postman collection to test the APIs quickly
>
> **Quicko Connect Postman Collection** →

## Recommendations

> [card] Understand the Endpoints
>
> Familiarize yourself with each API endpoint, its purpose, and how it fits into the services you offer.

> [card] Know Request & Response Structures
>
> Each API has specific request parameters and response data formats. Understanding these ensures seamless integration.

> [card] Handle Data with Care
>
> Handle and store user information securely and in compliance with data privacy and protection guidelines (GDPR, DPDPA, etc.).

> [card] Maintain User Consent
>
> Ensure ongoing consent from users to access their data. Provide clear options to revoke access if desired.

## Data Privacy & Security

> [!WARNING]
>
> **Important:** User data obtained through Open APIs is sensitive personal and financial information. You must:

**1. Obtain Explicit Consent**

Always obtain explicit user consent before accessing their data through the OAuth flow.

**2. Encrypt Data at Rest and in Transit**

Use industry-standard encryption (AES-256, TLS 1.2+) for storing and transmitting data.

**3. Implement Access Controls**

Restrict data access to only authorized personnel and systems. Use role-based access control (RBAC).

**4. Comply with Regulations**

Ensure compliance with:

* Digital Personal Data Protection Act (DPDPA), 2023
* GDPR (for EU users)
* Other applicable data protection laws

**5. Provide User Rights**

Allow users to:

* View what data you've accessed
* Revoke access at any time
* Request data deletion

**6. Regular Security Audits**

Conduct regular security assessments and penetration testing of your integration.

## Rate Limiting

> [!NOTE]
>
> API rate limits ensure fair usage and system stability. Current limits are subject to your service agreement.

If you exceed rate limits, you'll receive a `429 Too Many Requests` response. Implement exponential backoff and retry logic in your application.

## Error Handling

Open APIs return standard HTTP status codes and error responses:

| Status Code | Meaning |
| - | - |
| `200` | Success |
| `400` | Bad Request - Invalid parameters |
| `401` | Unauthorized - Invalid or expired token |
| `403` | Forbidden - Insufficient permissions |
| `404` | Not Found - Resource doesn't exist |
| `429` | Too Many Requests - Rate limit exceeded |
| `500` | Internal Server Error |

### Example Error Response

```json theme={null}
{
  "code": 401,
  "transaction_id": "abc123-def456-ghi789",
  "timestamp": 1699351274048,
  "error": {
    "message": "Invalid or expired access token",
    "type": "authentication_error"
  }
}
```

> [!TIP]
>
> Always check the `transaction_id` in responses. This helps Quicko support team debug issues quickly if you encounter problems.

## Next Steps

> [card] [Authentication Guide](https://developer.quicko.com/projects/connect/guides/getting-started/authentication.md)
>
> Learn about API authentication

> [card] [OAuth Flow](https://developer.quicko.com/projects/connect/guides/getting-started/oauth)
>
> Implement OAuth for user consent

> [card] [API Reference](https://developer.quicko.com/projects/connect/api-reference/authentication/authentication.md)
>
> Explore detailed API documentation


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.