POST api/customer/editaddress

编辑/新增地址,地址id为0时为新增。

Request Information

URI Parameters

None.

Body Parameters

CustomerAddressResponseModel
NameDescriptionTypeAdditional information
Id

id

integer

None.

RealName

收货人姓名

string

None.

ContactInfo

联系方式:如手机号

string

None.

IsDefault

是否是默认地址

boolean

None.

Province

string

String length: inclusive between 0 and 20

City

string

String length: inclusive between 0 and 20

District

string

String length: inclusive between 0 and 20

AddressDetail

详细地址

string

String length: inclusive between 0 and 200

SaleAddressId

销售地区id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RealName": "sample string 2",
  "ContactInfo": "sample string 3",
  "IsDefault": true,
  "Province": "sample string 5",
  "City": "sample string 6",
  "District": "sample string 7",
  "AddressDetail": "sample string 8",
  "SaleAddressId": 9
}

application/xml, text/xml

Sample:
<CustomerAddressResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModel.Response.Customer">
  <AddressDetail>sample string 8</AddressDetail>
  <City>sample string 6</City>
  <ContactInfo>sample string 3</ContactInfo>
  <District>sample string 7</District>
  <Id>1</Id>
  <IsDefault>true</IsDefault>
  <Province>sample string 5</Province>
  <RealName>sample string 2</RealName>
  <SaleAddressId>9</SaleAddressId>
</CustomerAddressResponseModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseBase
NameDescriptionTypeAdditional information
errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
  <errcode>sample string 1</errcode>
  <errmsg>sample string 2</errmsg>
</ResponseBase>