POST api/offline/customer/GetCustomerList

获取客户列表

Request Information

URI Parameters

None.

Body Parameters

ApiPageOfString
NameDescriptionTypeAdditional information
data

string

None.

PageIndex

页面起始项的索引,如{PageIndex=0,PageSize=10}:取0~9项(前十项);{PageIndex=10,PageSize=10}:取10~19项

integer

None.

PageSize

获取数量

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "data": "sample string 1",
  "PageIndex": 2,
  "PageSize": 3
}

application/xml, text/xml

Sample:
<ApiPageOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Request">
  <PageIndex>2</PageIndex>
  <PageSize>3</PageSize>
  <data>sample string 1</data>
</ApiPageOfstring>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfListOfCustomerListResponse
NameDescriptionTypeAdditional information
data

Collection of CustomerListResponse

None.

errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Phone": "sample string 3",
      "CustomerType": 0,
      "ShopId": 1,
      "OwedAmount": 4.0
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Phone": "sample string 3",
      "CustomerType": 0,
      "ShopId": 1,
      "OwedAmount": 4.0
    }
  ],
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseOfArrayOfCustomerListResponseUJ8Augit 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:CustomerListResponse>
      <d2p1:CustomerType>Online</d2p1:CustomerType>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:OwedAmount>4</d2p1:OwedAmount>
      <d2p1:Phone>sample string 3</d2p1:Phone>
      <d2p1:ShopId>1</d2p1:ShopId>
    </d2p1:CustomerListResponse>
    <d2p1:CustomerListResponse>
      <d2p1:CustomerType>Online</d2p1:CustomerType>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:OwedAmount>4</d2p1:OwedAmount>
      <d2p1:Phone>sample string 3</d2p1:Phone>
      <d2p1:ShopId>1</d2p1:ShopId>
    </d2p1:CustomerListResponse>
  </data>
</ResponseOfArrayOfCustomerListResponseUJ8Augit>