Calculate tax for a document

Calculate tax information for a specific document. For more information on tax calculation please see the model below.

Body Params
string
required
length ≥ 1

Billing group ident to control billing group specific configurations. Must not be blank.

customer
object
required

Customer details.

date-time | null

The date of the document. Mandatory for Avalara if not a forecast.

boolean
Defaults to false

Tax calculation forecast.

items
array of objects
required
length ≥ 1

List of line items of the document. Must not be empty. Must not be empty.

items*
extras
array of objects
Defaults to []
extras
string | null

Optional identifier of the item. Must not be blank.

operatingSite
object | null

Operating site.

performanceLocation
object
required

Location details.

productInformation
object
required

Product information.

date-time
required

Datetime of taxation. Must not be null.

taxDetail
object | null
taxExemption
object | null

Tax exemption.

string | null

Tax information source.

taxLocation
object
required

Location details.

properties
array of objects | null
Defaults to []

Document properties.

properties
string | null

Reference document number for credit notes.

string | null

If forecast leave null. If not forecast mandatory.

string | null

Type of the document. Must not be null. Must be one of:

INVOICE
CREDIT_MEMO
ORDER
DEPOSIT_INVOICE
DEPOSIT_INVOICE_CANCELLATION
CREDIT_MEMO_GOODWILL
CREDIT_MEMO_WARRANTY
SELF_BILLING_INVOICE
SELF_BILLING_INVOICE_CORRECTION
UNKNOWN
vatIdValidationResult
object | null

Result of the VAT ID validation for this customer. If it is used in a request, it overwrites any VAT ID validation.

Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Choose an example:
application/json