document.write("
<Module code="avatax" feature="tax"> <ShippingAddress_Add> <ToCountry>GB</ToCountry> <ToState>Westminster</ToState> <FromAddress1>123 Main st</FromAddress1> <FromAddress2>Appt 400</FromAddress2> <FromCity>Bay City</FromCity> <FromState>CO</FromState> <FromZip>92106</FromZip> <FromCountry>US</FromCountry> </ShippingAddress_Add> <ShippingAddress_Update to_country="UZ" to_state="Bobville"> <ToCountry>US</ToCountry> <ToState>*</ToState> <FromAddress1>16745 W Bernardo Dr </FromAddress1> <FromAddress2>#400</FromAddress2> <FromCity>San Diego</FromCity> <FromState>CA</FromState> <FromZip>92127</FromZip> <FromCountry>US</FromCountry> </ShippingAddress_Update> <ShippingAddress_Delete to_country="US" to_state="Delete Me" /> </Module>
//Possible Entity Use Codes. You only pass the value in the XML, not the full name <option value="A">A: Federal government</option> <option value="B">B: State government</option> <option value="C">C: Tribal government</option> <option value="D">D: Foreign diplomat</option> <option value="E">E: Charitable organization</option> <option value="F">F: Religious organization</option> <option value="G">G: Resale</option> <option value="H">H: Agricultural production</option> <option value="I">I: Industrial production or manufacturers</option> <option value="J">J: Direct pay permit</option> <option value="K">K: Direct mail</option> <option value="L">L: Other or custom</option> <option value="M">M: Educational organization</option> <option value="N">N: Local government</option> <option value="P">P: Commercial aquaculture</option> <option value="Q">Q: Commercial fishery</option> <option value="R">R: Non-resident</option> <option value="TAXABLE">TAXABLE: Fully Taxable</option>
<Customer_CustomField module="avatax" customer="bheyde" field="code">12345</Customer_CustomField> <Customer_CustomField module="avatax" customer="bheyde" field="usecode">C</Customer_CustomField> <Customer_CustomField module="avatax" customer="bheyde" field="exemption">55555</Customer_CustomField>
//add product tax code to a product <Product_CustomField module="avatax" product="test" field="taxcode">12345</Product_CustomField>
<Module code="avatax" feature="tax"> <Settings> <Endpoint>Sandbox|Production</Endpoint> <Username>...</Username> <Password>...</Password> <CompanyCode>...</CompanyCode> <CreateSalesInvoices>Yes|No</CreateSalesInvoices> </Settings> <ChargeTaxCode_Add type="SHIPPING" taxcode="def" /> <ChargeTaxCode_Update type="SHIPPING" taxcode="def" /> <ChargeTaxCode_Delete type="SHIPPING" /> <ShippingMethodTaxCode_Update module_code="upsxml" method_code="01" taxcode="FR000001" /> <TaxCodes_Update /> <EntityUseCodes_Update /> </Module>