POST api/Address/UpdateAddress

Add Customer Billing and Shipping Address

Request Information

URI Parameters

None.

Body Parameters

AddressUpdateBindingModel
NameDescriptionTypeAdditional information
AddressId

integer

Required

AddressTitle

string

Required

String length: inclusive between 5 and 100

Address1

string

Required

String length: inclusive between 5 and 250

Address2

string

Required

LocationId

integer

Required

AddressType

AddressType

Required

IsDefault

boolean

None.

ContactNumber

string

Required

Data type: PhoneNumber

Matching regular expression pattern: ^[0-9+-]+$

String length: inclusive between 7 and 7

DeliveryLocationId

integer

None.

ErpCustomerId

string

None.

TaxGroup

string

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "AddressId": 1,
  "AddressTitle": "sample string 2",
  "Address1": "sample string 3",
  "Address2": "sample string 4",
  "LocationId": 1,
  "AddressType": 0,
  "IsDefault": true,
  "ContactNumber": "sample string 5",
  "DeliveryLocationId": 1,
  "ErpCustomerId": "sample string 6",
  "TaxGroup": "sample string 7",
  "Longitude": 1.0,
  "Latitude": 1.0
}

application/xml, text/xml

Sample:
<AddressUpdateBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.BindingModels.Address">
  <Address1>sample string 3</Address1>
  <Address2>sample string 4</Address2>
  <AddressTitle>sample string 2</AddressTitle>
  <AddressType>BillingAddress</AddressType>
  <ContactNumber>sample string 5</ContactNumber>
  <DeliveryLocationId>1</DeliveryLocationId>
  <ErpCustomerId>sample string 6</ErpCustomerId>
  <IsDefault>true</IsDefault>
  <Latitude>1</Latitude>
  <LocationId>1</LocationId>
  <Longitude>1</Longitude>
  <TaxGroup>sample string 7</TaxGroup>
  <AddressId>1</AddressId>
</AddressUpdateBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.