Raw schema
{
"type": "object",
"properties": {
"seller_gstin": {
"type": "string",
"description": "Seller (supplier) 15-char GSTIN, e.g. 29ABCDE1234F1Z5. Its first 2 digits are the seller state code and drive the CGST+SGST vs IGST decision."
},
"seller_legal_name": {
"type": "string",
"description": "Seller legal name (LglNm) exactly as registered under this GSTIN."
},
"seller_address": {
"type": "string",
"description": "Seller registered address line 1 (Addr1)."
},
"seller_city": {
"type": "string",
"description": "Seller city / location (Loc)."
},
"seller_pincode": {
"type": "string",
"description": "Seller 6-digit PIN code (Pin)."
},
"buyer_gstin": {
"type": "string",
"description": "Buyer (recipient) 15-char GSTIN. Required — e-invoicing is B2B only."
},
"buyer_legal_name": {
"type": "string",
"description": "Buyer legal name (LglNm) as registered under the buyer GSTIN."
},
"buyer_address": {
"type": "string",
"description": "Buyer address line 1 (Addr1)."
},
"buyer_city": {
"type": "string",
"description": "Buyer city / location (Loc)."
},
"buyer_pincode": {
"type": "string",
"description": "Buyer 6-digit PIN code (Pin)."
},
"buyer_state_code": {
"type": "string",
"description": "Optional place-of-supply state code (POS), 2 digits. Defaults to the buyer GSTIN state code. Set this if the place of supply differs from the buyer registration state."
},
"doc_number": {
"type": "string",
"description": "Your invoice/document number (DocDtls.No), max 16 chars."
},
"doc_date": {
"type": "string",
"description": "Invoice date DD/MM/YYYY (DocDtls.Dt). Defaults to today (UTC)."
},
"items": {
"type": "array",
"minItems": 1,
"description": "Line items. Each: description, hsn_code (HSN/SAC), price (unit price in INR, tax-EXCLUSIVE), gst_rate (percent, e.g. 18), optional quantity (default 1) and unit (default NOS). GST is computed on top of price*quantity.",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"hsn_code": {
"type": "string",
"description": "HSN (goods) or SAC (services) code."
},
"price": {
"type": "number",
"description": "Tax-exclusive unit price in INR."
},
"quantity": {
"type": "number",
"description": "Default 1."
},
"gst_rate": {
"type": "number",
"description": "GST rate percent, e.g. 0, 5, 12, 18, 28."
},
"unit": {
"type": "string",
"description": "Unit of measure (UQC), default NOS."
}
},
"required": [
"description",
"hsn_code",
"price",
"gst_rate"
]
}
}
},
"required": [
"seller_gstin",
"seller_legal_name",
"seller_address",
"seller_city",
"seller_pincode",
"buyer_gstin",
"buyer_legal_name",
"buyer_address",
"buyer_city",
"buyer_pincode",
"doc_number",
"items"
]
}