Commit 4b6631b8 authored by steurwadkar's avatar steurwadkar

F17ABAS001 GST API integration web part commit

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@163433 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0e274c63
{
"type":"object",
"title":"GSTR1 Schema",
"properties":{
"gstin":{
"description":"Supplier GSTIN",
"$ref":"#/definitions/gstin"
},
"fp":{
"description":"Financial Period",
"type":"string",
"minLength":1,
"pattern":"^((0[1-9]|1[012])((19|20)\\d\\d))$"
},
"gt":{
"description":"Gross Turnover of the taxpayer in the previous FY",
"type":"number",
"multipleOf":0.01,
"maxLength":15,
"minLength":2
},
"cur_gt":{
"description":"Gross Turnover of the taxpayer in the previous FY",
"type":"number",
"multipleOf":0.01,
"maxLength":15,
"minLength":2
},
"b2b":{
"type":"array",
"items":{
"type":"object",
"properties":{
"ctin":{
"description":"GSTIN/UID of the Receiver taxpayer/UN,Govt Bodies",
"$ref":"#/definitions/ctin"
},
"inv":{
"type":"array",
"minLength":1,
"items":{
"anyOf":[
{
"type":"object",
"properties":{
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"pos":{
"description":"Maintained in GST System common database POS as provided in law / actual provision of service.",
"$ref":"#/definitions/state_cd"
},
"rchrg":{
"description":"Reverse Charge",
"$ref":"#/definitions/boolean"
},
"inv_typ":{
"description":"tax payer action",
"type":"string",
"enum":[
"R",
"DE",
"SEWP",
"SEWOP"
]
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
},
"required":[
"txval"
]
}
}
}
}
},
"required":[
"inum",
"idt",
"val",
"rchrg",
"inv_typ",
"itms"
]
},
{
"type":"object",
"properties":{
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D",
"A",
"R",
"P"
]
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"pos":{
"description":"Maintained in GST System common database POS as provided in law / actual provision of service.",
"$ref":"#/definitions/state_cd"
},
"rchrg":{
"description":"Reverse Charge",
"$ref":"#/definitions/boolean"
},
"inv_typ":{
"description":"tax payer action",
"type":"string",
"enum":[
"R",
"DE",
"SEWP",
"SEWOP"
]
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
}
}
}
}
}
},
"required":[
"inum",
"idt",
"flag"
]
}
]
}
}
},
"required":[
"ctin",
"inv"
]
}
},
"b2cl":{
"type":"array",
"items":{
"type":"object",
"properties":{
"pos":{
"description":"Maintained in GST System common database POS as provided in law / actual provision of service",
"$ref":"#/definitions/state_cd"
},
"inv":{
"minLength":1,
"type":"array",
"items":{
"anyOf":[
{
"type":"object",
"properties":{
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/flag"
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
},
"required":[
"rt",
"txval"
]
}
},
"required":[
"num"
]
}
}
},
"required":[
"inum",
"idt",
"val",
"itms"
]
},
{
"type":"object",
"properties":{
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"pos":{
"description":"Maintained in GST System common database POS as provided in law / actual provision of service",
"$ref":"#/definitions/state_cd"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
}
}
}
}
}
},
"required":[
"inum",
"idt",
"flag"
]
}
]
}
}
},
"required":[
"pos",
"inv"
]
}
},
"b2cs":{
"type":"array",
"items":{
"anyOf":[
{
"type":"object",
"properties":{
"typ":{
"description":"Type of B2cs",
"type":"string",
"maxLength":2,
"enum":[
"E",
"OE"
]
},
"sply_ty":{
"description":"Supply Type of B2cs",
"type":"string",
"maxLength":8,
"enum":[
"INTER",
"INTRA"
]
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/flag"
},
"pos":{
"description":"Recipient state code",
"$ref":"#/definitions/state_cd"
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"minLength":1,
"$ref":"#/definitions/nonEmptyNil"
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"camt":{
"description":"CGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"samt":{
"description":"SGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
}
},
"required":[
"rt",
"sply_ty",
"typ",
"txval"
]
},
{
"type":"object",
"properties":{
"typ":{
"description":"Type of B2cs",
"type":"string",
"maxLength":2,
"enum":[
"E",
"OE"
]
},
"sply_ty":{
"description":"Supply Type of B2cs",
"type":"string",
"maxLength":8,
"enum":[
"INTER",
"INTRA"
]
},
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"pos":{
"description":"Recipient state code",
"$ref":"#/definitions/state_cd"
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"minLength":1,
"$ref":"#/definitions/nonEmptyNil"
},
"camt":{
"description":"CGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"samt":{
"description":"SGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
}
},
"required":[
"flag",
"sply_ty",
"typ"
]
}
]
}
},
"cdnr":{
"type":"array",
"items":{
"type":"object",
"properties":{
"ctin":{
"description":"GSTIN/UID of the Receiver taxpayer/UN,Govt Bodies",
"$ref":"#/definitions/ctin"
},
"nt":{
"type":"array",
"minLength":1,
"items":{
"anyOf":[
{
"type":"object",
"properties":{
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"pos":{
"description":"Maintained in GST System common database POS as provided in law / actual provision of service.",
"$ref":"#/definitions/state_cd"
},
"rchrg":{
"description":"Reverse Charge",
"$ref":"#/definitions/boolean"
},
"ntty":{
"description":"Credit/debit note type",
"$ref":"#/definitions/ntty"
},
"nt_num":{
"type":"string",
"$ref":"#/definitions/inum"
},
"nt_dt":{
"$ref":"#/definitions/nonEmptydate"
},
"rsn":{
"description":"Reason Code for issuing Debit/Credit Note",
"type":"string"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
},
"required":[
"txval"
]
}
}
}
}
},
"required":[
"inum",
"idt",
"val",
"nt_dt",
"nt_num",
"ntty",
"rsn",
"itms"
]
},
{
"type":"object",
"properties":{
"etin":{
"description":"Ecom Tin",
"anyOf":[
{
"$ref":"#/definitions/etin"
},
{
"$ref":"#/definitions/etinEmptyChck"
}
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D",
"A",
"R",
"P"
]
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"pos":{
"description":"Maintained in GST System common database POS as provided in law / actual provision of service.",
"$ref":"#/definitions/state_cd"
},
"rchrg":{
"description":"Reverse Charge",
"$ref":"#/definitions/boolean"
},
"ntty":{
"description":"Credit/debit note type",
"$ref":"#/definitions/ntty"
},
"nt_num":{
"type":"string",
"$ref":"#/definitions/inum"
},
"nt_dt":{
"$ref":"#/definitions/nonEmptydate"
},
"rsn":{
"description":"Reason Code for issuing Debit/Credit Note",
"type":"string"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
}
}
}
}
}
},
"required":[
"flag",
"nt_dt",
"nt_num"
]
}
]
}
}
},
"required":[
"ctin",
"nt"
]
}
},
"cdnur":{
"type":"array",
"minLength":1,
"anyOf":[
{
"properties":{
"typ":{
"description":"Typ of invoice",
"enum":[
"B2CL",
"EXPWP",
"EXPWOP"
]
},
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/flag"
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"ntty":{
"description":"Credit/debit note type",
"$ref":"#/definitions/ntty"
},
"nt_num":{
"type":"string",
"$ref":"#/definitions/inum"
},
"nt_dt":{
"$ref":"#/definitions/nonEmptydate"
},
"rsn":{
"description":"Reason Code for issuing Debit/Credit Note",
"type":"string"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
},
"required":[
"txval"
]
}
}
}
}
},
"required":[
"inum",
"idt",
"val",
"nt_dt",
"nt_num",
"ntty",
"rsn",
"itms"
]
},
{
"properties":{
"typ":{
"description":"Typ of invoice",
"enum":[
"B2CL",
"EXPWP",
"EXPWOP"
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"inum":{
"description":"Supplier Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Supplier Invoice Date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"ntty":{
"description":"Credit/debit note type",
"$ref":"#/definitions/ntty"
},
"nt_num":{
"type":"string",
"$ref":"#/definitions/inum"
},
"nt_dt":{
"$ref":"#/definitions/nonEmptydate"
},
"rsn":{
"description":"Reason Code for issuing Debit/Credit Note",
"type":"string"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"itm_det":{
"type":"object",
"properties":{
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"$ref":"#/definitions/nonEmptyCost",
"minLength":1
},
"rt":{
"description":"rate",
"type":"number",
"multipleOf":0.01
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
}
}
}
}
}
},
"required":[
"flag",
"inum",
"idt",
"nt_dt",
"nt_num",
"typ"
]
}
]
},
"nil":{
"type":"object",
"anyOf":[
{
"properties":{
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/nilflag"
},
"inv":{
"type":"array",
"items":{
"type":"object",
"properties":{
"sply_ty":{
"description":"Supply Type",
"type":"string",
"maxLength":8,
"enum":[
"INTRB2B",
"INTRB2C",
"INTRAB2B",
"INTRAB2C"
]
},
"nil_amt":{
"description":"Total Nil rated outward supplies",
"$ref":"#/definitions/nonEmptyNil"
},
"expt_amt":{
"description":"Total Exempted outward supplies",
"$ref":"#/definitions/nonEmptyNil"
},
"ngsup_amt":{
"description":"Total Non GST outward supplies",
"$ref":"#/definitions/nonEmptyNil"
}
},
"required":[
"sply_ty",
"nil_amt",
"expt_amt",
"ngsup_amt"
]
}
}
},
"required":[
"inv"
]
},
{
"properties":{
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"chksum":{
"description":"Invoice Check sum value",
"$ref":"#/definitions/chksum"
},
"inv":{
"type":"array",
"items":{
"type":"object",
"properties":{
"sply_ty":{
"description":"Supply Type",
"type":"string",
"maxLength":8,
"enum":[
"INTRB2B",
"INTRB2C",
"INTRAB2B",
"INTRAB2C"
]
},
"nil_amt":{
"description":"Total Nil rated outward supplies",
"$ref":"#/definitions/nonEmptyNil"
},
"expt_amt":{
"description":"Total Exempted outward supplies",
"$ref":"#/definitions/nonEmptyNil"
},
"ngsup_amt":{
"description":"Total Non GST outward supplies",
"$ref":"#/definitions/nonEmptyNil"
}
}
}
}
},
"required":[
"flag"
]
}
]
},
"exp":{
"type":"array",
"items":{
"type":"object",
"properties":{
"exp_typ":{
"description":"Supplies exported types i.e WithPay,WithoutPay",
"type":"string",
"enum":[
"WOPAY",
"WPAY"
]
},
"inv":{
"type":"array",
"items":{
"type":"object",
"anyOf":[
{
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/flag"
},
"inum":{
"description":"Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Export Invoice date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"$ref":"#/definitions/totalValue",
"minLength":1,
"description":"Supplier Invoice Value"
},
"sbnum":{
"description":"Shipping Bill No. or Bill of Export No.",
"type":"number",
"maxLength":7,
"minLength":1,
"pattern":"^[a-zA-Z0-9-/]+$"
},
"sbdt":{
"description":"Shipping Bill Date. or Bill of Export Date",
"$ref":"#/definitions/nonEmptydate"
},
"sbpcode":{
"description":"Port Code",
"$ref":"#/definitions/nonEmptyString"
},
"prs":{
"description":"Provisional assessment",
"$ref":"#/definitions/boolean"
},
"od_num":{
"description":"Order Number",
"$ref":"#/definitions/inum"
},
"od_dt":{
"description":"Order Date",
"$ref":"#/definitions/nonEmptydate"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"hsn_sc":{
"description":"HSN or SAC of Goods or Services as per Invoice line items",
"type":"string"
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"minLength":1,
"$ref":"#/definitions/nonEmptyCost"
},
"irt":{
"description":"IGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"crt":{
"description":"CGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"srt":{
"description":"SGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csrt":{
"description":"Cess Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
},
"required":[
"txval"
]
}
}
},
"required":[
"inum",
"idt",
"val",
"itms"
]
},
{
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"inum":{
"description":"Invoice Number",
"$ref":"#/definitions/inum"
},
"idt":{
"description":"Export Invoice date",
"$ref":"#/definitions/nonEmptydate"
},
"val":{
"$ref":"#/definitions/totalValue",
"description":"Supplier Invoice Value"
},
"sbnum":{
"type":"number",
"maxLength":7,
"minLength":1,
"pattern":"^[a-zA-Z0-9-/]+$",
"description":"Shipping Bill No. or Bill of Export No."
},
"sbdt":{
"description":"Shipping Bill Date. or Bill of Export Date",
"$ref":"#/definitions/nonEmptydate"
},
"sbpcode":{
"description":"Port Code",
"$ref":"#/definitions/nonEmptyString"
},
"prs":{
"description":"Provisional assessment",
"$ref":"#/definitions/boolean"
},
"itms":{
"type":"array",
"items":{
"type":"object",
"properties":{
"hsn_sc":{
"description":"HSN or SAC of Goods or Services as per Invoice line items",
"type":"string"
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"minLength":1,
"$ref":"#/definitions/nonEmptyCost"
},
"irt":{
"description":"IGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"crt":{
"description":"CGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"srt":{
"description":"SGST Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csrt":{
"description":"Cess Rate as per invoice",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyCost"
}
}
}
}
},
"required":[
"inum",
"idt",
"flag"
]
}
]
}
}
},
"required":[
"exp_typ",
"inv"
]
}
},
"at":{
"type":"array",
"items":{
"anyOf":[
{
"type":"object",
"additionalProperties":false,
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/flag"
},
"pos":{
"description":"Recipient state code",
"$ref":"#/definitions/state_cd"
},
"sply_ty":{
"description":"Supply Type of invoice",
"type":"string",
"maxLength":8,
"enum":[
"INTER",
"INTRA"
]
},
"itms":{
"minLength":1,
"type":"array",
"description":"Item Details",
"items":{
"type":"object",
"additionalProperties":false,
"properties":{
"ad_amt":{
"description":"Amount of Advance received",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"$ref":"#/definitions/nonEmptyCost"
},
"iamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"rt":{
"$ref":"#/definitions/nonEmptyRate"
}
},
"required":[
"ad_amt",
"rt"
]
}
}
},
"required":[
"sply_ty",
"itms"
]
},
{
"type":"object",
"additionalProperties":false,
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"pos":{
"description":"Recipient state code",
"$ref":"#/definitions/state_cd"
},
"sply_ty":{
"description":"Supply Type of invoice",
"type":"string",
"maxLength":8,
"enum":[
"INTER",
"INTRA"
]
},
"itms":{
"minLength":1,
"type":"array",
"description":"Item Details",
"items":{
"type":"object",
"additionalProperties":false,
"properties":{
"ad_amt":{
"description":"Amount of Advance received",
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"$ref":"#/definitions/nonEmptyCost"
},
"iamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"rt":{
"$ref":"#/definitions/nonEmptyRate"
}
}
}
}
},
"required":[
"flag",
"sply_ty"
]
}
]
}
},
"txpd":{
"type":"array",
"items":{
"anyOf":[
{
"type":"object",
"additionalProperties":false,
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/flag"
},
"pos":{
"description":"Recipient state code",
"$ref":"#/definitions/state_cd"
},
"sply_ty":{
"description":"Supply Type of invoice",
"type":"string",
"maxLength":8,
"enum":[
"INTER",
"INTRA"
]
},
"itms":{
"minLength":1,
"type":"array",
"description":"Item Details",
"items":{
"type":"object",
"additionalProperties":false,
"properties":{
"ad_amt":{
"description":"Amount of Advance received",
"minLength":1,
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"$ref":"#/definitions/nonEmptyCost"
},
"iamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"rt":{
"$ref":"#/definitions/nonEmptyRate"
}
},
"required":[
"ad_amt",
"rt"
]
}
}
},
"required":[
"sply_ty",
"itms"
]
},
{
"type":"object",
"additionalProperties":false,
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"pos":{
"description":"Recipient state code",
"$ref":"#/definitions/state_cd"
},
"sply_ty":{
"description":"Supply Type of invoice",
"type":"string",
"maxLength":8,
"enum":[
"INTER",
"INTRA"
]
},
"itms":{
"minLength":1,
"type":"array",
"description":"Item Details",
"items":{
"type":"object",
"additionalProperties":false,
"properties":{
"ad_amt":{
"description":"Amount of Advance received",
"minLength":1,
"$ref":"#/definitions/nonEmptyCost"
},
"csamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"camt":{
"$ref":"#/definitions/nonEmptyCost"
},
"samt":{
"$ref":"#/definitions/nonEmptyCost"
},
"iamt":{
"$ref":"#/definitions/nonEmptyCost"
},
"rt":{
"$ref":"#/definitions/nonEmptyRate"
}
}
}
}
},
"required":[
"flag",
"sply_ty"
]
}
]
}
},
"hsn":{
"type":"object",
"anyOf":[
{
"properties":{
"flag":{
"description":"tax payer action",
"$ref":"#/definitions/flag"
},
"data":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"hsn_sc":{
"description":"HSN or SAC of Goods or Services as per Invoice line items",
"maxLength":10,
"minLength":1,
"type":"string",
"pattern":"^[a-zA-Z0-9]+$"
},
"val":{
"description":"Supplier Invoice Value",
"$ref":"#/definitions/totalValue"
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"minLength":1,
"$ref":"#/definitions/nonEmptyNil"
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"desc":{
"description":"Description of goods sold",
"minLength":1,
"maxLength":30,
"type":"string"
},
"uqc":{
"description":"UQC (Unit of Measure) of goods sold",
"minLength":1,
"maxLength":30,
"pattern":"^[a-zA-Z]*$",
"type":"string"
},
"qty":{
"description":"Quantity of goods sold",
"multipleOf":0.01,
"maximum":999999999999999.99,
"minimum":0,
"type":"number"
}
}
}
}
},
"required":[
"data"
]
},
{
"properties":{
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"data":{
"type":"array",
"items":{
"type":"object",
"properties":{
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"hsn_sc":{
"description":"HSN or SAC of Goods or Services as per Invoice line items",
"type":"string"
},
"txval":{
"description":"Taxable value of Goods or Service as per invoice",
"minLength":1,
"$ref":"#/definitions/nonEmptyNil"
},
"iamt":{
"description":"IGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"camt":{
"description":"CGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"samt":{
"description":"SGST Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"csamt":{
"description":"Cess Amount as per invoice",
"$ref":"#/definitions/nonEmptyNil"
},
"desc":{
"description":"Description of goods sold",
"minLength":1,
"maxLength":30,
"type":"string"
},
"uqc":{
"description":"UQC (Unit of Measure) of goods sold",
"minLength":1,
"maxLength":30,
"pattern":"^[a-zA-Z]*$",
"type":"string"
},
"qty":{
"description":"Quantity of goods sold",
"minLength":1,
"maximum":999999999999999.99,
"multipleOf":0.001,
"type":"number"
}
}
}
}
},
"required":[
"flag"
]
}
]
},
"doc_issue":{
"type":"object",
"anyOf":[
{
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"$ref":"#/definitions/flag"
},
"doc_det":{
"type":"array",
"items":{
"type":"object",
"properties":{
"doc_num":{
"description":"Document Number",
"type":"integer",
"minLength":1
},
"doc_typ":{
"description":"Nature of document",
"type":"string",
"minLength":1
},
"docs":{
"type":"array",
"items":{
"type":"object",
"properties":{
"cancel":{
"minLength":1,
"type":"integer",
"maxLength":10
},
"from":{
"$ref":"#/definitions/inum"
},
"net_issue":{
"minLength":1,
"type":"integer"
},
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"to":{
"$ref":"#/definitions/inum"
},
"totnum":{
"minLength":1,
"type":"integer",
"maxLength":10
}
},
"required":[
"num"
]
}
}
},
"required":[
"docs",
"doc_num"
]
}
}
},
"required":[
"doc_det"
]
},
{
"properties":{
"chksum":{
"description":"Checksum Value",
"$ref":"#/definitions/chksum"
},
"flag":{
"description":"tax payer action",
"type":"string",
"enum":[
"D"
]
},
"doc_det":{
"type":"array",
"items":{
"type":"object",
"properties":{
"doc_num":{
"description":"Document Number",
"type":"integer",
"minLength":1
},
"doc_typ":{
"description":"Nature of document",
"type":"string",
"minLength":1
},
"docs":{
"type":"array",
"items":{
"type":"object",
"properties":{
"cancel":{
"minLength":1,
"type":"integer",
"maxLength":10
},
"from":{
"$ref":"#/definitions/inum"
},
"net_issue":{
"minLength":1,
"type":"integer"
},
"num":{
"description":"Serial no",
"type":"integer",
"minLength":1
},
"to":{
"$ref":"#/definitions/inum"
},
"totnum":{
"minLength":1,
"type":"integer",
"maxLength":10
}
}
}
}
}
}
}
},
"required":[
"flag"
]
}
]
}
},
"required":[
"gstin",
"fp"
],
"definitions":{
"nonEmptyString":{
"type":"string",
"pattern":"^[a-zA-Z0-9]*$",
"minLength":1
},
"nonEmptyCost":{
"type":"number",
"multipleOf":0.01,
"maximum":99999999999.99,
"minimum":0
},
"nonEmptyNil":{
"type":"number",
"multipleOf":0.01,
"maximum":99999999999.99
},
"nonEmptyRate":{
"type":"number",
"multipleOf":0.01,
"maximum":999.9,
"minimum":0
},
"totalValue":{
"type":"number",
"multipleOf":0.01,
"maximum":999999999999999.99,
"minimum":0
},
"nonEmptydate":{
"type":"string",
"minLength":1,
"pattern":"^((0[1-9]|[12][0-9]|3[01])[-](0[1-9]|1[012])[-]((19|20)\\d\\d))$"
},
"gstin":{
"type":"string",
"maxLength":15,
"minLength":15,
"pattern":"[0-9]{2}[a-zA-Z]{5}[0-9]{4}[a-zA-Z]{1}[1-9A-Za-z]{1}[Zz1-9A-Ja-j]{1}[0-9a-zA-Z]{1}"
},
"ctin":{
"anyOf":[
{
"type":"string",
"maxLength":15,
"minLength":15,
"pattern":"[0-9]{2}[a-zA-Z]{5}[0-9]{4}[a-zA-Z]{1}[1-9A-Za-z]{1}[Zz1-9A-Ja-j]{1}[0-9a-zA-Z]{1}"
},
{
"type":"string",
"maxLength":15,
"minLength":15,
"pattern":"[0-9]{4}[A-Z]{3}[0-9]{5}[UO]{1}[N][A-Z0-9]{1}"
}
]
},
"etin":{
"type":"string",
"maxLength":15,
"minLength":15,
"pattern":"[0-9]{2}[a-zA-Z]{5}[0-9]{4}[a-zA-Z]{1}[1-9A-Za-z]{1}[C]{1}[0-9a-zA-Z]{1}"
},
"etinEmptyChck":{
"type":"string",
"maxLength":0,
"minLength":0
},
"chksum":{
"type":"string",
"pattern":"^[a-zA-Z0-9]+$",
"minLength":1
},
"inum":{
"type":"string",
"maxLength":16,
"minLength":1,
"pattern":"^[a-zA-Z0-9-/]+$"
},
"state_cd":{
"type":"string",
"pattern":"^(3[0-7]|[12][0-9]|0[1-9]|97)$",
"maxLength":2,
"minLength":2
},
"flag":{
"type":"string",
"enum":[
"N",
"M",
"A",
"R"
]
},
"nilflag":{
"type":"string",
"enum":[
"N",
"M",
"A",
"R"
]
},
"ntty":{
"type":"string",
"enum":[
"C",
"D",
"R"
]
},
"hsn_supply_typ":{
"type":"string",
"enum":[
"INTRB2B",
"INTRAB2B",
"INTRB2CL",
"INTRAB2CL"
]
},
"status":{
"type":"string",
"enum":[
"A",
"R",
"P",
"N",
"S"
]
},
"boolean":{
"type":"string",
"enum":[
"Y",
"N"
]
}
}
}
\ No newline at end of file
{
"type": "object",
"title": "GSTR2 Schema",
"properties": {
"gstin": {
"description": "Supplier GSTIN",
"$ref": "#/definitions/gstin"
},
"fp": {
"description": "Financial Period",
"type": "string",
"minLength": 1,
"pattern": "^((0[1-9]|1[012])((19|20)\\d\\d))$"
},
"version": {
"description": "Version",
"type": "string"
},
"hash": {
"description": "Hash Version",
"type": "string"
},
"imp_g": {
"type": "array",
"minLength": 1,
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"flag": {
"description": "Flag for identifying new/modified/deleted",
"$ref": "#/definitions/operationflag"
},
"is_sez": {
"description": "Flag for identifying SEZ or not",
"$ref": "#/definitions/sez_flag"
},
"stin": {
"description": "Supplier TIN",
"$ref": "#/definitions/gstin"
},
"boe_num": {
"description": "Bill of Entry No.",
"$ref": "#/definitions/boe_num"
},
"boe_dt": {
"description": "Bill of Entry Date",
"$ref": "#/definitions/nonEmptydate"
},
"boe_val": {
"description": "Total Invoice Value",
"$ref": "#/definitions/higher_lvl_amt"
},
"port_code": {
"description": "Port Code",
"$ref": "#/definitions/port_cd"
},
"chksum": {
"description": "chksum",
"$ref": "#/definitions/chksum"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"txval": {
"description": "Taxable value ",
"$ref": "#/definitions/amt"
},
"rt": {
"description": "Rate",
"$ref": "#/definitions/rate"
},
"iamt": {
"description": "IGST amt",
"$ref": "#/definitions/amt"
},
"csamt": {
"type": "number",
"$ref": "#/definitions/amt"
},
"elg": {
"description": "Eligibility for ITC",
"type": "string"
},
"tx_i": {
"description": "Total IGST available as ITC ",
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"txval",
"iamt",
"tx_i",
"elg",
"num"
]
}
}
},
"required": [
"port_code",
"boe_num",
"boe_dt",
"boe_val",
"itms"
]
},
{
"type": "object",
"properties": {
"flag": {
"description": "Flag for identifying new/modified/deleted",
"$ref": "#/definitions/otherflag"
},
"is_sez": {
"description": "Flag for identifying SEZ or not",
"$ref": "#/definitions/sez_flag"
},
"stin": {
"description": "Supplier TIN",
"$ref": "#/definitions/gstin"
},
"boe_num": {
"description": "Bill of Entry No.",
"$ref": "#/definitions/boe_num"
},
"boe_dt": {
"description": "Bill of Entry Date",
"$ref": "#/definitions/nonEmptydate"
},
"boe_val": {
"description": "Total Invoice Value",
"$ref": "#/definitions/higher_lvl_amt"
},
"port_code": {
"description": "Port Code",
"$ref": "#/definitions/port_cd"
},
"chksum": {
"description": "chksum",
"$ref": "#/definitions/chksum"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"txval": {
"description": "Taxable value ",
"$ref": "#/definitions/amt"
},
"rt": {
"description": "Rate",
"$ref": "#/definitions/rate"
},
"iamt": {
"description": "IGST amt",
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"elg": {
"description": "Eligibility for ITC",
"type": "string"
},
"tx_i": {
"description": "Total IGST available as ITC ",
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
}
}
}
},
"required": [
"port_code",
"boe_num",
"boe_dt",
"flag"
]
}
]
}
},
"imp_s": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"flag": {
"$ref": "#/definitions/operationflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"ival": {
"$ref": "#/definitions/higher_lvl_amt"
},
"chksum": {
"$ref": "#/definitions/chksum"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rt": {
"description": "Rate",
"$ref": "#/definitions/rate"
},
"num": {
"type": "integer"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"txval",
"iamt",
"tx_i",
"elg",
"num"
]
}
}
},
"required": [
"inum",
"idt",
"ival",
"pos",
"itms"
]
},
{
"type": "object",
"properties": {
"flag": {
"$ref": "#/definitions/otherflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"ival": {
"$ref": "#/definitions/higher_lvl_amt"
},
"chksum": {
"$ref": "#/definitions/chksum"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"txval": {
"$ref": "#/definitions/amt"
},
"rt": {
"description": "Rate",
"$ref": "#/definitions/rate"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
}
}
}
},
"required": [
"inum",
"idt",
"flag"
]
}
]
}
},
"nil_supplies": {
"type": "object",
"anyOf": [
{
"type": "object",
"properties": {
"flag": {
"$ref": "#/definitions/operationflag"
},
"chksum": {
"type": "string"
},
"inter": {
"type": "object",
"properties": {
"cpddr": {
"description": "Value of supplies received from Compounding Dealer",
"$ref": "#/definitions/neg-amt"
},
"exptdsply": {
"description": "Value of exempted supplies received",
"$ref": "#/definitions/neg-amt"
},
"ngsply": {
"description": "Total Non GST outward supplies",
"$ref": "#/definitions/neg-amt"
},
"nilsply": {
"description": "Nil Rated Supply",
"$ref": "#/definitions/neg-amt"
}
}
},
"intra": {
"type": "object",
"properties": {
"cpddr": {
"description": "Value of supplies received from Compounding Dealer",
"$ref": "#/definitions/neg-amt"
},
"exptdsply": {
"description": "Value of exempted supplies received",
"$ref": "#/definitions/neg-amt"
},
"ngsply": {
"description": "Total Non GST outward supplies",
"$ref": "#/definitions/neg-amt"
},
"nilsply": {
"description": "Nil Rated Supply",
"$ref": "#/definitions/neg-amt"
}
}
}
},
"anyOf": [
{
"required": [
"inter"
]
},
{
"required": [
"intra"
]
}
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"flag": {
"$ref": "#/definitions/otherflag"
},
"chksum": {
"type": "string"
},
"inter": {
"type": "object",
"properties": {
"cpddr": {
"description": "Value of supplies received from Compounding Dealer",
"$ref": "#/definitions/neg-amt"
},
"exptdsply": {
"description": "Value of exempted supplies received",
"$ref": "#/definitions/neg-amt"
},
"ngsply": {
"description": "Total Non GST outward supplies",
"$ref": "#/definitions/neg-amt"
},
"nilsply": {
"description": "Nil Rated Supply",
"$ref": "#/definitions/neg-amt"
}
}
},
"intra": {
"type": "object",
"properties": {
"cpddr": {
"description": "Value of supplies received from Compounding Dealer",
"$ref": "#/definitions/neg-amt"
},
"exptdsply": {
"description": "Value of exempted supplies received",
"$ref": "#/definitions/neg-amt"
},
"ngsply": {
"description": "Total Non GST outward supplies",
"$ref": "#/definitions/neg-amt"
},
"nilsply": {
"description": "Nil Rated Supply",
"$ref": "#/definitions/neg-amt"
}
}
}
},
"required": [
"flag"
],
"additionalProperties": false
}
]
},
"txi": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"flag": {
"id": "#/definitions/operationflag"
},
"chksum": {
"id": "#/definitions/chksum"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"sply_ty": {
"type": "string",
"enum": [
"INTER",
"INTRA"
]
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"adamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"rt": {
"$ref": "#/definitions/rate"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"adamt",
"num"
]
}
}
},
"required": [
"sply_ty"
]
},
{
"type": "object",
"properties": {
"flag": {
"id": "#/definitions/otherflag"
},
"chksum": {
"id": "#/definitions/chksum"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"sply_ty": {
"type": "string",
"enum": [
"INTER",
"INTRA"
]
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"adamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"rt": {
"$ref": "#/definitions/rate"
},
"samt": {
"$ref": "#/definitions/amt"
}
}
}
}
},
"required": [
"flag",
"sply_ty"
]
}
]
}
},
"hsnsum": {
"type": "object",
"anyOf": [
{
"type": "object",
"properties": {
"flag": {
"$ref": "#/definitions/operationflag"
},
"chksum": {
"type": "string"
},
"det": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"hsn_sc": {
"type": "string",
"minLength":1,
"maxLength": 8
},
"desc": {
"type": "string",
"minLength":1,
"maxLength": 30
},
"uqc": {
"type": "string"
},
"qty": {
"$ref": "#/definitions/qty"
},
"txval": {
"$ref": "#/definitions/neg-amt"
},
"val": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/neg-amt"
},
"camt": {
"$ref": "#/definitions/neg-amt"
},
"samt": {
"$ref": "#/definitions/neg-amt"
},
"csamt": {
"$ref": "#/definitions/neg-amt"
}
},
"anyOf": [
{
"required": [
"qty",
"uqc",
"hsn_sc",
"txval"
]
},
{
"required": [
"qty",
"uqc",
"desc",
"txval"
]
}
]
}
}
},
"required": [
"det"
]
},
{
"type": "object",
"properties": {
"flag": {
"$ref": "#/definitions/otherflag"
},
"chksum": {
"type": "string"
},
"det": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"hsn_sc": {
"type": "string"
},
"desc": {
"type": "string",
"maxLength": 30
},
"uqc": {
"type": "string"
},
"qty": {
"$ref": "#/definitions/qty"
},
"txval": {
"$ref": "#/definitions/neg-amt"
},
"val": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/neg-amt"
},
"camt": {
"$ref": "#/definitions/neg-amt"
},
"samt": {
"$ref": "#/definitions/neg-amt"
},
"csamt": {
"$ref": "#/definitions/neg-amt"
}
}
}
}
},
"required": [
"flag"
]
}
]
},
"txpd": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"flag": {
"id": "#/definitions/operationflag"
},
"chksum": {
"id": "#/definitions/chksum"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"sply_ty": {
"type": "string",
"enum": [
"INTER",
"INTRA"
]
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"adamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"rt": {
"$ref": "#/definitions/rate"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"adamt",
"num"
]
}
}
},
"required": [
"sply_ty"
]
},
{
"type": "object",
"properties": {
"flag": {
"id": "#/definitions/otherflag"
},
"chksum": {
"id": "#/definitions/chksum"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"sply_ty": {
"type": "string",
"enum": [
"INTER",
"INTRA"
]
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"adamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"rt": {
"$ref": "#/definitions/rate"
},
"samt": {
"$ref": "#/definitions/amt"
}
}
}
}
},
"required": [
"flag",
"sply_ty"
]
}
]
}
},
"b2b": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ctin": {
"$ref": "#/definitions/gstin"
},
"inv": {
"type": "array",
"minLength": 1,
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/operationflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"rchrg": {
"$ref": "#/definitions/boolean"
},
"inv_typ": {
"$ref": "#/definitions/invtype"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"txval",
"rt"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itm_det",
"itc"
]
}
}
},
"required": [
"inum",
"idt",
"val",
"rchrg",
"inv_typ",
"itms"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"type": "string",
"enum": [
"M"
]
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"rchrg": {
"$ref": "#/definitions/boolean"
},
"inv_typ": {
"$ref": "#/definitions/invtype"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"txval",
"rt"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itm_det",
"itc"
]
}
}
},
"required": [
"inum",
"idt",
"val",
"rchrg",
"itms",
"inv_typ",
"chksum"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/actionflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"rchrg": {
"$ref": "#/definitions/boolean"
},
"inv_typ": {
"$ref": "#/definitions/invtype"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"txval",
"rt"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num"
]
}
}
},
"required": [
"inum",
"idt",
"chksum",
"flag"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/acceptflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"rchrg": {
"$ref": "#/definitions/boolean"
},
"inv_typ": {
"$ref": "#/definitions/invtype"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"txval",
"rt"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itc"
]
}
}
},
"required": [
"inum",
"idt",
"chksum",
"flag",
"itms"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/otherflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"rchrg": {
"$ref": "#/definitions/boolean"
},
"inv_typ": {
"$ref": "#/definitions/invtype"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"txval",
"rt"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num"
]
}
}
},
"required": [
"inum",
"idt",
"flag"
]
}
]
}
}
},
"required": [
"ctin",
"inv"
]
}
},
"b2bur": {
"type": "array",
"items": {
"type": "object",
"properties": {
"inv": {
"type": "array",
"minLength": 1,
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/operationflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"sply_ty": {
"$ref": "#/definitions/supply_type"
},
"pos": {
"$ref": "#/definitions/state_cd"
},
"rchrg": {
"$ref": "#/definitions/boolean"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"txval",
"rt"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itm_det",
"itc"
]
}
}
},
"required": [
"inum",
"idt",
"val",
"sply_ty",
"pos",
"itms"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/otherflag"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"rchrg": {
"$ref": "#/definitions/boolean"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
}
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
}
}
}
}
}
},
"required": [
"inum",
"idt",
"flag"
]
}
]
}
}
},
"required": [
"inv"
]
}
},
"cdn": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ctin": {
"$ref": "#/definitions/gstin"
},
"nt": {
"type": "array",
"minLength": 1,
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/operationflag"
},
"ntty": {
"type": "string",
"enum": [
"C",
"D",
"R"
]
},
"nt_num": {
"$ref": "#/definitions/num"
},
"nt_dt": {
"$ref": "#/definitions/nonEmptydate"
},
"inum": {
"$ref": "#/definitions/num"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"rsn": {
"$ref": "#/definitions/nonEmptyString"
},
"p_gst": {
"$ref": "#/definitions/boolean"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"txval"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itm_det",
"itc"
]
}
}
},
"required": [
"ntty",
"nt_num",
"nt_dt",
"inum",
"idt",
"rsn",
"val",
"p_gst",
"itms"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"type": "string",
"enum": [
"M"
]
},
"ntty": {
"type": "string",
"enum": [
"C",
"D",
"R"
]
},
"nt_num": {
"$ref": "#/definitions/num"
},
"nt_dt": {
"$ref": "#/definitions/nonEmptydate"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"rsn": {
"$ref": "#/definitions/nonEmptyString"
},
"p_gst": {
"$ref": "#/definitions/boolean"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"txval"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itm_det",
"itc"
]
}
}
},
"required": [
"ntty",
"nt_num",
"nt_dt",
"inum",
"idt",
"rsn",
"val",
"p_gst",
"itms"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/actionflag"
},
"ntty": {
"type": "string",
"enum": [
"C",
"D",
"R"
]
},
"nt_num": {
"$ref": "#/definitions/num"
},
"nt_dt": {
"$ref": "#/definitions/nonEmptydate"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"rsn": {
"$ref": "#/definitions/nonEmptyString"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"p_gst": {
"$ref": "#/definitions/boolean"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
}
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
}
}
},
"required": [
"num"
]
}
}
},
"required": [
"nt_num",
"nt_dt",
"flag",
"chksum"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/otherflag"
},
"ntty": {
"type": "string",
"enum": [
"C",
"D",
"R"
]
},
"nt_num": {
"$ref": "#/definitions/num"
},
"nt_dt": {
"$ref": "#/definitions/nonEmptydate"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"rsn": {
"$ref": "#/definitions/nonEmptyString"
},
"p_gst": {
"$ref": "#/definitions/boolean"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
}
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
}
}
},
"required": [
"num"
]
}
}
},
"required": [
"nt_num",
"nt_dt",
"flag"
]
},
{
"type": "object",
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/acceptflag"
},
"ntty": {
"type": "string",
"enum": [
"C",
"D",
"R"
]
},
"nt_num": {
"$ref": "#/definitions/num"
},
"nt_dt": {
"$ref": "#/definitions/nonEmptydate"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"rsn": {
"$ref": "#/definitions/nonEmptyString"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"p_gst": {
"$ref": "#/definitions/boolean"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"txval"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_i": {
"$ref": "#/definitions/amt"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itc"
]
}
}
},
"required": [
"nt_num",
"nt_dt",
"flag",
"chksum",
"itms"
]
}
]
}
}
},
"required": [
"ctin",
"nt"
]
}
},
"cdnur": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"rtin": {
"$ref": "#/definitions/gstin"
},
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/operationflag"
},
"ntty": {
"type": "string",
"enum": [
"C",
"D",
"R"
]
},
"nt_num": {
"$ref": "#/definitions/num"
},
"nt_dt": {
"$ref": "#/definitions/nonEmptydate"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"rsn": {
"$ref": "#/definitions/nonEmptyString"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"p_gst": {
"$ref": "#/definitions/boolean"
},
"inv_typ":{
"$ref": "#/definitions/inv_type"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
},
"required": [
"rt",
"txval"
]
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
},
"required": [
"elg"
]
}
},
"required": [
"num",
"itm_det",
"itc"
]
}
}
},
"required": [
"ntty",
"nt_num",
"nt_dt",
"inum",
"idt",
"rsn",
"val",
"p_gst",
"itms"
]
},
{
"type": "object",
"properties": {
"rtin": {
"$ref": "#/definitions/gstin"
},
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/otherflag"
},
"ntty": {
"type": "string",
"enum": [
"C",
"D",
"R"
]
},
"nt_num": {
"$ref": "#/definitions/num"
},
"nt_dt": {
"$ref": "#/definitions/nonEmptydate"
},
"inum": {
"$ref": "#/definitions/num"
},
"idt": {
"$ref": "#/definitions/nonEmptydate"
},
"rsn": {
"$ref": "#/definitions/nonEmptyString"
},
"val": {
"$ref": "#/definitions/higher_lvl_amt"
},
"p_gst": {
"$ref": "#/definitions/boolean"
},
"inv_typ":{
"$ref": "#/definitions/inv_type"
},
"itms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"num": {
"type": "integer"
},
"itm_det": {
"type": "object",
"properties": {
"rt": {
"$ref": "#/definitions/rate"
},
"txval": {
"$ref": "#/definitions/amt"
},
"camt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
}
}
},
"itc": {
"type": "object",
"properties": {
"elg": {
"type": "string"
},
"tx_s": {
"$ref": "#/definitions/amt"
},
"tx_c": {
"$ref": "#/definitions/amt"
},
"tx_cs": {
"$ref": "#/definitions/amt"
}
}
}
},
"required": [
"num"
]
}
}
},
"required": [
"nt_num",
"nt_dt",
"flag"
]
}
]
}
},
"itc_rvsl": {
"anyOf": [
{
"type": "object",
"anyOf": [
{
"required": [
"rule2_2"
]
},
{
"required": [
"rule8_1_h"
]
},
{
"required": [
"rule7_2_a"
]
},
{
"required": [
"rule7_2_b"
]
},
{
"required": [
"revitc"
]
},
{
"required": [
"other"
]
},
{
"required": [
"rule7_1_m"
]
}
],
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/operationflag"
},
"other": {
"properties": {
"camt": {
"$ref": "#/definitions/neg-amt"
},
"csamt": {
"$ref": "#/definitions/neg-amt"
},
"iamt": {
"$ref": "#/definitions/neg-amt"
},
"samt": {
"$ref": "#/definitions/neg-amt"
}
},
"type": "object"
},
"revitc": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule2_2": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule7_1_m": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule7_2_a": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule7_2_b": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule8_1_h": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
}
}
},
{
"type": "object",
"required": [
"flag"
],
"properties": {
"chksum": {
"$ref": "#/definitions/chksum"
},
"flag": {
"$ref": "#/definitions/otherflag"
},
"other": {
"properties": {
"camt": {
"$ref": "#/definitions/neg-amt"
},
"csamt": {
"$ref": "#/definitions/neg-amt"
},
"iamt": {
"$ref": "#/definitions/neg-amt"
},
"samt": {
"$ref": "#/definitions/neg-amt"
}
},
"type": "object"
},
"revitc": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule2_2": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule7_1_m": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule7_2_a": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule7_2_b": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
},
"rule8_1_h": {
"properties": {
"camt": {
"$ref": "#/definitions/amt"
},
"csamt": {
"$ref": "#/definitions/amt"
},
"iamt": {
"$ref": "#/definitions/amt"
},
"samt": {
"$ref": "#/definitions/amt"
}
},
"type": "object"
}
}
}
]
}
},
"required": [
"gstin",
"fp"
],
"definitions": {
"nonEmptyString": {
"type": "string",
"minLength": 1
},
"nonEmptydate": {
"type": "string",
"minLength": 1,
"pattern": "^((0[1-9]|[12][0-9]|3[01])[-](0[1-9]|1[012])[-]((19|20)\\d\\d))$"
},
"gstin": {
"type": "string",
"maxLength": 15,
"minLength": 15,
"pattern": "^[a-zA-Z0-9._\\s]+$"
},
"actionflag": {
"type": "string",
"enum": [
"P",
"R"
]
},
"operationflag": {
"type": "string",
"enum": [
"N",
"E"
]
},
"sez_flag": {
"type": "string",
"enum": [
"Y",
"N"
]
},
"otherflag": {
"type": "string",
"enum": [
"D"
]
},
"acceptflag": {
"type": "string",
"enum": [
"A"
]
},
"rate": {
"type": "number",
"minimum": 0,
"maximum": 999.99
},
"amt": {
"type": "number",
"maximum": 999999999999999.99,
"minimum": 0,
"multipleOf": 0.01
},
"neg-amt": {
"type": "number",
"maximum": 999999999999999.99,
"minimum": -999999999999999.99,
"multipleOf": 0.01
},
"higher_lvl_amt": {
"type": "number",
"maximum": 1000000000000000,
"minimum": 0,
"multipleOf": 0.01
},
"qty": {
"type": "number",
"maximum": 9999999999.99,
"minimum": 0,
"multipleOf": 0.001
},
"invtype": {
"type": "string",
"enum": [
"R",
"DE",
"SEWP",
"SEWOP"
]
},
"num": {
"type": "string",
"maxLength": 16,
"minLength": 1,
"pattern": "^[a-zA-Z0-9-/]+$"
},
"boe_num": {
"type": "string",
"maxLength": 7,
"minLength": 7,
"pattern": "^[0-9]+$"
},
"port_cd": {
"type": "string",
"maxLength": 6,
"minLength": 6,
"pattern": "^[a-zA-Z0-9]+$"
},
"chksum": {
"type": "string",
"pattern": "^[a-zA-Z0-9]+$"
},
"state_cd": {
"type": "string",
"description": "Recipient state code",
"pattern": "^(3[0-7]|[12][0-9]|0[1-9]|97)$",
"maxLength": 2,
"minLength": 2
},
"ntty": {
"type": "string",
"enum": [
"C",
"D"
]
},
"hsn_supply_typ": {
"type": "string",
"enum": [
"INTERB2B",
"INTRAB2B",
"INTERB2C",
"INTRAB2C"
]
},
"supply_type": {
"type": "string",
"enum": [
"INTER",
"INTRA"
]
},
"boolean": {
"type": "string",
"enum": [
"Y",
"N"
]
},
"goods_type": {
"type": "string",
"enum": [
"G",
"S"
]
},
"invoice_type": {
"type": "string",
"enum": [
"B2B",
"DBNOTE",
"IMPG",
"IMPS",
"B2BUR"
]
},
"inv_type": {
"type": "string",
"enum": [
"IMPS",
"B2BUR"
]
}
},
"additionalProperties": false
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment