Table of Contents

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

EntityId string

Entity doing the buying or selling (PVC, DXT-CA, ...).

Direction TaxDirection

Receivable (sales tax) or payable (use tax).

CounterpartyCode string

Client or vendor code.

JobSite AddressDto

Where the work happens; this decides the tax jurisdictions.

Lines IReadOnlyList<TaxLineRequest>

1 to 1000 lines.

Date DateOnly?

Tax date; defaults to today (business time zone).

CurrencyCode string

ISO 4217 document currency; defaults to the entity's base currency.

ShipFrom AddressDto

Where materials ship from, when relevant to sourcing rules.

ExemptionNumber string

Exemption certificate number to apply.

EntityUseCode string

Avalara entity use code for an exempt buyer.

WorkOrderNumber string

Work order reference, passed through.

PurchaseOrderNumber string

PO reference, passed through.

Properties

CounterpartyCode

Client or vendor code.

public string CounterpartyCode { get; init; }

Property Value

string

CurrencyCode

ISO 4217 document currency; defaults to the entity's base currency.

public string? CurrencyCode { get; init; }

Property Value

string

Date

Tax date; defaults to today (business time zone).

public DateOnly? Date { get; init; }

Property Value

DateOnly?

Direction

Receivable (sales tax) or payable (use tax).

public TaxDirection Direction { get; init; }

Property Value

TaxDirection

EntityId

Entity doing the buying or selling (PVC, DXT-CA, ...).

public string EntityId { get; init; }

Property Value

string

EntityUseCode

Avalara entity use code for an exempt buyer.

public string? EntityUseCode { get; init; }

Property Value

string

ExemptionNumber

Exemption certificate number to apply.

public string? ExemptionNumber { get; init; }

Property Value

string

JobSite

Where the work happens; this decides the tax jurisdictions.

public AddressDto JobSite { get; init; }

Property Value

AddressDto

Lines

1 to 1000 lines.

public IReadOnlyList<TaxLineRequest> Lines { get; init; }

Property Value

IReadOnlyList<TaxLineRequest>

PurchaseOrderNumber

PO reference, passed through.

public string? PurchaseOrderNumber { get; init; }

Property Value

string

ShipFrom

Where materials ship from, when relevant to sourcing rules.

public AddressDto? ShipFrom { get; init; }

Property Value

AddressDto

WorkOrderNumber

Work order reference, passed through.

public string? WorkOrderNumber { get; init; }

Property Value

string