OpsUpdateClient
Request
The service request contains:
Name |
Data Type |
Required? |
Default Value |
Discussion |
---|---|---|---|---|
UpdateRateInformation |
boolean |
no |
false |
If true, then update rate information. |
Clients |
list of ClientDescriptors |
yes |
 |
See description of Client below |
ClientDescriptor
Name |
Data Type |
Required? |
Default Value |
Discussion |
|
---|---|---|---|---|---|
ClientNumber |
string(20) |
yes |
 |
 |
|
Name |
string(50) |
yes |
 |
Client name |
|
ParentClientNumber |
string(20) |
no |
 |
 |
|
StandardRateCardName |
string(50) |
no |
 |
 |
|
StandardDiscountPercent |
float |
no |
 |
10.0 means 10% |
|
InactiveFlag |
boolean |
no |
false |
 |
|
InheritAddressFlag |
boolean |
no |
On insert, InheritAddressFlag gets set with provided value, and defaults to false. Gets forced to false if client is top-level. On insert, address fields are populated from input fields only if InheritAddressFlag is false. On update, InheritAddressFlag in the database gets left alone if the value of InheritAddressFlag supplied here is null, and forced to false if client is top-level, else the value supplied here is used. On update, address fields are used only if InheritAddressFlag is false. Address fields get NULLed out if InheritAddressFlag is true, and are left alone otherwise. |
 |
 |
AddressAttention |
string(50) |
no |
 |
 |
|
AddressCompanyName |
string(50) |
no |
 |
 |
|
AddressLine1 |
string(50) |
no |
 |
 |
|
AddressLine2 |
string(50) |
no |
 |
 |
|
AddressCity |
string(20) |
no |
 |
 |
|
AddressStateOrProvince |
string(20) |
no |
 |
 |
|
AddressZipOrPostalCode |
string(20) |
no |
 |
 |
|
AddressCountry |
string(20) |
no |
 |
 |
|
StandardBillingAdjustedDiscountPercent |
double |
no |
zero |
 |
If a ClientNumber matches that of a client already in Projector, then the new client information replaces the old information.
Response
The following data is returned:
Name |
Data Type |
Discussion |
---|---|---|
ClientStatusList |
list of ClientStatus items |
see below |
ClientErrors |
list of ClientError items |
see below |
Each ClientStatus item contains:
Name |
Data Type |
Discussion |
---|---|---|
LineItemStatus |
string |
"ItemInserted" = Item did not previously exist. |
OpsError |
OpsWebError |
See Responses |
Each ClientError item contains:
Name |
Data Type |
Discussion |
---|---|---|
Index |
int |
Index of the record (position in ClientList) that failed. |
OpsError |
OpsWebError |
See Responses |
Changelog
4.4
Parameter |
Notes |
---|---|
StandardBillingAdjustedDiscountPercent |
Added as a request parameter for ClientDescriptor |