> ## 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.

# Return liability balance

> Retrieve the GST return liability balance for a return type, year, and month.

Retrieve the liability balance for a return type and period. For example, use `gstr-3`, year `2026`, and month `4` for April 2026. GSTN determines availability for the selected return type.

Successful responses contain the decrypted balance at `data.data`. Check `data.status_cd` before reading it: GSTN business errors use HTTP 200 with `status_cd: "0"` and details in `data.error`.

For transaction details, use the [return liability ledger](https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/ledgers/return_liability_ledger.md).

See the [GSTN field reference](https://developer.gst.gov.in/pages/apiportal/data/Ledger/Get%20RetLiab%20Balance/v0.3/Get%20RetLiab%20Balance%20attributes.xlsx) for the balance payload.


## OpenAPI

````yaml api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/ledgers/{gstr}/liability/{year}/{month}
openapi: 3.0.1
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:
  - url: https://api.sandbox.co.in
    description: prod
  - url: https://test-api.sandbox.co.in
    description: test
security: []
tags:
  - name: Public
  - name: Taxpayer
  - name: Taxpayer Auth
  - name: Returns
  - name: GSTR-1 Documents
  - name: File GSTR-1
  - name: GSTR-2A Documents
  - name: GSTR-2B Document
  - name: File GSTR-3B
  - name: GSTR-4
  - name: File GSTR-9
  - name: Invoice Management System
  - name: GSTR-1A Documents
  - name: File GSTR-1A
  - name: Ledgers
  - name: e-Invoice
  - name: Sales e-Invoices for return period
  - name: Purchase e-Invoices for return period
  - name: Front Office Notices
  - name: Front Office
  - name: AATO
  - name: e-Invoice1
  - name: Authentication
  - name: e-Invoice12
  - name: E-Way Bill
  - name: E-Way Bill1
  - name: Authentication1
  - name: Consignor
  - name: Consolidated E-Way Bill
  - name: Multi-Vehicle Movement
  - name: Consignee
  - name: Transporter
  - name: Consolidated E-Way Bill1
  - name: Multi-vehicle Movement
  - name: Common
paths:
  /gst/compliance/tax-payer/ledgers/{gstr}/liability/{year}/{month}:
    get:
      tags:
        - Taxpayer
        - Ledgers
      summary: Get return liability balance
      description: >-
        Retrieve the liability balance for a return type and period. GSTN
        determines availability for the selected return type.
      operationId: getReturnLiabilityBalance
      parameters:
        - name: gstr
          in: path
          description: >-
            Return type, for example gstr-3 or gstr-3b. GSTN determines which
            types are available.
          required: true
          schema:
            type: string
            example: gstr-3
        - name: year
          in: path
          description: Four-digit return year.
          required: true
          schema:
            type: integer
            minimum: 1001
            maximum: 9998
            example: 2026
        - name: month
          in: path
          description: Return month from 1 to 12.
          required: true
          schema:
            type: integer
            minimum: 1
            maximum: 12
            example: 4
      responses:
        '200':
          description: >-
            GSTN response. Inspect data.status_cd: "1" indicates success and "0"
            indicates a business error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetLiabilityLedgerResponse'
        '400':
          description: Invalid request parameters.
        '401':
          description: >-
            Taxpayer authorization is missing, invalid, or unavailable for this
            workspace.
      security:
        - GstTaxpayerAccessToken: []
          SandboxApiKey1: []
components:
  schemas:
    GetLiabilityLedgerResponse:
      description: A GSTN success or business-failure response. Both variants use HTTP 200.
      oneOf:
        - allOf:
            - $ref: '#/components/schemas/TaxpayerResponseMetadata'
            - type: object
              required:
                - data
              properties:
                data:
                  type: object
                  required:
                    - status_cd
                    - data
                  properties:
                    status_cd:
                      type: string
                      enum:
                        - '1'
                    data:
                      type: object
                      description: >-
                        Decrypted GSTN ledger payload. Fields depend on the
                        selected ledger operation.
                      additionalProperties: true
        - $ref: '#/components/schemas/GstnBusinessErrorResponse'
    TaxpayerResponseMetadata:
      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
          example: 200
        timestamp:
          type: integer
          format: int64
          description: The response timestamp in Unix epoch milliseconds.
          example: 1763446641000
        transaction_id:
          type: string
          description: The transaction identifier used to trace the request.
          example: 41bb8041-fb83-4654-8d75-85a19f329158
    GstnBusinessErrorResponse:
      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
          example: 200
        timestamp:
          type: integer
          format: int64
          description: The response timestamp in Unix epoch milliseconds.
          example: 1763446641000
        transaction_id:
          type: string
          description: The transaction identifier used to trace the request.
          example: 41bb8041-fb83-4654-8d75-85a19f329158
        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.
              example: '0'
            error:
              $ref: '#/components/schemas/GstnBusinessError'
    GstnBusinessError:
      type: object
      description: A business error returned by GSTN.
      required:
        - error_cd
        - message
      properties:
        error_cd:
          type: string
          description: The GSTN business error code.
          example: RET11416
        message:
          type: string
          description: A human-readable description of the GSTN business error.
          example: No records found.
  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).
    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.