---
title: Track GSTR Auth Link Status
slug: api-marketplace/track-gstr-auth-link-status
createdAt: 2024-02-14T07:08:31.119Z
---

### Introduction

This API is used for fetching the status of the end-customers authentication journey for GSTR Analytics by passing the Request ID generated during Create GSTR Authlink.

You will require an authorization token to use this API. This authorization token will be generated by Signzy for you and will be used in each API call. Please contact help\@signzy.com for this.

### cURL

:::CodeblockTabs
Production

```curl
curl --location 'https://api.signzy.app/api/v3/underwriting/fetch-gstr-status' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Access-Token>' \
--data '{
    "requestId": "4d3ef1bd-bc56-4cc5-9091-f7ddb5de56e9"
}'
```

Pre-Production

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/underwriting/fetch-gstr-status' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Access-Token>' \
--data '{
    "requestId": "c56cae7b-a1d1-43f4-b2e1-1d6e460360ca"
}'
```
:::

### Request Headers

| Key           | Value            |
| ------------- | ---------------- |
| Authorization | shared by Signzy |
| Content-type  | application/json |

### Request Body

```json
{
    "requestId": "4d3ef1bd-bc56-4cc5-9091-f7ddb5de56e9"
}
```

| PARAMETERS | DESCRIPTION                                          | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ---------- | ---------------------------------------------------- | ------ | ------------------------------ |
| requestId  | An unique UUID generated during Create GSTR Authlink | String | COMPULSORY                     |

### Response Data

:::CodeblockTabs
200 OK

```json
{
    "result": {
        "requestId": "4d3ef1bd-bc56-4cc5-9091-f7ddb5de56e9",
        "message": "SUCCESS",
        "journeyStatus": 1003,
        "journyStatusMessage": "Auth link opened, but the authorization via password/OTP failed after 7 attempts"
    }
}
```
:::

| PARAMETERS          | DESCRIPTION                                                                                                                                 | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------ |
| result              | This parameter contains the actual output.                                                                                                  | Object | COMPULSORY                     |
| requestId           | This is an unique 36 character long alphanumeric string for which status is being fetched                                                   | String | COMPULSORY                     |
| message             | It indicates whether the status has been successfully fetched or not                                                                        | String | COMPULSORY                     |
| journeyStatus       | Status code which denotes the journey of the customer while authenticating.<br />Total four statuses are supported - 1000, 1001, 1002, 1003 | String | COMPULSORY                     |
| journyStatusMessage | This provides more detailed description of the status of the customer                                                                       | String | COMPULSORY                     |

### Sample Status Codes And Messages

:::CodeblockTabs
200 OK

```json
{
    "result": {
        "requestId": "4d3ef1bd-bc56-4cc5-9091-f7ddb5de56e9",
        "message": "SUCCESS",
        "journeyStatus": 1003,
        "journyStatusMessage": "Auth link opened, but the authorization via password/OTP failed after 7 attempts"
    }
}
```

409

```json
{
    "error": {
        "name": "error",
        "message": "Error in getting data from Upstream",
        "status": 409,
        "reason": "Error",
        "type": "Conflict",
        "statusCode": 409
    }
}
```

400

```json
{
    "error": {
        "reason": "VALIDATION_ERROR",
        "status": 400,
        "message": "\"requestId\" must be a valid GUID",
        "type": "Bad Request",
        "statusCode": 400,
        "name": "error"
    }
}

1. Datatype validation issues errors, eg: "\"requestId\" must be a valid GUID"
2. Missing required parameters, eg: "\"requestId\" is required"
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

500

```json
{
    "error": {
        "name": "error",
        "message": "Internal Server Error",
        "status": 500,
        "reason": "ERROR",
        "type": "Internal Server Error",
        "statusCode": 500
    }
}
```
:::

***

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

