PwsAccountRef

Overview


This structure is used to uniquely identify a Projector Account / Installation. Accounts / Installations can be identified by AccountCode and/or AccountUid as an input to a web service, you may specify any combination of these fields. However, if you specify multiple fields, they must all refer to the same account or the account reference will not be considered valid. When a PwsAccountRef is returned in the response to a web service, the AccountCode and AccountUid will be populated, and guaranteed to refer to a single account.

Format


PwsCostCenterRef
  • PwsAccountRef
    • AccountCode: String (50)
    • AccountId: Int32
    • AccountUid: Int64


Elements


Element

Data Type

Required?

Description

Sample Data

AccountCodeString (50)One of AccountCode or AccountUid is requiredThe account code is a unique identifier for an account / installation
revcorp-bb

AccountId

Int32

No

The account Id is a unique identifier for an account. For internal use only.

2378

AccountUid

Int64

See AccountCode

A unique and immutable identifier for an account

1152921504606849354


Usage Example(s)


Example 01
            <a:AccountIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:AccountCode>revcorp-bb</b:AccountCode>
               <b:AccountId>2378</b:AccountId>
               <b:AccountUid>1152921504606849354</b:AccountUid>
            </a:AccountIdentity>