Skip to main content
GET
Get IMS invoices
Get Invoices can return data.status_cd: "2" with a file-generation token instead of invoice data. Pass the token to Get IMS invoice file details to check availability and retrieve download links. Sandbox returns decrypted JSON files through signed URLs valid for one day.

Invoice data schema

View invoice data schema

Authorizations

authorization
string
header
required

GST taxpayer access token returned by Verify OTP.

x-api-key
string
header
required

Sandbox API key from your Sandbox account.

Headers

x-api-version
string
default:1.0.0

API version

Query Parameters

section
string
default:b2b
required

Section of the transaction. Possible values: B2B, B2BA, CN, CNA, DN, DNA, ECOM, ECOMA

Example:

"{{section}}"

status
enum<string>

Optional filter to fetch invoices of specific status. Possible values: accepted, rejected, pending, no_action_taken

Available options:
accepted,
rejected,
pending,
no_action_taken
Example:

"no_action_taken"

from_time
string

Optional start hour for the invoice query, in yyyyMMddHH format. For example, 2026012313 is 23 January 2026 at 13:00. GSTN does not specify the timezone or whether the boundary hour is inclusive.

Required string length: 10
Pattern: ^[0-9]{10}$

Response

200 - application/json

Inline invoices, a file-generation token, or a GSTN business error. All three use HTTP 200.

A GSTN success or GSTN business-failure response. Both variants use HTTP 200.

code
enum<integer>
required

The HTTP status code reported in the response body.

Available options:
200
Example:

200

timestamp
integer<int64>
required

The response timestamp in Unix epoch milliseconds.

Example:

1763446641000

transaction_id
string
required

The transaction identifier used to trace the request.

Example:

"41bb8041-fb83-4654-8d75-85a19f329158"

data
object
required

The GSTN success wrapper.