---
title: Entity Discrepancy Request
slug: v2/entity-discrepancy-request
description: Learn how to send an Entity Discrepancy Request by following the authentication process and including the necessary headers and parameters. Access the API endpoint for testing or production, and ensure the request body includes the required data. Get a re
createdAt: 2023-05-23T04:30:31.000Z
---

## Authentication

You will need to login before sending Entity Discrepancy Request. You are required to pass the access token received from the login call, as authorization header in the Entity Discrepancy Request along with other parameters.

## API Endpoint

### Testing

:::CodeblockTabs
Endpoint

```text
POST :: https://preproduction.signzy.tech/api/v2/patrons/..your-patron-id../gstrdiscrepancies
```
:::

### Production

:::CodeblockTabs
Endpoint

```text
POST :: https://signzy.tech/api/v2/patrons/...patronID.../gstrdiscrepancies
```
:::

### Headers

| Key           | Value                                                      |
| ------------- | ---------------------------------------------------------- |
| Authorization | ...access token (returned as id field of login request)... |
| Content-type  | application/json                                           |

## Request Body

The API request should include the following data in the request body:

```json
{
    "essentials": {
        "gstin": "..gstin..",
        "username": "..username..",
        "authToken": "..authToken..",
        "appKey": "..appKey..",
        "sek": "..sek..",
        "retPeriod": "..retPeriod.."
    }
}
```

### Input Parameters

| Field         | Description                                                         |
| ------------- | ------------------------------------------------------------------- |
| gstin         | GST Number of the organization                                      |
| Username      | Username of your GST Portal Credentials                             |
| AuthToken     | AuthToken received in the authToken request                         |
| App KEY       | APP Key received in the OTP request                                 |
| Sek           | Secret Key                                                          |
| Return Period | Return Period for which Delinquency has to be fetched. (Eg 03/2018) |

## Response body

```json
{
    "essentials": {
        "gstin": "..gstin..",
        "username": "..username..",
        "authToken": "..authToken..",
        "appKey": "..appKey..",
        "sek": "..sek..",
        "retPeriod": "..retPeriod.."
    },
    "id": "...accessToken...",
    "patronId": "...patronId...",
    "result":{
        "sale" : {
            "status" : "..status..",
            "gstr1Amount" : "..gstr1Amount..",
            "gstr3bAmount" : "..gstr3bAmount.."
        },
        "purchase" : {
            "status" : "..status..",
            "gstr2aAmount" : "..gstr2aAmount..",
            "gstr3bAmount" : "..gstr3bAmount.."
        }

    }
}
```

