Professional Documents
Culture Documents
Example Words or characters quoted from the screen. These include field names, screen titles,
pushbuttons labels, menu names, menu paths, and menu options.
Textual cross-references to other documents.
EXAMPLE Technical names of system objects. These include report names, program names,
transaction codes, table names, and key concepts of a programming language when they
are surrounded by body text, for example, SELECT and INCLUDE.
Example Output on the screen. This includes file and directory names and their paths, messages,
names of variables and parameters, source text, and names of installation, upgrade and
database tools.
Example Exact user entry. These are words or characters that you enter in the system exactly as
they appear in the documentation.
<Example> Variable user entry. Angle brackets indicate that you replace these words and characters
with appropriate entries to make entries in the system.
This document is a draft, and provided as a courtesy. This document is not to be considered final, and all
information cited here is subject to change. As such, this document is not to be quoted, cited in any reference, or
used by anyone for any purpose other than as a draft document.
The Outward Supplies API provides methods to create GSTR-1 form for a taxpayer.
Methods
Header Description
content-type application/json
Uploads the outward supplies invoice summary from the source system to the GST network.
Request
URI: {GSTR1-EndPoint}/invoices
Request Headers
See Common Request Headers under REST Overview: Outward Supplies.
Header Parameters
Payload Details
at AT invoice data
Request Example
{
"action": "UPLOAD",
"data": {
"content":
"eyAgDQoiYjJiIjogew0KICAgICJiMmJpbnZvaWNlcyI6IFsNCiAgICAgIHsNCiAgICJnc3RpbiI6IjExREREREQwMDAw
RDFaNSIsDQogICAiZnAiOiIxMjIwMTYiLA0KICAgImN0aW4iOiIyMkREREREMDAwMEQxWjUiLA0KICAgImludm51b
SI6IklOVjU1NSIsDQogICAiaW52ZGF0ZSI6IjIzLTEwLTIwMTYiLA0KICAgIm5pbHR5cGUiOiJORyIsDQogICAiaW52Y
W10Ijo1MDAuMTYsDQogICAicG9zIjoiMjciLA0KICAgInJldmNocmciOiJOIiwNCiAgICJwcm92YXNtdCI6Ik4iLA0KIC
AgInN1cHBsaWVyc3RhdGUiOiIwMyIsDQogICAiaXRlbXMiOlsNCiAgICAgew0KCSAgICJudW0iOjEsDQoJICAgInR5c
GUiOiJHIiwNCgkgICAiaHNuc2FjIjoiRzEyMjEiLA0KCSAgICJ0YXhiYXNlIjoxMDAwLA0KCSAgICJpZ3N0cmF0ZSI6
MCwNCgkgICAiaWdzdGFtdCI6MCwNCgkgICAiY2dzdHJhdGUiOjEwLA0KCSAgICJjZ3N0YW10Ijo4MDAwLA0KCS
AgICJzZ3N0cmF0ZSI6MTAsDQoJICAgInNnc3RhbXQiOjgwMDANCgkgfQ0KICAgIF0NCiAgICAgIH0NCiAgICBdD
QogIH0NCn0="
,
"type": "application/json"
}
}
Response Parameters
Response Example
{
"ackNo": "824cc484-49bd-4972-9185-0ef7f82e0e16",
"statuscd": "1"
}
Request
URI: {GSTR2-EndPoint}/invoice?gstin=04AABFN9870CMZT&fp=112016&invnum=5590
URI Parameters
Response Parameters
Response Example
{
"status": "PART_UPLDD",
"error": {
"b2berror": [],
"b2cerror": [],
"experror": [],
"aterror": [],
"cdnerror": [
{
"gstin": "04AABFN9870CMZT",
"fp": "112016",
"invnum": "669",
"invdate": "25-10-2017",
"errors": [
{
"errorcode": "VAL_SUMMARY_DUP_INV",
"errormsg": "Duplicate INVOICE: Invoice number already exists."
}
]
}
],
"txpderror": [],
"invnrerror": []
}
Cancels an invoice.
Request
URI: {GSTR2-EndPoint}/invoice?gstin=04AABFN9870CMZT&fp=112016&invnum=5590
Header Parameters
URI Parameters
Response
Response Parameters
If invoice is cancelled
{
"status": "Success",
"message": {
"code": "INVOICE-C-005",
"description": "Canceled successfully."
},
"ackNo": "b1279d29-4be9-488f-be15-29d3cc8ffcd2"
}
Modifies an invoice.
Request
URI: {GSTR1-EndPoint}/invoice
URI Parameters
Request Example
{
"gstin":"66DDDDD0000D1Z5",
"fp":"042017",
"ctin":"22DDDDD0000D1Z5",
"invnum":"INV5552",
"invdate":"23-10-2016",
"niltype":"NG",
"invamt":500.16,
"pos":"27",
"revchrg":"N",
"provasmt":"N",
"supplierstate":"03",
"items":[
{
"num":1,
"type":"G",
"hsnsac":"G1221",
"taxbase":800,
"igstrate":0,
"igstamt":0,
"cgstrate":10,
"cgstamt":80,
"sgstrate":10,
"sgstamt":80
}
]
}
Response Parameters
Error Details
Parameter Description
Error details
Parameter Data Type Description Example
Request
URI: {GSTR1-EndPoint}/invoices?ackNo=f92fc5f6-f2a3-47c2-8281-d23febd3476e
URI Parameters
Response
Response Parameters
Error Details
The Inward Supplies API provides methods to create GSTR-2 form for a taxpayer.
Methods
Common Headers
Header Description
content-type application/json
Uploads the outward supplies invoice summary from the source system to the GST network.
Request
URI: {GSTR2-EndPoint}/invoices
Header Parameters
Payload Data
tabname No Supplier/Receiver
updby No Supplier/Receiver
No IGST Amount as 0
iamt Decimal (15,2)
per invoice
No CESS Amount as 0
csamt Decimal (15,2)
per invoice
Request Example
{
"action": "UPLOAD",
"data": {
"content":
"ew0KCSJiMmIiOnsNCgkJImIyYmludm9pY2VzIjpbDQoJCQl7DQoJCQkJImdzdGluIjoiMDRBQUJGTjk4NzBDTVpU
IiwNCgkJCQkiZnAiOiIxMTIwMTYiLA0KCQkJCSJ2YWwiOjUwMDAsDQoJCQkJImlkdCI6IjA1LTAzLTIwMTciLA0KC
QkJCSJpbnVtIjoiNTU4OSIsDQoJCQkJInN1cHBfZ3N0aW4iOiI1N0FCQ0RFNzk2MEYxWjYiLA0KCQkJCSJuaWx0e
XBlIjoiTkciLA0KCQkJCSJwb3MiOiIwNCIsDQoJCQkJInJjaHJnIjoiTiIsDQoJCQkJIm9yZ2ludiI6IjcwMDAiLA0KCQkJ
CSJvcmdkYXRlIjoiMDUtMDMtMjAxNyIsDQoJCQkJIml0ZW1zIjpbDQoJCQkJCXsNCgkJCQkJCSJoc25fc2MiOiJHM
TIzIiwNCgkJCQkJCSJudW0iOjEsDQoJCQkJCQkidHh2YWwiOjEwMDAsDQoJCQkJCQkidHkiOiJHIiwNCgkJCQkJC
SJpcnQiOjEwLA0KCQkJCQkJImlhbXQiOjEwMCwNCgkJCQkJCSJjcnQiOjEwLA0KCQkJCQkJImNhbXQiOjEwMCw
NCgkJCQkJCSJjc3J0IjoxMCwNCgkJCQkJCSJjc2FtdCI6MTAwDQoJCQkJCX0NCgkJCQldDQoJCQkNCgkJCX0NC
gkJXQ0KCX0NCg0KfQ=="
,
"type": "application/json"
}
Response Parameters
Code Reason
Response Example
{
"ackNo": "7f0de1a0-19bd-49f9-a327-16e404204bb0"
}
If there is an error in the request, the response will be:
{
"status": "BAD_REQUEST",
"message": "Bad Request",
"details": [
{
"code": "INVOICE-U-005",
"description": "Invalid mimeType application/jso."
}
]
Request
URI: {GSTR1-EndPoint}/invoice?gstin=04AABFN9870CMZT&fp=112016&invnum=5590
URI Parameters
Response
Response Parameters
Response Example
{
"gstin": "04AABFN9870CMZT",
"invnum": "5590",
Cancels an invoice.
Request
URI: {GSTR2-EndPoint}/invoice?gstin=04AABFN9870CMZT&fp=112016&invnum=5590
Header Parameters
URI Parameters
Response
Response Parameters
Response Example
{
"status": "Success",
"message": {
"code": "INVOICE-C-005",
"description": "Canceled successfully."
},
"ackNo": "fcb62da7-f4cf-403f-8af6-608e1809a9a1"
}
Modifies an invoice.
Request
URI: {GSTR2-EndPoint}/invoice
Header Parameters
For more information, see Base 64 encoded Payload Data in Upload Invoice.
Request Example
{"gstin":"04AABFN9870CMZT","fp":"122016", "supp_gstin":"57ABCDE7960F1Z6","ctin":
"57ABCDE7960F1Z6","val": 5000, "idt": "05-04-2017", "inum": "5590", "niltype": "NG", "items": [ { "hsn_sc":
"string", "iamt": 100, "irt": 10, "num": 1, "txval": 100, "ty": "S" } ] }
Response
Response Parameters
Error Details
Parameter Description
Error Details
Response Example
Success Response
{
"status": "Success",
"ackNo": "f92fc5f6-f2a3-47c2-8281-d23febd3476e"
}
Validation Response
{
"status": "Failed",
"error": {
"b2berror": [
Request
URI: {GSTR2-EndPoint}/invoices?ackNo=f92fc5f6-f2a3-47c2-8281-d23febd3476e
URI Parameters
Response Parameters
Error Details
See Error Details in REST Method: Modify Invoice.
Response Example
Case Success
{
"status": "UPLOAD"
}
Case Failure
{
"status": "ERROR",
"error": {
"b2berror": [
{
"gstin": "04AABFN9870CMZT",
"fp": "122016",
"invnum": "5590",
"errors": {
"errorcode": "VAL_SUMMARY_FP",
"errormsg": "Invalid FP: The financial period is not opened for Invoice Save."
}
}
],
"imp_gerror": [],
"imp_serror": [],
"cdnerror": [],
"txierror": [],
"txpderror": []
}
}
Material Number: