Overview
This structure is used to uniquely identify a company. Companies can be identified by CompanyName, CompanyUid or CompanyNumber. When specifying a PwsCompanyRef as an input to a web service, you may specify one, two or all three fields, CompanyName, CompanyUid or CompanyNumber. However, if you do specify more than one field, both values must refer to the same cost center or the cost center reference will not be considered valid. When a PwsCompanyRef is returned in the response to a web service, the CompanyName, CompanyUid and CompanyNumber will be populated, and guaranteed to refer to a single company.
Format
- PwsCompanyRef
- CompanyId: Int32
- CompanyName: String
- CompanyUid: Int64
- CompanyNumber: String
Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
CompanyId | Int32 | On Insert: No On Update: No |
| The company Id is a unique identifier for a company. For internal use only. |
|
CompanyName | String | On Insert: Yes On Update: Yes (if CompanyUid or CompanyNumber is not provided) |
|
|
|
CompanyUid | Int64 | On Insert: No On Update: Yes (if CompanyName or CompanyNumber is not provided) |
|
|
|
CompanyNumber | String | On Insert: No On Update: Yes (if CompanyName or CompanyUid is not provided) |
|
|
|