POST api/CustomerAddress/Update

Updates Customer Address.This API can handle single and multiple customer address data. This API can be used to update the customer address with out updating the customer.

Request Information

URI Parameters

None.

Body Parameters

Array of Customer Address.

Collection of CustomerAddress
NameDescriptionTypeAdditional information
AlternateId

CRM ID is a unique ID for each customer,this id will be referred throughout the entire process. Required : Y

string

Required

Max length: 50

CustomerCode

FocusPoint Customer Code : AutoGeneratedID. Required : N

string

None.

Address1

Street1. Required : Y

string

None.

Address2

Street2. Required : N

string

Max length: 100

City

City. Required : Y

string

None.

State

State. Sample : OH, FL, etc., Required : Y

string

None.

Country

Country. If not specified by default the country will be United States. Required : N

string

Max length: 50

PostalZipCode

PostalZipCode. Required : Y

string

None.

ContactNumber

PhoneNumber. Required : N

string

Max length: 100

Email

ContactMail. Required : N

string

Matching regular expression pattern: ^[a-zA-Z0-9_\.-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$

Max length: 100

ContactPerson

ContactPerson: If a customer is of type ORGANIZATION,need to specify the ContactPerson of the organization. Required : N

string

Max length: 50

Request Formats

application/json, text/json

Sample:
[
  {
    "AlternateId": "sample string 1",
    "CustomerCode": "sample string 2",
    "Address1": "sample string 3",
    "Address2": "sample string 4",
    "City": "sample string 5",
    "State": "sample string 6",
    "Country": "sample string 7",
    "PostalZipCode": "sample string 8",
    "ContactNumber": "sample string 9",
    "Email": "sample string 10",
    "ContactPerson": "sample string 11"
  },
  {
    "AlternateId": "sample string 1",
    "CustomerCode": "sample string 2",
    "Address1": "sample string 3",
    "Address2": "sample string 4",
    "City": "sample string 5",
    "State": "sample string 6",
    "Country": "sample string 7",
    "PostalZipCode": "sample string 8",
    "ContactNumber": "sample string 9",
    "Email": "sample string 10",
    "ContactPerson": "sample string 11"
  }
]

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"