POST api/CustomerDemand/Import
Request Information
URI Parameters
None.
Body Parameters
Collection of ImportCustomerDemandBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerName | string |
None. |
|
| CustomerPhone | string |
Required |
|
| CustomerType | string |
None. |
|
| AddressCustomer | string |
None. |
|
| EmailCustomer | string |
None. |
|
| IsBuyName | string |
Required |
|
| ProjectName | string |
None. |
|
| ProvinceName | string |
Required |
|
| DistrictListName | string |
Required |
|
| WardListName | string |
None. |
|
| DirectionListName | string |
None. |
|
| TypeName | string |
Required |
|
| RoadTypeName | string |
None. |
|
| AreaFrom | decimal number |
None. |
|
| AreaTo | decimal number |
None. |
|
| LengthFrom | integer |
None. |
|
| LengthTo | integer |
None. |
|
| FloorFrom | byte |
None. |
|
| FloorTo | byte |
None. |
|
| LivingroomFrom | byte |
None. |
|
| LivingroomTo | byte |
None. |
|
| BedroomFrom | byte |
None. |
|
| BedroomTo | byte |
None. |
|
| ToiletFrom | byte |
None. |
|
| ToiletTo | byte |
None. |
|
| UnitPriceName | string |
None. |
|
| PriceFrom | decimal number |
None. |
|
| PriceTo | decimal number |
None. |
|
| CommissionRate | decimal number |
None. |
|
| CommissionValue | decimal number |
None. |
|
| CommissionTypeName | string |
None. |
|
| ShortDescription | string |
None. |
|
| LevelName | string |
None. |
|
| SourceName | string |
None. |
|
| LegalName | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"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"
},
{
"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:
<ArrayOfImportCustomerDemandBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Customer">
<ImportCustomerDemandBinddingModel>
<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>
</ImportCustomerDemandBinddingModel>
<ImportCustomerDemandBinddingModel>
<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>
</ImportCustomerDemandBinddingModel>
</ArrayOfImportCustomerDemandBinddingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ImportCustomerDemandModel| Name | Description | Type | Additional 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>