doc_id that must be persisted by the client and used for all subsequent calls in the workflow.X-API-KEY and X-API-Secret.X-API-KEY: <your_key> and X-API-Secret: <your_secret>.https://api.finpass.ai| Header | Required | Description |
|---|---|---|
X-API-KEY | Yes | Your Finpass-issued API key. |
X-API-Secret | Yes | Your Finpass-issued API secret paired with the key. |
Content-Type | Yes | Must be set to application/json. |
| Parameter | Type | Required | Description |
|---|---|---|---|
username | string | Yes | GST portal login username for the taxpayer. |
password | string | Yes | GST portal password associated with the username. Transmitted securely over TLS. |
num_years | integer | No | Number of historical financial years to analyze. Defaults to 3 if omitted. |
financial_years | array of strings | No | Explicit list of financial years to fetch (e.g., "2022-23"). When provided, overrides num_years. |
webhook_url | string | No | HTTPS callback URL that will receive job status updates on completion or failure. |
{
"username": "your_gst_username",
"password": "your_gst_portal_password",
"num_years": 3,
"financial_years": ["2022-23", "2023-24", "2024-25"],
"webhook_url": "https://your-server.com/webhook"
}| Parameter | Type | Description |
|---|---|---|
success | boolean | Indicates whether the initiation request was accepted successfully. |
data | object | Container holding the initiation result. |
data.doc_id | string | Unique identifier for the GST analysis job. Persist this value — it is required for status polling and data retrieval. |
data.status | string | Initial job status. Will be pending upon successful initiation. |
message | string | Human-readable confirmation message. |
{
"success": true,
"data": {
"doc_id": "GST-xxxxxxxxxxxxxxxx",
"status": "pending"
},
"message": "GST analysis initiated"
}{
"success": false,
"error": {
"code": "INVALID_GST_CREDENTIALS",
"message": "The provided GST portal username or password is incorrect."
}
}username/password combination cannot authenticate against the GST portal. Verify credentials with the taxpayer before retrying.password field on your servers — pass it through to the API in-memory only.X-API-KEY and X-API-Secret as highly sensitive secrets; rotate them periodically and store them in a secure secret manager.webhook_url is an HTTPS endpoint under your control and verify webhook signatures (if provided) before trusting payloads.num_years or financial_years) where relevant to their use case rather than hard-coding defaults.doc_id against the user's session so the workflow can resume across page reloads.doc_id returned by this endpoint.completed.curl --location 'https://api.finpass.ai/api/v1/services/gst-analyzer/analyze' \
--header 'x-api-key;' \
--header 'x-api-secret;' \
--header 'Content-Type: application/json' \
--data '{
"username": "your_gst_username",
"password": "your_gst_portal_password",
"num_years": 3,
"financial_years": [
"2022-23",
"2023-24",
"2024-25"
],
"webhook_url": "https://your-server.com/webhook"
}'{}