Class TaxEstimateRequest
- Namespace
- Integrations.Contracts.Tax
- Assembly
- Integrations.Contracts.dll
Real-time estimate (e.g. before PO/NTE approval). Nothing is recorded in the tax provider.
public sealed record TaxEstimateRequest : IEquatable<TaxEstimateRequest>
- Inheritance
-
TaxEstimateRequest
- Implements
- Inherited Members
Constructors
TaxEstimateRequest(string, TaxDirection, string, AddressDto, IReadOnlyList<TaxLineRequest>, DateOnly?, string?, AddressDto?, string?, string?, string?, string?)
Real-time estimate (e.g. before PO/NTE approval). Nothing is recorded in the tax provider.
public TaxEstimateRequest(string EntityId, TaxDirection Direction, string CounterpartyCode, AddressDto JobSite, IReadOnlyList<TaxLineRequest> Lines, DateOnly? Date = null, string? CurrencyCode = null, AddressDto? ShipFrom = null, string? ExemptionNumber = null, string? EntityUseCode = null, string? WorkOrderNumber = null, string? PurchaseOrderNumber = null)
Parameters
EntityIdstringEntity doing the buying or selling (PVC, DXT-CA, ...).
DirectionTaxDirectionReceivable (sales tax) or payable (use tax).
CounterpartyCodestringClient or vendor code.
JobSiteAddressDtoWhere the work happens; this decides the tax jurisdictions.
LinesIReadOnlyList<TaxLineRequest>1 to 1000 lines.
DateDateOnly?Tax date; defaults to today (business time zone).
CurrencyCodestringISO 4217 document currency; defaults to the entity's base currency.
ShipFromAddressDtoWhere materials ship from, when relevant to sourcing rules.
ExemptionNumberstringExemption certificate number to apply.
EntityUseCodestringAvalara entity use code for an exempt buyer.
WorkOrderNumberstringWork order reference, passed through.
PurchaseOrderNumberstringPO reference, passed through.
Properties
CounterpartyCode
Client or vendor code.
public string CounterpartyCode { get; init; }
Property Value
CurrencyCode
ISO 4217 document currency; defaults to the entity's base currency.
public string? CurrencyCode { get; init; }
Property Value
Date
Tax date; defaults to today (business time zone).
public DateOnly? Date { get; init; }
Property Value
Direction
Receivable (sales tax) or payable (use tax).
public TaxDirection Direction { get; init; }
Property Value
EntityId
Entity doing the buying or selling (PVC, DXT-CA, ...).
public string EntityId { get; init; }
Property Value
EntityUseCode
Avalara entity use code for an exempt buyer.
public string? EntityUseCode { get; init; }
Property Value
ExemptionNumber
Exemption certificate number to apply.
public string? ExemptionNumber { get; init; }
Property Value
JobSite
Where the work happens; this decides the tax jurisdictions.
public AddressDto JobSite { get; init; }
Property Value
Lines
1 to 1000 lines.
public IReadOnlyList<TaxLineRequest> Lines { get; init; }
Property Value
PurchaseOrderNumber
PO reference, passed through.
public string? PurchaseOrderNumber { get; init; }
Property Value
ShipFrom
Where materials ship from, when relevant to sourcing rules.
public AddressDto? ShipFrom { get; init; }
Property Value
WorkOrderNumber
Work order reference, passed through.
public string? WorkOrderNumber { get; init; }