# XML for E-Invoicing

{% embed url="<https://www.mastersindia.co/contact-us/?products=E-Invoicing%20API>" %}

\<?xml version="1.0" encoding="UTF-8" standalone="no"?>\
\<data>\
&#x20;     \<access\_token>d08f0b82565c9a4f964bbdcf8af6064a9421dce3\</access\_token>\
&#x20;     \<user\_gstin>09AAAPG7885R002\</user\_gstin>\
&#x20;     \<data\_source>erp\</data\_source>\
&#x20;     \<transaction\_details>\
&#x20;       \<category\_of\_transaction>B2B\</category\_of\_transaction>\
&#x20;       \<charge\_type>RG\</charge\_type>\
&#x20;       \<transaction\_type>REG\</transaction\_type>\
&#x20;       \<ecommerce\_transaction>N\</ecommerce\_transaction>\
&#x20;       \<ecommerce\_gstin>\</ecommerce\_gstin>\
&#x20;     \</transaction\_details>\
&#x20;     \<document\_details>\
&#x20;       \<document\_type>INV\</document\_type>\
&#x20;       \<document\_number>174ASD5\</document\_number>\
&#x20;       \<document\_date>2020-01-08\</document\_date>\
&#x20;       \<original\_document\_number>123698\</original\_document\_number>\
&#x20;     \</document\_details>\
&#x20;     \<seller\_details>\
&#x20;       \<gstin>09AAAPG7885R002\</gstin>\
&#x20;       \<trade\_name>MastersIndia UP\</trade\_name>\
&#x20;       \<building\_number>1\</building\_number>\
&#x20;       \<building\_name>Vila\</building\_name>\
&#x20;       \<floor\_number>123\</floor\_number>\
&#x20;       \<location>Noida\</location>\
&#x20;       \<district>Noida\</district>\
&#x20;       \<pincode>201301\</pincode>\
&#x20;       \<state\_code>UTTAR PRADESH\</state\_code>\
&#x20;       \<phone\_number>9876543231\</phone\_number>\
&#x20;       \<email>[abc@gmail.com](mailto:abc@gmail.com#inbox/_blank)\</email>\
&#x20;     \</seller\_details>\
&#x20;     \<buyer\_details>\
&#x20;       \<gstin>05AAAPG7885R002\</gstin>\
&#x20;       \<trade\_name>MastersIndia UT\</trade\_name>\
&#x20;       \<building\_number>1\</building\_number>\
&#x20;       \<building\_name>Kila\</building\_name>\
&#x20;       \<floor\_number>1\</floor\_number>\
&#x20;       \<location>Nainital\</location>\
&#x20;       \<district>Nainital\</district>\
&#x20;       \<pincode>110010\</pincode>\
&#x20;       \<state\_code>UTTARAKHAND\</state\_code>\
&#x20;       \<phone\_number>9876543231\</phone\_number>\
&#x20;       \<email>[xyz@gmail.com](mailto:xyz@gmail.com#inbox/_blank)\</email>\
&#x20;     \</buyer\_details>\
&#x20;     \<dispatch\_details>\
&#x20;       \<gstin>09AAAPG7885R002\</gstin>\
&#x20;       \<trade\_name>MastersIndia UP\</trade\_name>\
&#x20;       \<building\_number>1\</building\_number>\
&#x20;       \<building\_name>Vila\</building\_name>\
&#x20;       \<floor\_number>123\</floor\_number>\
&#x20;       \<location>Noida\</location>\
&#x20;       \<district>Noida\</district>\
&#x20;       \<pincode>201301\</pincode>\
&#x20;       \<state\_code>UTTAR PRADESH\</state\_code>\
&#x20;       \<phone\_number>9876543231\</phone\_number>\
&#x20;       \<email>[abc@gmail.com](mailto:abc@gmail.com#inbox/_blank)\</email>\
&#x20;     \</dispatch\_details>\
&#x20;     \<ship\_details>\
&#x20;       \<gstin>05AAAPG7885R002\</gstin>\
&#x20;       \<trade\_name>MastersIndia UT\</trade\_name>\
&#x20;       \<building\_number>1\</building\_number>\
&#x20;       \<building\_name>Kila\</building\_name>\
&#x20;       \<floor\_number>1\</floor\_number>\
&#x20;       \<location>Nainital\</location>\
&#x20;       \<district>Nainital\</district>\
&#x20;       \<pincode>110010\</pincode>\
&#x20;       \<state\_code>UTTARAKHAND\</state\_code>\
&#x20;       \<phone\_number>9876543231\</phone\_number>\
&#x20;       \<email>[xyz@gmail.com](mailto:xyz@gmail.com#inbox/_blank)\</email>\
&#x20;     \</ship\_details>\
&#x20;     \<export\_details>\
&#x20;       \<export\_category>DIR\</export\_category>\
&#x20;       \<ship\_bill\_number>qwe1233\</ship\_bill\_number>\
&#x20;       \<ship\_bill\_date>2020-01-08\</ship\_bill\_date>\
&#x20;       \<country\_code>IN\</country\_code>\
&#x20;       \<foreign\_currency>INR\</foreign\_currency>\
&#x20;       \<total\_invoice\_value\_in\_foreign\_currency>1.01\</total\_invoice\_value\_in\_foreign\_currency>\
&#x20;       \<port\_code>\</port\_code>\
&#x20;       \<export\_payment>N\</export\_payment>\
&#x20;     \</export\_details>\
&#x20;     \<payment\_details>\
&#x20;       \<account\_details>Account Details\</account\_details>\
&#x20;       \<paid\_balance\_amount>100\</paid\_balance\_amount>\
&#x20;       \<credit\_days>2\</credit\_days>\
&#x20;       \<credit\_transfer>Credit Transfer\</credit\_transfer>\
&#x20;       \<direct\_debit>Direct Debit\</direct\_debit>\
&#x20;       \<branch\_or\_ifsc>KKK000180\</branch\_or\_ifsc>\
&#x20;       \<payment\_mode>CASH\</payment\_mode>\
&#x20;       \<payee\_name>Payee Name\</payee\_name>\
&#x20;       \<payment\_due\_date>2020-01-01\</payment\_due\_date>\
&#x20;       \<payment\_instruction>Payment Instruction\</payment\_instruction>\
&#x20;       \<payment\_term>Terms of Payment\</payment\_term>\
&#x20;     \</payment\_details>\
&#x20;     \<reference\_details>\
&#x20;       \<contract\_reference\_number>23435\</contract\_reference\_number>\
&#x20;       \<other\_reference>tre45656\</other\_reference>\
&#x20;       \<invoice\_period\_start\_date>2020-01-01\</invoice\_period\_start\_date>\
&#x20;       \<invoice\_period\_end\_date>2020-01-30\</invoice\_period\_end\_date>\
&#x20;       \<invoice\_reference\_number>wewr2344534\</invoice\_reference\_number>\
&#x20;       \<invoice\_remarks>Invoice Remarks\</invoice\_remarks>\
&#x20;       \<vendor\_po\_reference\_number>34543\</vendor\_po\_reference\_number>\
&#x20;       \<preceding\_invoice\_date>2020-01-05\</preceding\_invoice\_date>\
&#x20;       \<preceding\_invoice\_number>23434\</preceding\_invoice\_number>\
&#x20;       \<project\_reference\_number>WWW123\</project\_reference\_number>\
&#x20;       \<receipt\_advice\_number>234345\</receipt\_advice\_number>\
&#x20;       \<batch\_reference\_number>235435\</batch\_reference\_number>\
&#x20;     \</reference\_details>\
&#x20;     \<value\_details>\
&#x20;       \<total\_assessable\_value>1\</total\_assessable\_value>\
&#x20;       \<total\_cgst\_value>0\</total\_cgst\_value>\
&#x20;       \<total\_sgst\_value>0\</total\_sgst\_value>\
&#x20;       \<total\_igst\_value>0.01\</total\_igst\_value>\
&#x20;       \<total\_cess\_value>0\</total\_cess\_value>\
&#x20;       \<total\_cess\_nonadvol\_value>0\</total\_cess\_nonadvol\_value>\
&#x20;       \<total\_invoice\_value>1.01\</total\_invoice\_value>\
&#x20;       \<total\_cess\_value\_of\_state>0\</total\_cess\_value\_of\_state>\
&#x20;       \<discount>0\</discount>\
&#x20;       \<other\_charge>0\</other\_charge>\
&#x20;     \</value\_details>\
&#x20;     \<item\_list>\
&#x20;       \<product\_name>Wheat\</product\_name>\
&#x20;       \<product\_description>Wheat desc\</product\_description>\
&#x20;       \<hsn\_code>1001\</hsn\_code>\
&#x20;       \<bar\_code>1212\</bar\_code>\
&#x20;       \<quantity>1\</quantity>\
&#x20;       \<free\_quantity>0\</free\_quantity>\
&#x20;       \<unit>KGS\</unit>\
&#x20;       \<unit\_price>1\</unit\_price>\
&#x20;       \<total\_amount>1\</total\_amount>\
&#x20;       \<discount>0\</discount>\
&#x20;       \<other\_charge>0\</other\_charge>\
&#x20;       \<assessable\_value>1\</assessable\_value>\
&#x20;       \<cgst\_rate>0\</cgst\_rate>\
&#x20;       \<sgst\_rate>0\</sgst\_rate>\
&#x20;       \<igst\_rate>1\</igst\_rate>\
&#x20;       \<cess\_rate>0\</cess\_rate>\
&#x20;       \<cess\_nonadvol\_value>0\</cess\_nonadvol\_value>\
&#x20;       \<state\_cess\_rate>0\</state\_cess\_rate>\
&#x20;       \<total\_item\_value>1\</total\_item\_value>\
&#x20;       \<batch\_details>\
&#x20;         \<name>aaa\</name>\
&#x20;         \<expiry\_date>2020-02-10\</expiry\_date>\
&#x20;         \<warranty\_date>2020-02-20\</warranty\_date>\
&#x20;       \</batch\_details>\
&#x20;     \</item\_list>\
&#x20;     \<item\_list>\
&#x20;       \<product\_name>Wheat\</product\_name>\
&#x20;       \<product\_description>Wheat desc\</product\_description>\
&#x20;       \<hsn\_code>1001\</hsn\_code>\
&#x20;       \<bar\_code>1212\</bar\_code>\
&#x20;       \<quantity>1\</quantity>\
&#x20;       \<free\_quantity>0\</free\_quantity>\
&#x20;       \<unit>KGS\</unit>\
&#x20;       \<unit\_price>1\</unit\_price>\
&#x20;       \<total\_amount>1\</total\_amount>\
&#x20;       \<discount>0\</discount>\
&#x20;       \<other\_charge>0\</other\_charge>\
&#x20;       \<assessable\_value>1\</assessable\_value>\
&#x20;       \<cgst\_rate>0\</cgst\_rate>\
&#x20;       \<sgst\_rate>0\</sgst\_rate>\
&#x20;       \<igst\_rate>1\</igst\_rate>\
&#x20;       \<cess\_rate>0\</cess\_rate>\
&#x20;       \<cess\_nonadvol\_value>0\</cess\_nonadvol\_value>\
&#x20;       \<state\_cess\_rate>0\</state\_cess\_rate>\
&#x20;       \<total\_item\_value>1\</total\_item\_value>\
&#x20;       \<batch\_details>\
&#x20;         \<name>aaa\</name>\
&#x20;         \<expiry\_date>2020-02-10\</expiry\_date>\
&#x20;         \<warranty\_date>2020-02-20\</warranty\_date>\
&#x20;       \</batch\_details>\
&#x20;     \</item\_list>\
\</data><br>

{% embed url="<https://www.mastersindia.co/contact-us/?products=E-Invoicing%20API>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mastersindia.co/e-invoicing-api/xml-e-invoice-apis/xml-for-e-invoicing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
