POST api/Marketing?api={api}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| api | string |
Required |
Body Parameters
MarketingModelAdd| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
|
| ordering |
STT |
integer |
None. |
| foreigner |
Người nước ngoài |
boolean |
None. |
| yearmonthday |
Ngày tháng yyyyMMdd |
integer |
None. |
| accpeptday |
Áp dụng toàn bộ ngày trong tuần true/false |
boolean |
None. |
| t2 |
áp dụng thứ 2 true/false |
boolean |
None. |
| t3 |
áp dụng thứ 3 true/false |
boolean |
None. |
| t4 |
áp dụng thứ 4 true/false |
boolean |
None. |
| t5 |
áp dụng thứ 5 true/false |
boolean |
None. |
| t6 |
áp dụng thứ 6 true/false |
boolean |
None. |
| t7 |
áp dụng thứ 7 true/false |
boolean |
None. |
| cn |
áp dụng chủ nhật true/false |
boolean |
None. |
| idkey |
id key |
string |
None. |
| idpartner |
Địa chỉ người liên hệ |
string |
None. |
| idbrandpartner |
id chi nhánh |
string |
None. |
| code |
Mã chiến dịch |
string |
None. |
| name |
Tên chiến dịch |
string |
None. |
| datemarketing |
Ngày tạo chiên dịch yyyyMMddHHmm |
integer |
None. |
| fromdate |
Có hiệu lực từ yyyyMMddHHmm |
integer |
None. |
| todate |
Đến ngày yyyyMMddHHmm |
integer |
None. |
| acceptall |
Áp dụng cả chiến dịch |
boolean |
None. |
| discount |
Giảm giá |
decimal number |
None. |
| totaldiscount |
Tổng Giảm giá |
decimal number |
None. |
| totalproduct |
Tổng số tia sản phẩm bán dự kiến |
decimal number |
None. |
| totalservice |
Tổng số tien dịch vụ bán dự kiến |
decimal number |
None. |
| totalproductreal |
Tổng số tia sản phẩm bán thực tế |
decimal number |
None. |
| totalservicereal |
Tổng số tien dịch vụ bán thực tế |
decimal number |
None. |
| total |
Tổng chi phí |
decimal number |
None. |
| totalrevenue |
Tổng doanh thu kỳ vọng |
decimal number |
None. |
| totalreal |
Tổng doanh thu thực tế |
decimal number |
None. |
| qtyproduct |
Tổng số sản phẩm bán dự kiến |
decimal number |
None. |
| qtyservice |
Tổng số dịch vụ bán dự kiến |
decimal number |
None. |
| qtyproductreal |
Tổng số sản phẩm bán thực tế |
decimal number |
None. |
| qtyservicereal |
Tổng số dịch vụ bán thực tế |
decimal number |
None. |
| attfile |
File |
string |
None. |
| videofile |
Video |
string |
None. |
| status |
Trạng thái (0-Mới tạo, 1- Đã chạy,2-Kết thúc) |
integer |
None. |
| idhuman |
Id người phụ trách chính |
string |
None. |
| codehuman |
Mã người phụ trách chính |
string |
None. |
| namehuman |
Tên người phụ trách chính |
string |
None. |
| lsthuman |
Người phối hợp |
Collection of MarketingHumanModelAdd |
None. |
| lstsv |
Danh sách sản phẩm dịch vụ áp dụng |
Collection of MarketingProductModelAdd |
None. |
| lstbrand |
Danh sách chi nhánh áp dụng |
Collection of MarketingBrandModelAdd |
None. |
| typesex |
Có phân biệt giới tính (0- Không phân biệt, 1- Giới tính Nữ, 2- Giới tính Nam) |
integer |
None. |
| acceptage |
Có áp dụng tuổi |
boolean |
None. |
| fromage |
Tuối từ |
integer |
None. |
| toage |
Tuổi đến |
integer |
None. |
| acceptbuy |
Có áp dụng khách đã mua |
boolean |
None. |
| totalbuy |
Tổng tiền đã chi phí |
decimal number |
None. |
| datecreate |
Ngày tạo yyyyMMddHHmmss |
integer |
None. |
| idcreate |
Id người tạo |
string |
None. |
| codecreate |
Mã người tạo |
string |
None. |
| namecreate |
Tên người tạo |
string |
None. |
| dateedit |
Ngày sửa yyyyMMddHHmmss |
integer |
None. |
| idedit |
Id người sửa |
string |
None. |
| codeedit |
Mã người sửa |
string |
None. |
| nameedit |
Tên người sửa |
string |
None. |
Request Formats
application/json, text/json
{
"id": "sample string 1",
"ordering": 1,
"foreigner": true,
"yearmonthday": 1,
"accpeptday": true,
"t2": true,
"t3": true,
"t4": true,
"t5": true,
"t6": true,
"t7": true,
"cn": true,
"idkey": "sample string 2",
"idpartner": "sample string 3",
"idbrandpartner": "sample string 4",
"code": "sample string 5",
"name": "sample string 6",
"datemarketing": 1,
"fromdate": 1,
"todate": 1,
"acceptall": true,
"discount": 1.1,
"totaldiscount": 1.1,
"totalproduct": 1.1,
"totalservice": 1.1,
"totalproductreal": 1.1,
"totalservicereal": 1.1,
"total": 1.1,
"totalrevenue": 1.1,
"totalreal": 1.1,
"qtyproduct": 1.1,
"qtyservice": 1.1,
"qtyproductreal": 1.1,
"qtyservicereal": 1.1,
"attfile": "sample string 7",
"videofile": "sample string 8",
"status": 1,
"idhuman": "sample string 9",
"codehuman": "sample string 10",
"namehuman": "sample string 11",
"lsthuman": [
{
"id": "sample string 1",
"idpartner": "sample string 2",
"idkey": "sample string 3",
"idmarketing": "sample string 4",
"idhuman": "sample string 5",
"codehuman": "sample string 6",
"namehuman": "sample string 7",
"status": 1
},
{
"id": "sample string 1",
"idpartner": "sample string 2",
"idkey": "sample string 3",
"idmarketing": "sample string 4",
"idhuman": "sample string 5",
"codehuman": "sample string 6",
"namehuman": "sample string 7",
"status": 1
}
],
"lstsv": [
{
"id": "sample string 1",
"idpartner": "sample string 2",
"idkey": "sample string 3",
"idmarketing": "sample string 4",
"idproduct": "sample string 5",
"codeproduct": "sample string 6",
"nameproduct": "sample string 7",
"idmodelservice": 1,
"namemodelservice": "sample string 8",
"discount": 1.1
},
{
"id": "sample string 1",
"idpartner": "sample string 2",
"idkey": "sample string 3",
"idmarketing": "sample string 4",
"idproduct": "sample string 5",
"codeproduct": "sample string 6",
"nameproduct": "sample string 7",
"idmodelservice": 1,
"namemodelservice": "sample string 8",
"discount": 1.1
}
],
"lstbrand": [
{
"id": "sample string 1",
"idpartner": "sample string 2",
"idkey": "sample string 3",
"idmarketing": "sample string 4",
"idbrand": "sample string 5",
"codebrand": "sample string 6",
"namebrand": "sample string 7"
},
{
"id": "sample string 1",
"idpartner": "sample string 2",
"idkey": "sample string 3",
"idmarketing": "sample string 4",
"idbrand": "sample string 5",
"codebrand": "sample string 6",
"namebrand": "sample string 7"
}
],
"typesex": 1,
"acceptage": true,
"fromage": 1,
"toage": 1,
"acceptbuy": true,
"totalbuy": 1.1,
"datecreate": 1,
"idcreate": "sample string 12",
"codecreate": "sample string 13",
"namecreate": "sample string 14",
"dateedit": 1,
"idedit": "sample string 15",
"codeedit": "sample string 16",
"nameedit": "sample string 17"
}
application/xml, text/xml
<MarketingModelAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models.Customers">
<acceptage>true</acceptage>
<acceptall>true</acceptall>
<acceptbuy>true</acceptbuy>
<accpeptday>true</accpeptday>
<attfile>sample string 7</attfile>
<cn>true</cn>
<code>sample string 5</code>
<codecreate>sample string 13</codecreate>
<codeedit>sample string 16</codeedit>
<codehuman>sample string 10</codehuman>
<datecreate>1</datecreate>
<dateedit>1</dateedit>
<datemarketing>1</datemarketing>
<discount>1.1</discount>
<foreigner>true</foreigner>
<fromage>1</fromage>
<fromdate>1</fromdate>
<id>sample string 1</id>
<idbrandpartner>sample string 4</idbrandpartner>
<idcreate>sample string 12</idcreate>
<idedit>sample string 15</idedit>
<idhuman>sample string 9</idhuman>
<idkey>sample string 2</idkey>
<idpartner>sample string 3</idpartner>
<lstbrand>
<MarketingBrandModelAdd>
<codebrand>sample string 6</codebrand>
<id>sample string 1</id>
<idbrand>sample string 5</idbrand>
<idkey>sample string 3</idkey>
<idmarketing>sample string 4</idmarketing>
<idpartner>sample string 2</idpartner>
<namebrand>sample string 7</namebrand>
</MarketingBrandModelAdd>
<MarketingBrandModelAdd>
<codebrand>sample string 6</codebrand>
<id>sample string 1</id>
<idbrand>sample string 5</idbrand>
<idkey>sample string 3</idkey>
<idmarketing>sample string 4</idmarketing>
<idpartner>sample string 2</idpartner>
<namebrand>sample string 7</namebrand>
</MarketingBrandModelAdd>
</lstbrand>
<lsthuman>
<MarketingHumanModelAdd>
<codehuman>sample string 6</codehuman>
<id>sample string 1</id>
<idhuman>sample string 5</idhuman>
<idkey>sample string 3</idkey>
<idmarketing>sample string 4</idmarketing>
<idpartner>sample string 2</idpartner>
<namehuman>sample string 7</namehuman>
<status>1</status>
</MarketingHumanModelAdd>
<MarketingHumanModelAdd>
<codehuman>sample string 6</codehuman>
<id>sample string 1</id>
<idhuman>sample string 5</idhuman>
<idkey>sample string 3</idkey>
<idmarketing>sample string 4</idmarketing>
<idpartner>sample string 2</idpartner>
<namehuman>sample string 7</namehuman>
<status>1</status>
</MarketingHumanModelAdd>
</lsthuman>
<lstsv>
<MarketingProductModelAdd>
<codeproduct>sample string 6</codeproduct>
<discount>1.1</discount>
<id>sample string 1</id>
<idkey>sample string 3</idkey>
<idmarketing>sample string 4</idmarketing>
<idmodelservice>1</idmodelservice>
<idpartner>sample string 2</idpartner>
<idproduct>sample string 5</idproduct>
<namemodelservice>sample string 8</namemodelservice>
<nameproduct>sample string 7</nameproduct>
</MarketingProductModelAdd>
<MarketingProductModelAdd>
<codeproduct>sample string 6</codeproduct>
<discount>1.1</discount>
<id>sample string 1</id>
<idkey>sample string 3</idkey>
<idmarketing>sample string 4</idmarketing>
<idmodelservice>1</idmodelservice>
<idpartner>sample string 2</idpartner>
<idproduct>sample string 5</idproduct>
<namemodelservice>sample string 8</namemodelservice>
<nameproduct>sample string 7</nameproduct>
</MarketingProductModelAdd>
</lstsv>
<name>sample string 6</name>
<namecreate>sample string 14</namecreate>
<nameedit>sample string 17</nameedit>
<namehuman>sample string 11</namehuman>
<ordering>1</ordering>
<qtyproduct>1.1</qtyproduct>
<qtyproductreal>1.1</qtyproductreal>
<qtyservice>1.1</qtyservice>
<qtyservicereal>1.1</qtyservicereal>
<status>1</status>
<t2>true</t2>
<t3>true</t3>
<t4>true</t4>
<t5>true</t5>
<t6>true</t6>
<t7>true</t7>
<toage>1</toage>
<todate>1</todate>
<total>1.1</total>
<totalbuy>1.1</totalbuy>
<totaldiscount>1.1</totaldiscount>
<totalproduct>1.1</totalproduct>
<totalproductreal>1.1</totalproductreal>
<totalreal>1.1</totalreal>
<totalrevenue>1.1</totalrevenue>
<totalservice>1.1</totalservice>
<totalservicereal>1.1</totalservicereal>
<typesex>1</typesex>
<videofile>sample string 8</videofile>
<yearmonthday>1</yearmonthday>
</MarketingModelAdd>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
DataInsert| Name | Description | Type | Additional information |
|---|---|---|---|
| status | string |
None. |
|
| message | string |
None. |
|
| id | string |
None. |
|
| code | string |
None. |
|
| code1 | string |
None. |
|
| strprint | string |
None. |
Response Formats
application/json, text/json
{
"status": "sample string 1",
"message": "sample string 2",
"id": "sample string 3",
"code": "sample string 4",
"code1": "sample string 5",
"strprint": "sample string 6"
}
text/javascript, application/javascript, application/json-p
/**/ typeof === 'function' && ({"status":"sample string 1","message":"sample string 2","id":"sample string 3","code":"sample string 4","code1":"sample string 5","strprint":"sample string 6"});
application/xml, text/xml
<DataInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models"> <code>sample string 4</code> <code1>sample string 5</code1> <id>sample string 3</id> <message>sample string 2</message> <status>sample string 1</status> <strprint>sample string 6</strprint> </DataInsert>