Calculate tax with tax amount overridden
Mapping details
The following mapping table shows how Zuora's data fields are used in Avalara to calculate tax for credit memos and the tax amount calculated by Avalara is overridden.
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
.
Avalara Object | Avalara Object | Avalara 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 |
Account |
Currency | ||
CustomerCode | 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 | Constant | TaxAmount | |
Reason | Constant | Credit | ||
TaxDate | CreditMemoItem | TaxDate | ||
TaxAmount | CreditMemoItem | TaxAmount |