Calculate tax for charge
Mapping details
The following mapping table shows how Zuora's data fields are used in Avalara to calculate the tax of a normal charge.
For example, TaxRequest.DocCode
in Avalara is mapped to Invoice.ID
in Zuora. The mapping to a Constant Component in Zuora means that the data field in Avalara will always be set to the same value. For example, the value of TaxRequest.Commit
in Avalara is always set to TRUE
.
By default, the account-level currency is always linked to the currency code in the tax request for Direct Avalara Integration. If you have enabled the Multiple Currencies feature, the currency at the billing document level, including invoices, credit memos, and debit memos, is used for this mapping.
Avalara Object | Avalara Field | Avalara Nested Field | Zuora Component | Zuora Field |
---|---|---|---|---|
TaxRequest |
DocCode |
Invoice |
ID or InvoiceNumber. See this article for information on how the system determines which field to use. |
|
DocDate | InvoiceDate | |||
CurrencyCode |
Billing documents, including invoices, credit memos, and debit memos |
Currency | ||
CustomerCode | Account | ID | ||
Commit |
Constant |
TRUE | ||
DocType | SalesInvoice | |||
DetailLevel | Tax | |||
Addresses |
AddressCode |
Contact |
Id | |
Country | Country | |||
City | City | |||
Region | TaxRegion | |||
PostalCode | PostalCode | |||
Line1 | Address1 | |||
Line2 | Address2 | |||
Lines |
DestinationCode | Contact | Id | |
OriginCode | Constant | TaxOriginalAddressCode | ||
No |
InvoiceItem |
Id | ||
ItemCode | TaxCode | |||
Description | SkuName | |||
Qty | Quantity. If the invoice item is a discount invoice item, the quantity is from the parent invoice item. | |||
Amount | ChargeAmount. If tax mode is inclusive, it is chargeAmount + taxAmount. | |||
TaxIncluded | TaxMode. Validate if the TaxMode is TaxInclusive or not. | |||
ExemptionNo |
Account.TaxExemption |
TaxExemptCertificateID | ||
CustomerUsageType | TaxExemptEntityUseCode | |||
BusinessIdentificationNo | VATId | |||
TaxCode | TaxCode |
ExternalTaxCode. The Avalara Tax Code configured in Zuora Billing. See this article for more information. |
||
Ref1 | n/a | n/a | ||
Ref2 | n/a | n/a | ||
Line.TaxOverride |
TaxOverrideType | n/a | n/a | |
Reason | n/a | n/a | ||
TaxDate | n/a | n/a | ||
TaxAmount | n/a | n/a |