E Invoicing API
Search…
⌃K

XSD E-Invoicing

<?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="data"> <xs:complexType> <xs:sequence> <xs:element name="access_token" type="xs:string" /> <xs:element name="user_gstin" type="xs:string" /> <xs:element name="data_source" type="xs:string" /> <xs:element name="transaction_details"> <xs:complexType> <xs:sequence> <xs:element name="category_of_transaction" type="xs:string" /> <xs:element name="charge_type" type="xs:string" /> <xs:element name="transaction_type" type="xs:string" /> <xs:element name="ecommerce_transaction" type="xs:string" /> <xs:element name="ecommerce_gstin" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="document_details"> <xs:complexType> <xs:sequence> <xs:element name="document_type" type="xs:string" /> <xs:element name="document_number" type="xs:string" /> <xs:element name="document_date" type="xs:date" /> <xs:element name="original_document_number" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="seller_details"> <xs:complexType> <xs:sequence> <xs:element name="gstin" type="xs:string" /> <xs:element name="trade_name" type="xs:string" /> <xs:element name="building_number" type="xs:string" /> <xs:element name="building_name" type="xs:string" /> <xs:element name="floor_number" type="xs:string" /> <xs:element name="location" type="xs:string" /> <xs:element name="district" type="xs:string" /> <xs:element name="pincode" type="xs:unsignedInt" /> <xs:element name="state_code" type="xs:string" /> <xs:element name="phone_number" type="xs:unsignedLong" /> <xs:element name="email" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="buyer_details"> <xs:complexType> <xs:sequence> <xs:element name="gstin" type="xs:string" /> <xs:element name="trade_name" type="xs:string" /> <xs:element name="building_number" type="xs:string" /> <xs:element name="building_name" type="xs:string" /> <xs:element name="floor_number" type="xs:string" /> <xs:element name="location" type="xs:string" /> <xs:element name="district" type="xs:string" /> <xs:element name="pincode" type="xs:unsignedInt" /> <xs:element name="state_code" type="xs:string" /> <xs:element name="phone_number" type="xs:unsignedLong" /> <xs:element name="email" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="dispatch_details"> <xs:complexType> <xs:sequence> <xs:element name="gstin" type="xs:string" /> <xs:element name="trade_name" type="xs:string" /> <xs:element name="building_number" type="xs:string" /> <xs:element name="building_name" type="xs:string" /> <xs:element name="floor_number" type="xs:string" /> <xs:element name="location" type="xs:string" /> <xs:element name="district" type="xs:string" /> <xs:element name="pincode" type="xs:unsignedInt" /> <xs:element name="state_code" type="xs:string" /> <xs:element name="phone_number" type="xs:unsignedLong" /> <xs:element name="email" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ship_details"> <xs:complexType> <xs:sequence> <xs:element name="gstin" type="xs:string" /> <xs:element name="trade_name" type="xs:string" /> <xs:element name="building_number" type="xs:string" /> <xs:element name="building_name" type="xs:string" /> <xs:element name="floor_number" type="xs:string" /> <xs:element name="location" type="xs:string" /> <xs:element name="district" type="xs:string" /> <xs:element name="pincode" type="xs:unsignedInt" /> <xs:element name="state_code" type="xs:string" /> <xs:element name="phone_number" type="xs:unsignedLong" /> <xs:element name="email" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="export_details"> <xs:complexType> <xs:sequence> <xs:element name="export_category" type="xs:string" /> <xs:element name="ship_bill_number" type="xs:string" /> <xs:element name="ship_bill_date" type="xs:date" /> <xs:element name="country_code" type="xs:string" /> <xs:element name="foreign_currency" type="xs:string" /> <xs:element name="total_invoice_value_in_foreign_currency" type="xs:decimal" /> <xs:element name="port_code" /> <xs:element name="export_payment" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="payment_details"> <xs:complexType> <xs:sequence> <xs:element name="account_details" type="xs:string" /> <xs:element name="paid_balance_amount" type="xs:decimal" /> <xs:element name="credit_days" type="xs:string" /> <xs:element name="credit_transfer" type="xs:string" /> <xs:element name="direct_debit" type="xs:string" /> <xs:element name="branch_or_ifsc" type="xs:string" /> <xs:element name="payment_mode" type="xs:string" /> <xs:element name="payee_name" type="xs:string" /> <xs:element name="payment_due_date" type="xs:date" /> <xs:element name="payment_instruction" type="xs:string" /> <xs:element name="payment_term" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="reference_details"> <xs:complexType> <xs:sequence> <xs:element name="contract_reference_number" type="xs:string" /> <xs:element name="other_reference" type="xs:string" /> <xs:element name="invoice_period_start_date" type="xs:date" /> <xs:element name="invoice_period_end_date" type="xs:date" /> <xs:element name="invoice_reference_number" type="xs:string" /> <xs:element name="invoice_remarks" type="xs:string" /> <xs:element name="vendor_po_reference_number" type="xs:string" /> <xs:element name="preceding_invoice_date" type="xs:date" /> <xs:element name="preceding_invoice_number" type="xs:string" /> <xs:element name="project_reference_number" type="xs:string" /> <xs:element name="receipt_advice_number" type="xs:string" /> <xs:element name="batch_reference_number" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="value_details"> <xs:complexType> <xs:sequence> <xs:element name="total_assessable_value" type="xs:decimal" /> <xs:element name="total_cgst_value" type="xs:decimal" /> <xs:element name="total_sgst_value" type="xs:decimal" /> <xs:element name="total_igst_value" type="xs:decimal" /> <xs:element name="total_cess_value" type="xs:decimal" /> <xs:element name="total_cess_nonadvol_value" type="xs:decimal" /> <xs:element name="total_invoice_value" type="xs:decimal" /> <xs:element name="total_cess_value_of_state" type="xs:decimal" /> <xs:element name="discount" type="xs:decimal" /> <xs:element name="other_charge" type="xs:decimal" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element maxOccurs="unbounded" name="item_list"> <xs:complexType> <xs:sequence> <xs:element name="product_name" type="xs:string" /> <xs:element name="product_description" type="xs:string" /> <xs:element name="hsn_code" type="xs:string" /> <xs:element name="bar_code" type="xs:string" /> <xs:element name="quantity" type="xs:decimal" /> <xs:element name="free_quantity" type="xs:decimal" /> <xs:element name="unit" type="xs:string" /> <xs:element name="unit_price" type="xs:decimal" /> <xs:element name="total_amount" type="xs:decimal" /> <xs:element name="discount" type="xs:decimal" /> <xs:element name="other_charge" type="xs:decimal" /> <xs:element name="assessable_value" type="xs:decimal" /> <xs:element name="cgst_rate" type="xs:decimal" /> <xs:element name="sgst_rate" type="xs:decimal" /> <xs:element name="igst_rate" type="xs:decimal" /> <xs:element name="cess_rate" type="xs:decimal" /> <xs:element name="cess_nonadvol_value" type="xs:decimal" /> <xs:element name="state_cgst_rate" type="xs:decimal" /> <xs:element name="total_item_value" type="xs:decimal" /> <xs:element name="batch_details"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string" /> <xs:element name="expiry_date" type="xs:date" /> <xs:element name="warranty_date" type="xs:date" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>