Method Name: UpdateAccount()
Parameters:
Name |
Type |
Required |
Description |
id | guid |
Yes |
This customer id value is provided after successfully creating a new account or by finding an account from an email address FindAccount() |
OrgName |
string(100) |
No |
|
FirstName |
string(50) |
No |
|
LastName |
string(50) |
No |
|
Phone |
string(20) |
No |
|
Email |
string(100) |
No |
|
PreferredContactMethod |
string(1) |
No |
P=Phone or E=Email |
Address1 |
string(50) |
No |
|
Address2 |
string(50) |
No |
|
Address3 |
string(50) |
No |
|
City |
string(50) |
No |
|
State |
string(2) |
No |
|
PostalCode |
string(10) |
No |
|
Country |
string(20) |
No |
URL:
Success Status Code: 200 (Success)
Success response: JSON
{ "id": "02dfccda-bf32-4d9f-81eb-af4cdd949360", "Login": "123@aol.com", "OrgName": "Red Rook, Inc", "FirstName": "James", "LastName": "Dean", "Email": "123@aol.com", "Phone": "770-792-2212", "PreferredContactMethod": "E", "Address1": "1955 Vaughn Road", "Address2": "Suite 108", "Address3": "", "City": "Kennesaw", "State": "GA", "PostalCode": "30144", "Country": "USA" }
Error Status Code: 400 (Bad Request)
Error response: JSON
{
"Error": "Customer record could not be identified."
}
* Error processing for optional values is only considered when those parameters are passed.
{
"Error": "First name cannot be empty."
}
{
"Error": "Last name cannot be empty."
}
{
"Error": "Organization name cannot be empty."
}
{
"Error": "The Email address requested is invalid."
}
{
"Error": "The Email address requested has already been registered."
}
{
"Error": "An invalid Querystring value was requested for PreferredContactMethod. Valid values are (P) Phone or (E) Email."
}
{
"Error": "Address1 cannot be empty."
}
{
"Error": "Address2 was requested to be updated, but Address1 was not requested. Address1 is required when requesting Address2."
}
{
"Error": "Address3 was requested to be updated, but Address1 was not requested. Address1 is required when requesting Address3."
}
{
"Error": "City cannot be empty."
}
{
"Error": "State cannot be empty."
}
{
"Error": "PostalCode cannot be empty."
}
{
"Error": "Country cannot be empty."
}