Skip to content

CustomerAddress_Insert#


Description#

This function inserts an address into an existing customer.

Request Parameters#

Parameter
Type Description
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
customer_id Number The id number of the customer
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_Insert",
    "Address1": "2 Main St.",
    "Address2": "",
    "City": "Long Beach",
    "Company": "Bad",
    "Country": "US",
    "Customer_ID": 12,
    "Description": "Sleeping Dog",
    "Email": "noreply@miva.com",
    "Fax": "",
    "FirstName": "Sleep",
    "LastName": "Dogg",
    "Phone": "1234567890",
    "Residential": false,
    "State": "CA",
    "Zip": "92000"
}

Example Response#

{
    "success": 1
}