curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-2b/{year}/{month} \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>'Get purchase invoices and credit/debit notes in GSTR-2B for a return period for the authenticated taxpayer.
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-2b/{year}/{month} \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>'GST taxpayer access token. For token-generation steps, refer to the Generate Taxpayer Session recipe, then pass the token in the Authorization header.
API version
API key for identification
Year e.g. 2020
"{{year}}"
Month e.g. 01
"{{month}}"
Specify file_number incrementally (from 1 to fc) in additional requests to retrieve all invoice data. Only applicable if status_cd = 3.
"{{file_number}}"
200 Success / 200 Success page number 1 / 200 Success (before Oct 2024) / 200 Success with file count pagination / 200 Success page number 1 (before Oct 2024) / RET2B1023 GSTR-2B not available / RET2B1016 No details available to view
Was this page helpful?