/
PwsTaxTypeRef

PwsTaxTypeRef

Overview


This structure represents the unique key fields associated with identifying a tax type. Tax Types can be identified by TaxTypeCode or TaxTypeUid. When specifying a PwsTaxTypeRef as an input to a web service, you may specify one or both the TaxTypeCode and/or TaxTypeUid. However, if you do specify both, they must both refer to the same tax type or the tax type reference will not be considered valid. When a PwsTaxTypeRef is returned in the response to a web service, both the TaxTypeCode and TaxTypeUid will be populated, and guaranteed to refer to a single tax type.

Format


PwsTaxTypeRef
  • PwsTaxTypeRef
    • TaxTypeCode: String (20)
    • TaxTypeId: Int32
    • TaxTypeUid: Int64

Elements


Element

Data Type

Required?

Description

Sample Data

TaxTypeCode

String (20)

One of TaxTypeCode or TaxTypeUid is required

The tax type code is a unique identifier for a tax type.

VAT

TaxTypeId

Int32

No

The tax type Id is a unique identifier for a tax type. For internal use only.

21282

TaxTypeUid

Int64

See TaxTypeCode

A unique and immutable identifier for a tax type.

1152921504606868258


Usage Examples


Example 01
                    <TaxType1Identity>
                        <TaxTypeCode>VAT</TaxTypeCode>
                        <TaxTypeId i:nil="true"/>
                        <TaxTypeUid>1152921504606868258</TaxTypeUid>
                     </TaxType1Identity>

Related content

PwsInvoiceTax
PwsInvoiceTax
More like this
PwsUserTypeRef
PwsUserTypeRef
More like this
PwsExpenseTypeRef
PwsExpenseTypeRef
More like this
PwsResourceTypeRef
PwsResourceTypeRef
More like this
PwsStandardRateTypeRef
PwsStandardRateTypeRef
More like this
PwsContractTypeRef
PwsContractTypeRef
More like this