You want to know what to include in the required fields of a GetTax call.
- GetTax Call
- GetTaxRequest represents a request to calculate tax for the provided invoice line items.
|CustomerCode||Client application customer reference code||String||Y|
|DocDate||Date of invoice, sales order, purchase order, etc.||Date in the form YYYY-MM-DD||Y|
|CompanyCode||Client application company reference code||String||N if default company is active. Recommended|
|DocCode||Client application identifier describing this tax transaction (i.e. invoice number, sales order number, etc.)||String||N Defaults to a GUID. Best practice requires DocCode to be included.|
|Lines||Collection of invoice lines requiring tax calculation||Line||Y see Lines|
|Addresses||Collection of physical addresses that will be referred to as the destination or origination of 1 or more invoice line entries||Address||Y see Addresses|
- Address represents the destination or origin shipping address of a line item. If longitude and latitude are defined all other fields except AddressCode is ignored.
|AddressCode||Reference code uniquely identifying this address instance||String||Y|
Address line 1 (usually street address)
To use the address of a LOCATION in the Admin Console, enter the location code here and leave all other address fields (other than AddressCode) blank
|String||Y if PostalCode isn't supplied or Latitude and Longitude aren't supplied|
|City||City name||String||Y if PostalCode isn't supplied or Latitude and Longitude aren't supplied|
|Region||State, province, or region name||String||Y if PostalCode isn't supplied or Latitude and Longitude aren't supplied|
|PostalCode||Postal or ZIP code||String||Y if City and Region aren't supplied or Latitude and Longitude aren't supplied|
|Latitude||Geographic latitude. If Latitude is defined, define longitude field||Decimal||Y if Line1 and City and Region aren't supplied or Line1 and PostalCode isn't supplied|
|Longitude||Geographic longitude. If Longitude is defined, define latitude field||Decimal||Y if Line1 and City and Region are not supplied or Line1 and PostalCode is not supplied|
|LineNo||Line item identifier. LineNo uniquely identifies the line item row.||String||Y|
|DestinationCode||Destination (ship-to) address code.DestinationCode references an address from the Addresses collection.||String||Y|
|OriginCode||Origination (ship-from) address code.OriginCode references an address from the Addresses collection.||String||Y|
|ItemCode||Item code (e.g. SKU)||String||N unless you're participating in SST|
|Description||Item description||String||N unless you're participating in SST|
|Qty||Item quantity. This is not a multiplier of line amount. See Amount.||Decimal||Y|
|Amount||Total amount of item line (extended amount, qty * unit price). Multiply before populating this value.||Decimal||Y|
For more information, see our API documentation.