POST api/offline/customer/UpdateOfflineCustomer

修改线下客户信息

Request Information

URI Parameters

None.

Body Parameters

OfflineCustomerResponse
NameDescriptionTypeAdditional information
Id

客户id

integer

None.

Name

姓名

string

String length: inclusive between 0 and 50

Phone

手机号

string

String length: inclusive between 0 and 50

Province

string

None.

City

string

None.

District

string

None.

AddressDetail

详细地址

string

None.

SaleAddressId

销售地区id

integer

None.

PayType

结算方式

CustomerPayType

None.

IsCertified

是否实名认证

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Phone": "sample string 3",
  "Province": "sample string 4",
  "City": "sample string 5",
  "District": "sample string 6",
  "AddressDetail": "sample string 7",
  "SaleAddressId": 8,
  "PayType": 0,
  "IsCertified": true
}

application/xml, text/xml

Sample:
<OfflineCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModel.Response.Customer">
  <AddressDetail>sample string 7</AddressDetail>
  <City>sample string 5</City>
  <District>sample string 6</District>
  <Id>1</Id>
  <IsCertified>true</IsCertified>
  <Name>sample string 2</Name>
  <PayType>Direct</PayType>
  <Phone>sample string 3</Phone>
  <Province>sample string 4</Province>
  <SaleAddressId>8</SaleAddressId>
</OfflineCustomerResponse>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfAddOifflineCustomerResponse
NameDescriptionTypeAdditional information
data

AddOifflineCustomerResponse

None.

errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "UserId": 1,
    "Name": "sample string 2",
    "Phone": "sample string 3",
    "IsCertified": true,
    "CustomerId": 5
  },
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseOfAddOifflineCustomerResponseUJ8Augit 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>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response">
    <d2p1:CustomerId>5</d2p1:CustomerId>
    <d2p1:IsCertified>true</d2p1:IsCertified>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:Phone>sample string 3</d2p1:Phone>
    <d2p1:UserId>1</d2p1:UserId>
  </data>
</ResponseOfAddOifflineCustomerResponseUJ8Augit>