Skip to main content

Calculate tax for credit

Zuora

Calculate tax for credit

Mapping details

The following mapping table shows how Zuora's data fields are used in Avalara to calculate tax when you issue a credit.

For example, TaxRequest.DocCode in Avalara is mapped to Invoice.IDin 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

TaxableItemSnapshot

Id
Country DestAddressCountry
City DestAddressCity
Region DestAddressRegion
PostalCode DestAddressPostalCode
Line1 DestAddressLine1
Line2 DestAddressLine2

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 TaxableItemSnapshot TaxMode. Validate if the TaxMode is TaxInclusive or not.
ExemptionNo TaxableItemSnapshot TaxExemptCertificateID
CustomerUsageType TaxableItemSnapshot TaxExemptEntityUseCode
BusinessIdentificationNo TaxableItemSnapshot VatId
TaxCode TaxableItemSnapshot ExternalTaxCode. The Avalara Tax Code configured in Zuora Billing. See this article for more information.
Ref1 TaxableItemSnapshot original invoice id or number
Ref2 TaxableItemSnapshot original invoice item id

Line.TaxOverride

TaxOverrideType Constant TaxDate
Reason Constant Credit
TaxDate TaxableItemSnapshot TaxDate
TaxAmount n/a n/a