---
title: Entity Gross Profit Request
slug: v2/entity-gross-profit-request
description: Learn how to authenticate and make a POST request to the Entity Gross Profit API endpoint with this comprehensive document. Find detailed instructions on endpoints for testing and production environments, along with necessary headers and request body para
createdAt: 2023-05-23T02:00:14.000Z
---

## Authentication

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

## API Endpoint

### Testing

:::CodeblockTabs
Endpoint

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

### Production

:::CodeblockTabs
Endpoint

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

### 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                          |
| appKey    | APP Key received in the OTP request                                  |
| sek       | Secret appKey                                                        |
| retPeriod | Return Period for which Gross Profit has to be fetched. (Eg 03/2018) |

### Response body

```json
{
    "result":{
        "grossProfit" : "..grossProfit.."
      }
}
```

### Output Paramters

| Field       | Description  |
| ----------- | ------------ |
| grossProfit | Gross profit |

