GSTR-1 B2B

21522152

About

  • Get all B2B invoices for a return period for the authenticated taxpayer (gstin) for the particular year and month.
  • The result can be further filtered by adding from date and action_required. The action_required filter is used for filter invoices where the taxpayer has some pending actions.
  • You can also provide the ctin, the counter party's GSTIN for which you need the B2B invoices.

Endpoint

HTTP MethodResourceDescription
Getgsp/tax-payer/{gstin}/gstrs/gstr-1/b2b/{year}/{month}?ctin={}ctin{}&action_required={}action_required{}&from={}from{}Takes in gstin, year and month adn returns amended advance tax details.

API EndpointAPI Endpoint

Path Parameters

ParamTypeDescriptionExample
gstinstring15-character alpha-numeric unique identifier assigned to business entities registering under the GST regimeAAAAA0000A
yearstringYear for which Advance Tax needs to be fetched.2020
monthstringMonth for which Advance Tax needs to be fetched.01

Query Parameters

ParamTypeDescriptionExample
ctinstringCounter party GSTINAABAA0000A
action_requiredstringStatus filter for filtering the invoices. Possible values: Y or N. Status filter for filtering the invoices. Use filter value Y to fetches the invoices where taxpayer need to take action. Already accepted or uploaded invoices can be fetched by using filter value N.Y
fromstringFrom Date (DD/MM/YYYY)21/11/2020

Once the values are added, Your curl will look something like this

curl --request GET \
     --url https://api.sandbox.co.in/gsp/tax-payer/AAAAA0000A/gstrs/gstr-1/b2b/2020/01?ctin=AABAA0000A&action_required=Y&from=22-06-22 \
     --header 'Accept: application/json' \
     --header 'Authorization: xxxxxxxxx' \
     --header 'x-api-key: xxxxxxxxx' \
     --header 'x-api-version: 1.0'

Response

  • B2B Invoices
ParamTypeDescriptionExample
ctinstringGSTIN/UID of the Receiver taxpayer/UN, Govt Bodies06ADECO9084R5Z4
cfsstringGSTR2 filing status of counter partyY (Yes) or N (No)
List{inv}Invoice DetailsRefer to the Table below
  • Invoice Details
ParamTypeDescriptionExample
flagstringInvoice StatusN - No Action
updbystringUploaded byR - Receiver
S - Supplier
chksumstringInvoice Check sum valueAflJufPlFStqKBZ
inumstringSupplier Invoice NumberS008400
idtstringSupplier Invoice Date03-02-2016
valnumSupplier Invoice Value10000.00
posstring Place of Supply (statecode)04
rchrgstringReverse ChargeY- Yes
N - No
opdnumOriginal Period
(YYYY-MM)
2016-12
srctypstringSource Type of IRNEinvoice
irnstringIRN number897ADG56RTY78956HYUG90BNHHIJK453GFTD99845672FDHHHSHGFH4567FG56TR
irngendatestringIRN generation Date
(DD-MM-YYYY)
03-02-2016
diff_percentnumDifferential percentage.65 (65%)
list {itms}ItemRefer to the table below
  • Items
ParamTypeDescriptionExample
numnumSerial no2
itm_detItem DetailsRefer to the table below
  • Item Details
ParamTypeDescriptionExample
rtnumRate of Invoice5
txvalnumTaxable value of Goods or Service as per invoice10000.00
iamtnumIGST Amount as per invoice650.00
camtnumCGST Amount as per invoice650.00
samtnumSGST Amount as per invoice650.00
csamtnumCess Amount as per invoice650.00