POST api/CustomerDemand/ImportWeb?fileName={fileName}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fileName

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ImportCustomerDemandModel
NameDescriptionTypeAdditional information
Row

integer

None.

Columns

Collection of ColumnImportModel

None.

CustomerDemandModel

ImportCustomerDemandBinddingModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "row": 1,
    "columns": [
      {
        "columnName": "sample string 1",
        "value": "sample string 2",
        "error": 3,
        "errorContent": "sample string 4"
      },
      {
        "columnName": "sample string 1",
        "value": "sample string 2",
        "error": 3,
        "errorContent": "sample string 4"
      }
    ],
    "customerDemandModel": {
      "customerName": "sample string 1",
      "customerPhone": "sample string 2",
      "customerType": "sample string 3",
      "addressCustomer": "sample string 4",
      "emailCustomer": "sample string 5",
      "isBuyName": "sample string 6",
      "projectName": "sample string 7",
      "provinceName": "sample string 8",
      "districtListName": "sample string 9",
      "wardListName": "sample string 10",
      "directionListName": "sample string 11",
      "typeName": "sample string 12",
      "roadTypeName": "sample string 13",
      "areaFrom": 14.0,
      "areaTo": 15.0,
      "lengthFrom": 16,
      "lengthTo": 17,
      "floorFrom": 64,
      "floorTo": 64,
      "livingroomFrom": 64,
      "livingroomTo": 64,
      "bedroomFrom": 64,
      "bedroomTo": 64,
      "toiletFrom": 64,
      "toiletTo": 64,
      "unitPriceName": "sample string 26",
      "priceFrom": 27.0,
      "priceTo": 28.0,
      "commissionRate": 29.0,
      "commissionValue": 30.0,
      "commissionTypeName": "sample string 31",
      "shortDescription": "sample string 32",
      "levelName": "sample string 33",
      "sourceName": "sample string 34",
      "legalName": "sample string 35"
    }
  },
  {
    "row": 1,
    "columns": [
      {
        "columnName": "sample string 1",
        "value": "sample string 2",
        "error": 3,
        "errorContent": "sample string 4"
      },
      {
        "columnName": "sample string 1",
        "value": "sample string 2",
        "error": 3,
        "errorContent": "sample string 4"
      }
    ],
    "customerDemandModel": {
      "customerName": "sample string 1",
      "customerPhone": "sample string 2",
      "customerType": "sample string 3",
      "addressCustomer": "sample string 4",
      "emailCustomer": "sample string 5",
      "isBuyName": "sample string 6",
      "projectName": "sample string 7",
      "provinceName": "sample string 8",
      "districtListName": "sample string 9",
      "wardListName": "sample string 10",
      "directionListName": "sample string 11",
      "typeName": "sample string 12",
      "roadTypeName": "sample string 13",
      "areaFrom": 14.0,
      "areaTo": 15.0,
      "lengthFrom": 16,
      "lengthTo": 17,
      "floorFrom": 64,
      "floorTo": 64,
      "livingroomFrom": 64,
      "livingroomTo": 64,
      "bedroomFrom": 64,
      "bedroomTo": 64,
      "toiletFrom": 64,
      "toiletTo": 64,
      "unitPriceName": "sample string 26",
      "priceFrom": 27.0,
      "priceTo": 28.0,
      "commissionRate": 29.0,
      "commissionValue": 30.0,
      "commissionTypeName": "sample string 31",
      "shortDescription": "sample string 32",
      "levelName": "sample string 33",
      "sourceName": "sample string 34",
      "legalName": "sample string 35"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfImportCustomerDemandModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Customer">
  <ImportCustomerDemandModel>
    <Columns>
      <ColumnImportModel>
        <ColumnName>sample string 1</ColumnName>
        <Error>3</Error>
        <ErrorContent>sample string 4</ErrorContent>
        <Value>sample string 2</Value>
      </ColumnImportModel>
      <ColumnImportModel>
        <ColumnName>sample string 1</ColumnName>
        <Error>3</Error>
        <ErrorContent>sample string 4</ErrorContent>
        <Value>sample string 2</Value>
      </ColumnImportModel>
    </Columns>
    <CustomerDemandModel>
      <AddressCustomer>sample string 4</AddressCustomer>
      <AreaFrom>14</AreaFrom>
      <AreaTo>15</AreaTo>
      <BedroomFrom>64</BedroomFrom>
      <BedroomTo>64</BedroomTo>
      <CommissionRate>29</CommissionRate>
      <CommissionTypeName>sample string 31</CommissionTypeName>
      <CommissionValue>30</CommissionValue>
      <CustomerName>sample string 1</CustomerName>
      <CustomerPhone>sample string 2</CustomerPhone>
      <CustomerType>sample string 3</CustomerType>
      <DirectionListName>sample string 11</DirectionListName>
      <DistrictListName>sample string 9</DistrictListName>
      <EmailCustomer>sample string 5</EmailCustomer>
      <FloorFrom>64</FloorFrom>
      <FloorTo>64</FloorTo>
      <IsBuyName>sample string 6</IsBuyName>
      <LegalName>sample string 35</LegalName>
      <LengthFrom>16</LengthFrom>
      <LengthTo>17</LengthTo>
      <LevelName>sample string 33</LevelName>
      <LivingroomFrom>64</LivingroomFrom>
      <LivingroomTo>64</LivingroomTo>
      <PriceFrom>27</PriceFrom>
      <PriceTo>28</PriceTo>
      <ProjectName>sample string 7</ProjectName>
      <ProvinceName>sample string 8</ProvinceName>
      <RoadTypeName>sample string 13</RoadTypeName>
      <ShortDescription>sample string 32</ShortDescription>
      <SourceName>sample string 34</SourceName>
      <ToiletFrom>64</ToiletFrom>
      <ToiletTo>64</ToiletTo>
      <TypeName>sample string 12</TypeName>
      <UnitPriceName>sample string 26</UnitPriceName>
      <WardListName>sample string 10</WardListName>
    </CustomerDemandModel>
    <Row>1</Row>
  </ImportCustomerDemandModel>
  <ImportCustomerDemandModel>
    <Columns>
      <ColumnImportModel>
        <ColumnName>sample string 1</ColumnName>
        <Error>3</Error>
        <ErrorContent>sample string 4</ErrorContent>
        <Value>sample string 2</Value>
      </ColumnImportModel>
      <ColumnImportModel>
        <ColumnName>sample string 1</ColumnName>
        <Error>3</Error>
        <ErrorContent>sample string 4</ErrorContent>
        <Value>sample string 2</Value>
      </ColumnImportModel>
    </Columns>
    <CustomerDemandModel>
      <AddressCustomer>sample string 4</AddressCustomer>
      <AreaFrom>14</AreaFrom>
      <AreaTo>15</AreaTo>
      <BedroomFrom>64</BedroomFrom>
      <BedroomTo>64</BedroomTo>
      <CommissionRate>29</CommissionRate>
      <CommissionTypeName>sample string 31</CommissionTypeName>
      <CommissionValue>30</CommissionValue>
      <CustomerName>sample string 1</CustomerName>
      <CustomerPhone>sample string 2</CustomerPhone>
      <CustomerType>sample string 3</CustomerType>
      <DirectionListName>sample string 11</DirectionListName>
      <DistrictListName>sample string 9</DistrictListName>
      <EmailCustomer>sample string 5</EmailCustomer>
      <FloorFrom>64</FloorFrom>
      <FloorTo>64</FloorTo>
      <IsBuyName>sample string 6</IsBuyName>
      <LegalName>sample string 35</LegalName>
      <LengthFrom>16</LengthFrom>
      <LengthTo>17</LengthTo>
      <LevelName>sample string 33</LevelName>
      <LivingroomFrom>64</LivingroomFrom>
      <LivingroomTo>64</LivingroomTo>
      <PriceFrom>27</PriceFrom>
      <PriceTo>28</PriceTo>
      <ProjectName>sample string 7</ProjectName>
      <ProvinceName>sample string 8</ProvinceName>
      <RoadTypeName>sample string 13</RoadTypeName>
      <ShortDescription>sample string 32</ShortDescription>
      <SourceName>sample string 34</SourceName>
      <ToiletFrom>64</ToiletFrom>
      <ToiletTo>64</ToiletTo>
      <TypeName>sample string 12</TypeName>
      <UnitPriceName>sample string 26</UnitPriceName>
      <WardListName>sample string 10</WardListName>
    </CustomerDemandModel>
    <Row>1</Row>
  </ImportCustomerDemandModel>
</ArrayOfImportCustomerDemandModel>