POST api/V2/EditCustomerAddress

Request Information

URI Parameters

None.

Body Parameters

AddressVM
NameDescriptionTypeAdditional information
Id

integer

None.

CustomerId

integer

None.

AreaId

integer

None.

AreaName

string

None.

CityId

integer

None.

CityName

string

None.

Apartment

string

None.

Floor

string

None.

Building

string

None.

Street

string

None.

Landmark

string

None.

latitude

string

None.

longitude

string

None.

lang

string

None.

EnableToDelete

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CustomerId": 2,
  "AreaId": 3,
  "AreaName": "sample string 4",
  "CityId": 5,
  "CityName": "sample string 6",
  "Apartment": "sample string 7",
  "Floor": "sample string 8",
  "Building": "sample string 9",
  "Street": "sample string 10",
  "Landmark": "sample string 11",
  "latitude": "sample string 12",
  "longitude": "sample string 13",
  "lang": "sample string 14",
  "EnableToDelete": true
}

multipart/form-data

Sample:
{"Id":1,"CustomerId":2,"AreaId":3,"AreaName":"sample string 4","CityId":5,"CityName":"sample string 6","Apartment":"sample string 7","Floor":"sample string 8","Building":"sample string 9","Street":"sample string 10","Landmark":"sample string 11","latitude":"sample string 12","longitude":"sample string 13","lang":"sample string 14","EnableToDelete":true}

application/xml, text/xml

Sample:
<AddressVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.ViewModel">
  <Apartment>sample string 7</Apartment>
  <AreaId>3</AreaId>
  <AreaName>sample string 4</AreaName>
  <Building>sample string 9</Building>
  <CityId>5</CityId>
  <CityName>sample string 6</CityName>
  <CustomerId>2</CustomerId>
  <EnableToDelete>true</EnableToDelete>
  <Floor>sample string 8</Floor>
  <Id>1</Id>
  <Landmark>sample string 11</Landmark>
  <Street>sample string 10</Street>
  <lang>sample string 14</lang>
  <latitude>sample string 12</latitude>
  <longitude>sample string 13</longitude>
</AddressVM>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddressVM'.

Response Information

Resource Description

GeneralResponse
NameDescriptionTypeAdditional information
status

string

None.

message

string

None.

CustomerID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "message": "sample string 2",
  "CustomerID": 3
}

multipart/form-data

Sample:
{"status":"sample string 1","message":"sample string 2","CustomerID":3}

application/xml, text/xml

Sample:
<GeneralResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.ViewModel">
  <CustomerID>3</CustomerID>
  <message>sample string 2</message>
  <status>sample string 1</status>
</GeneralResponse>