Skip to content

CustomerAddress_Update#


Description#

This function updates an address for an existing customer.

Request Parameters#

Parameter
Type Description
customer_id
edit_customer
customer_login
Number
String
String
The customer id
The customer login
The customer login
address1 Number The first address field
address2 Number The second address field
city String The city for the address
company String The company name for the address
country String The country for the address
customeraddress_id Number The address id number of the customer to be updated
description String The description for the address
email String The email for the address
fax String The fax number for the address
firstname String The first name for the address
lastname String The last name for the address
phone String The phone number for the address
residential Boolean Boolean value indicating if the address is residential
state String The state for the address
zip String The zip code for the address

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the API request was successful

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "CustomerAddress_Update",
    "Customer_ID": 1,
    "Address1": "5060 Santa Fe Street",
    "Address2": "",
    "City": "San Diego",
    "Company": "MivaCorp",
    "Country": "US",
    "CustomerAddress_ID": 1,
    "Customer_ID": 1,
    "Description": "5060 Santa Fe St",
    "Email": "noreply@miva.com",
    "Fax": "555-555-1212",
    "FirstName": "Maynard",
    "LastName": "Batalla",
    "Phone": "555-555-5555",
    "Residential": true,
    "State": "CA",
    "Zip": "92109"
}

Example Response#

{
    "success": 1
}