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

# Get GSTR-3B negative liability details

> Get negative liability details for GSTR-3B.

## Response schema

For successful responses, this schema describes the GSTN payload at `data.data`.

> [card] [View response JSON schema](https://developer.sandbox.co.in/data/gst/schema/response/taxpayer/ledgers/negative_liability_statement.json)

## Excel field reference

> [card] [View Excel field reference](https://developer.sandbox.co.in/data/gst/schema/workbook/taxpayer/ledgers/negative_liability_statement-v1.0.xlsx)


## OpenAPI

````yaml api-reference/gst/compliance/negative_liability.openapi.json GET /gst/compliance/tax-payer/ledgers/negative-liability
openapi: 3.1.0
info:
  title: compliance
  description: >-
    **GST Compliance API** enables businesses to automate compliance
    requirements like [Taxpayer
    verification](https://developer.sandbox.co.in/reference/search-gstin-api),
    [GSTR
    Filing](https://developer.sandbox.co.in/reference/gst-taxpayer-authentication),
    [Generating
    E-Invoices](https://developer.sandbox.co.in/reference/e-invoice-authentication-api),
    and [E-Way
    Bills](https://developer.sandbox.co.in/reference/e-way-bill-authentication-api).We
    provide these APIs from GSTN-authorised GST Suvidha Providers, handling the
    encryption-decryption and signing so you don't have to handle the
    complexities.
  version: 1.0.0
servers: []
security: []
paths:
  /gst/compliance/tax-payer/ledgers/negative-liability:
    get:
      tags:
        - Taxpayer/Ledgers
        - Taxpayer
        - Ledgers
      summary: Get GSTR-3B negative liability details
      description: Get negative liability details for GSTR-3B.
      operationId: getNegativeLiabilityStatement
      parameters:
        - name: to
          in: query
          description: >-
            End date of the ledger period in DD/MM/YYYY format. Optional; can be
            supplied without the other date.
          required: false
          example: 10/02/2020
          schema:
            type: string
            example: 10/02/2020
        - name: from
          in: query
          description: >-
            Start date of the ledger period in DD/MM/YYYY format. Optional; can
            be supplied without the other date.
          required: false
          example: 10/10/2019
          schema:
            type: string
            example: 10/10/2019
        - name: x-api-version
          in: header
          description: API version
          required: false
          schema:
            type: string
            default: 1.0.0
      responses:
        '200':
          description: >-
            GSTN response. data.status_cd is "1" for success and "0" for a
            business error.
          content:
            application/json:
              schema:
                oneOf:
                  - allOf:
                      - type: object
                        description: Fields included in every taxpayer endpoint response.
                        required:
                          - code
                          - timestamp
                          - transaction_id
                        properties:
                          code:
                            type: integer
                            description: >-
                              The HTTP status code reported in the response
                              body.
                            enum:
                              - 200
                          timestamp:
                            type: integer
                            format: int64
                            description: The response timestamp in Unix epoch milliseconds.
                          transaction_id:
                            type: string
                            description: >-
                              The transaction identifier used to trace the
                              request.
                      - type: object
                        required:
                          - data
                        properties:
                          data:
                            type: object
                            description: The GSTN success wrapper.
                            required:
                              - status_cd
                              - data
                            properties:
                              status_cd:
                                type: string
                                enum:
                                  - '1'
                                description: GSTN success status.
                              data:
                                type: object
                                title: Negative Libaility schema
                                properties:
                                  openbal:
                                    type: array
                                    prefixItems:
                                      - type: object
                                        properties:
                                          desc:
                                            type: string
                                            maxLength: 99
                                            description: Description
                                          trancd:
                                            type: integer
                                            maxLength: 5
                                            description: Transaction code
                                          igst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: IGST payable
                                          cgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CGST payable
                                          sgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: SGST payable
                                          cess:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CESS payable
                                        required:
                                          - desc
                                          - trancd
                                          - igst
                                          - cgst
                                          - sgst
                                          - cess
                                      - type: object
                                        properties:
                                          desc:
                                            type: string
                                            maxLength: 99
                                            description: Description
                                          trancd:
                                            type: integer
                                            maxLength: 5
                                            description: Transaction code
                                          igst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: IGST payable
                                          cgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CGST payable
                                          sgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: SGST payable
                                          cess:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CESS payable
                                        required:
                                          - desc
                                          - trancd
                                          - igst
                                          - cgst
                                          - sgst
                                          - cess
                                    description: Opening Balance
                                  closebal:
                                    type: array
                                    prefixItems:
                                      - type: object
                                        properties:
                                          desc:
                                            type: string
                                            maxLength: 99
                                            description: Description
                                          trancd:
                                            type: integer
                                            maxLength: 5
                                            description: Transaction code
                                          igst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: IGST payable
                                          cgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CGST payable
                                          sgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: SGST payable
                                          cess:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CESS payable
                                        required:
                                          - desc
                                          - trancd
                                          - igst
                                          - cgst
                                          - sgst
                                          - cess
                                      - type: object
                                        properties:
                                          desc:
                                            type: string
                                            maxLength: 99
                                            description: Description
                                          trancd:
                                            type: integer
                                            maxLength: 5
                                            description: Transaction code
                                          igst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: IGST payable
                                          cgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CGST payable
                                          sgst:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: SGST payable
                                          cess:
                                            type: number
                                            multipleOf: 0.01
                                            maximum: 9999999999999.99
                                            minimum: 0
                                            description: CESS payable
                                        required:
                                          - desc
                                          - trancd
                                          - igst
                                          - cgst
                                          - sgst
                                          - cess
                                    description: Closing balance
                                  negliabdtls:
                                    type: array
                                    prefixItems:
                                      - type: object
                                        properties:
                                          rtnprd:
                                            minLength: 1
                                            pattern: ^((0[1-9]|1[012])((19|20)\d\d))$
                                            type: string
                                            description: Return Period
                                          refno:
                                            maxLength: 15
                                            minLength: 15
                                            type: string
                                            pattern: '[a-zA-Z]{2}[0-9]{12}[0-9a-zA-Z]{1}'
                                            description: Reference No
                                          trantyp:
                                            type: string
                                            enum:
                                              - Debit
                                              - Credit
                                            description: Transaction Type
                                          trandate:
                                            type: string
                                            pattern: >-
                                              ^((0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/]((19|20|30)\d\d))*$
                                            description: Transaction Date
                                          negliab:
                                            type: array
                                            prefixItems:
                                              - type: object
                                                properties:
                                                  desc:
                                                    type: string
                                                    maxLength: 99
                                                    description: Description
                                                  trancd:
                                                    type: integer
                                                    maxLength: 5
                                                    description: Transaction code
                                                  igst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: IGST payable
                                                  cgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CGST payable
                                                  sgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: SGST payable
                                                  cess:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CESS payable
                                                required:
                                                  - desc
                                                  - trancd
                                                  - igst
                                                  - cgst
                                                  - sgst
                                                  - cess
                                              - type: object
                                                properties:
                                                  desc:
                                                    type: string
                                                    maxLength: 99
                                                    description: Description
                                                  trancd:
                                                    type: integer
                                                    maxLength: 5
                                                    description: Transaction code
                                                  igst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: IGST payable
                                                  cgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CGST payable
                                                  sgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: SGST payable
                                                  cess:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CESS payable
                                                required:
                                                  - desc
                                                  - trancd
                                                  - igst
                                                  - cgst
                                                  - sgst
                                                  - cess
                                            description: Negative liability
                                          negliabal:
                                            type: array
                                            prefixItems:
                                              - type: object
                                                properties:
                                                  desc:
                                                    type: string
                                                    maxLength: 99
                                                    description: Description
                                                  trancd:
                                                    type: integer
                                                    maxLength: 5
                                                    description: Transaction code
                                                  igst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: IGST payable
                                                  cgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CGST payable
                                                  sgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: SGST payable
                                                  cess:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CESS payable
                                                required:
                                                  - desc
                                                  - trancd
                                                  - igst
                                                  - cgst
                                                  - sgst
                                                  - cess
                                              - type: object
                                                properties:
                                                  desc:
                                                    type: string
                                                    maxLength: 99
                                                    description: Description
                                                  trancd:
                                                    type: integer
                                                    maxLength: 5
                                                    description: Transaction code
                                                  igst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: IGST payable
                                                  cgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CGST payable
                                                  sgst:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: SGST payable
                                                  cess:
                                                    type: number
                                                    multipleOf: 0.01
                                                    maximum: 9999999999999.99
                                                    minimum: 0
                                                    description: CESS payable
                                                required:
                                                  - desc
                                                  - trancd
                                                  - igst
                                                  - cgst
                                                  - sgst
                                                  - cess
                                            description: Negative liability Balance
                                        required:
                                          - rtnprd
                                          - refno
                                          - trantyp
                                          - trandate
                                          - negliab
                                          - negliabal
                                    description: Negative liability Details
                                required:
                                  - openbal
                                  - closebal
                                  - negliabdtls
                  - title: GSTN business error
                    type: object
                    description: HTTP 200 response containing a GSTN business failure.
                    required:
                      - code
                      - timestamp
                      - transaction_id
                      - data
                    properties:
                      code:
                        type: integer
                        description: The HTTP status code reported in the response body.
                        enum:
                          - 200
                      timestamp:
                        type: integer
                        format: int64
                        description: The response timestamp in Unix epoch milliseconds.
                      transaction_id:
                        type: string
                        description: The transaction identifier used to trace the request.
                      data:
                        type: object
                        description: The GSTN business-failure wrapper.
                        required:
                          - status_cd
                          - error
                        properties:
                          status_cd:
                            type: string
                            enum:
                              - '0'
                            description: GSTN business-failure status.
                          error:
                            type: object
                            description: A business error returned by GSTN.
                            required:
                              - error_cd
                              - message
                            properties:
                              error_cd:
                                type: string
                                description: The GSTN business error code.
                              message:
                                type: string
                                description: >-
                                  A human-readable description of the GSTN
                                  business error.
                description: >-
                  A GSTN success or GSTN business-failure response. Both
                  variants use HTTP 200.
              examples:
                Negative liability for a date range:
                  summary: Negative liability for a date range
                  value:
                    code: 200
                    timestamp: 1795478400000
                    transaction_id: 00000000-0000-4000-8000-000046983939
                    data:
                      status_cd: '1'
                      data:
                        openbal:
                          - desc: Other than reverse charge
                            trancd: 30002
                            igst: 36425
                            cgst: 36425
                            sgst: 36425
                            cess: 36425
                          - desc: Reverse charge and supplies made u/s 9(5)
                            trancd: 30003
                            igst: 36425
                            cgst: 36425
                            sgst: 36425
                            cess: 36425
                        closebal:
                          - desc: Other than reverse charge
                            trancd: 30002
                            igst: 36425
                            cgst: 36425
                            sgst: 36425
                            cess: 36425
                          - desc: Reverse charge and supplies made u/s 9(5)
                            trancd: 30003
                            igst: 36425
                            cgst: 36425
                            sgst: 36425
                            cess: 36425
                        negliabdtls:
                          - rtnprd: '092019'
                            refno: ab125632512123c
                            trantyp: Debit
                            trandate: 12/10/2019
                            desc: Negative liability for GSTR3B/3BQ
                            negliab:
                              - desc: Other than reverse charge
                                trancd: 30002
                                igst: 0
                                cgst: 2323
                                sgst: 656
                                cess: 656
                              - desc: Reverse charge and supplies made u/s 9(5)
                                trancd: 30003
                                igst: 0
                                cgst: 2323
                                sgst: 656
                                cess: 656
                            negliabal:
                              - desc: Other than reverse charge
                                trancd: 30002
                                igst: 0
                                cgst: 2323
                                sgst: 656
                                cess: 656
                              - desc: Reverse charge and supplies made u/s 9(5)
                                trancd: 30003
                                igst: 0
                                cgst: 2323
                                sgst: 656
                                cess: 656
                          - rtnprd: '092019'
                            refno: ab125632512123c
                            trantyp: Credit
                            trandate: 12/10/2019
                            desc: Negative liability for GSTR3B/3BQ
                            negliab:
                              - desc: Other than reverse charge
                                trancd: 30002
                                igst: 1212
                                cgst: 0
                                sgst: 0
                                cess: 0
                              - desc: Reverse charge and supplies made u/s 9(5)
                                trancd: 30003
                                igst: 1212
                                cgst: 0
                                sgst: 0
                                cess: 0
                            negliabal:
                              - desc: Other than reverse charge
                                trancd: 30002
                                igst: 1212
                                cgst: 0
                                sgst: 0
                                cess: 0
                              - desc: Reverse charge and supplies made u/s 9(5)
                                trancd: 30003
                                igst: 1212
                                cgst: 0
                                sgst: 0
                                cess: 0
                Period before GST registration:
                  summary: Period before GST registration
                  value:
                    code: 200
                    timestamp: 1794564308012
                    data:
                      status_cd: '0'
                      error:
                        message: Period selected is prior to date of registration
                        error_cd: LG5008
                    transaction_id: d9827cf1-cc97-468a-be5d-b049928ab5d4
                  description: Choose dates before the taxpayer's GST registration date.
                To date before from date:
                  summary: To date before from date
                  value:
                    code: 200
                    timestamp: 1794564345544
                    data:
                      status_cd: '0'
                      error:
                        message: To Date cannot be before From date
                        error_cd: LG9104
                    transaction_id: d6920893-d4e1-4b5f-ab03-333966472e83
                  description: >-
                    Use from=01/10/2024 and to=30/09/2024 for a taxpayer
                    registered by 30 September 2024.
                Date range exceeds 12 months:
                  summary: Date range exceeds 12 months
                  value:
                    code: 200
                    timestamp: 1794564398249
                    data:
                      status_cd: '0'
                      error:
                        message: >-
                          Period selected for which the ledger can not be viewed
                          for more than 12 months
                        error_cd: LG9025
                    transaction_id: b5b80859-d07b-4a81-8b3c-11524ed65dcd
                  description: >-
                    Use from=01/09/2024 and to=02/09/2025 for a taxpayer
                    registered by 1 September 2024.
                No negative liability data:
                  summary: No negative liability data
                  value:
                    code: 200
                    timestamp: 1794564434857
                    data:
                      status_cd: '0'
                      error:
                        message: >-
                          No data available for selected period and prior to the
                          selected period.
                        error_cd: LG5004
                    transaction_id: cb0d8634-a993-4858-b225-8e4ad2e6daa0
                  description: >-
                    Choose a period with no negative liability records for the
                    taxpayer.
          headers: {}
          x-apidog-name: OK
          x-apidog-ordering: 0
      deprecated: false
      security:
        - GstTaxpayerAccessToken: []
          SandboxApiKey1: []
components:
  securitySchemes:
    GstTaxpayerAccessToken:
      type: apiKey
      in: header
      name: authorization
      description: >-
        GST taxpayer access token returned by [Verify
        OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp).
      x-apidog-folder: SecurityScheme
    SandboxApiKey1:
      type: apiKey
      in: header
      name: x-api-key
      description: Sandbox API key from your Sandbox account.

````

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