Customer_Update
#
Description#
This function allows you to update an existing customer record.
Request Body Parameters#
Parameter |
Type | Description |
---|---|---|
customer_id edit_customer customer_login |
Number String String |
The customer id The customer login The customer login |
Customer_PasswordEmail |
String | Forgot Password Email. This is also used as the email address to log into the account. |
Customer_Password |
String | Customer Password. This password will get encrypted when the record is created. |
Customer_ShipResidential |
Boolean | Boolean flag used to determine if commercial or residential rates are returned. |
Customer_ShipFirstName |
String | Shipping First Name to assign to a customer. |
Customer_ShipLastName |
String | Shipping Last Name to assign to a customer. |
Customer_ShipEmail |
String | Shipping Email address to assign to a customer. |
Customer_ShipCompany |
String | Shipping Company name to assign to a customer. |
Customer_ShipPhone |
String | Shipping Phone Number to assign to a customer. |
Customer_ShipFax |
String | Shipping Fax Number to assign to a customer. |
Customer_ShipAddress1 |
String | Shipping Address 1 to assign to a customer. |
Customer_ShipAddress2 |
String | Shipping Address 2 to assign to a customer. |
Customer_ShipCity |
String | Shipping City to assign to a customer. |
Customer_ShipState |
String | Shipping State to assign to a customer. 2 digit state code. |
Customer_ShipZip |
String | Shipping Zip Code to assign to a customer. |
Customer_ShipCountry |
String | Shipping Country to assign to a customer. 2 digit country code. |
Customer_BillFirstName |
String | Billing First Name to assign to a customer. |
Customer_BillLastName |
String | Billing Last Name to assign to a customer. |
Customer_BillEmail |
String | Billing Email Address to assign to a customer. |
Customer_BillCompany |
String | Billing Company to assign to a customer. |
Customer_BillPhone |
String | Billing Phone Number to assign to a customer. |
Customer_BillFax |
String | Billing Fax Number to assign to a customer. |
Customer_BillAddress1 |
String | Billing Address 1 to assign to a customer. |
Customer_BillAddress2 |
String | Billing Address 2 to assign to a customer. |
Customer_BillCity |
String | Billing City to assign to a customer. |
Customer_BillState |
String | Billing State to assign to a customer. 2 digit state code. |
Customer_BillZip |
String | Billing Zip Code to assign to a customer. |
Customer_BillCountry |
String | Billing Country to assign to a customer. 2 digit country code. |
Customer_Tax_Exempt |
Boolean | Flag to determine if customer is tax exempt. |
Customer_BusinessAccount |
Number | ID of the business account to assign the customer to. |
CustomField_Values |
Object | Object containing custom field modules. |
customfield |
Object | Object containing custom field name value pairs. |
Response Parameters#
Parameter |
Type | Description |
---|---|---|
success |
Boolean | Value of 1 or 0 if the update was successful. |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "Customer_Update",
"Customer_Login": "test12345",
"Customer_PasswordEmail": "test@miva.com",
"Customer_Password": "miva@123",
"Customer_ShipResidential": 1,
"Customer_ShipFirstName": "Brennan",
"Customer_ShipLastName": "Heyde",
"Customer_ShipEmail": "test@miva.com",
"Customer_ShipCompany": "Miva, Inc",
"Customer_ShipPhone": "555-555-5555",
"Customer_ShipFax": "555-555-5555",
"Customer_ShipAddress1": "123 abc",
"Customer_ShipAddress2": "apt 123",
"Customer_ShipCity": "San Diego",
"Customer_ShipState": "CA",
"Customer_ShipZip": "92127",
"Customer_ShipCountry": "US",
"Customer_BillFirstName": "Brennan",
"Customer_BillLastName": "Heyde",
"Customer_BillEmail": "test@miva.com",
"Customer_BillCompany": "Miva, Inc",
"Customer_BillPhone": "555-555-5555",
"Customer_BillFax": "555-555-5555",
"Customer_BillAddress1": "123 abc",
"Customer_BillAddress2": "apt 123",
"Customer_BillCity": "San Diego",
"Customer_BillState": "CA",
"Customer_BillZip": "92127",
"Customer_BillCountry": "US",
"Customer_Tax_Exempt": 1,
"Customer_BusinessAccount": "",
"CustomField_Values": {
"customfields": {
"sales_rep": "John Smith"
}
}
}
Example Response#
{
"success": 1
}
Error Responses#
Error Code | Error Message | Error Description |
---|---|---|
#Error# | Unable to load customer: One of Edit_Customer, Customer_ID or Customer_Login must be specified | Missing one of the 3 required customer identifiers. |