POST
http://appapi.sunhouse.com.vn/api/DMS/SaveSHMarAgencyForUser?loginUser={loginUser}
Lưu dữ liệu đại lý
Yêu cầu
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
loginUser | string |
Required |
Body Parameters
SHMarAgency_ViewModelName | Description | Type | Additional information |
---|---|---|---|
cmp_wwn | string |
None. |
|
AgencyName | string |
None. |
|
Address | string |
None. |
|
SHProvinceId | integer |
None. |
|
SHProvinceName | string |
None. |
|
SHDistrictId | integer |
None. |
|
SHDistrictName | string |
None. |
|
WardID | integer |
None. |
|
SHWardName | string |
None. |
|
PhoneNumber | string |
None. |
|
PhoneNumber2 | string |
None. |
|
ContactName | string |
None. |
|
AgencyType | string |
None. |
|
AgencyTypeName | string |
None. |
|
StatusApproval | string |
None. |
|
AgencyRank | integer |
None. |
|
Latitude | string |
None. |
|
Longitude | string |
None. |
|
MonthlyRevenue | decimal number |
None. |
|
DDD_Amount | decimal number |
None. |
|
DGD_Amount | decimal number |
None. |
|
GD_Amount | decimal number |
None. |
|
TBNB_Amount | decimal number |
None. |
|
LN_Amount | decimal number |
None. |
|
DDNB_Amount | decimal number |
None. |
|
facade_scale | decimal number |
None. |
|
business_area | decimal number |
None. |
|
sale_amount | decimal number |
None. |
|
NumEmps | integer |
None. |
|
NumOrders | integer |
None. |
|
agency_classification | string |
None. |
|
SummaryAmount | decimal number |
None. |
|
StartDate | date |
None. |
|
strStartDate | string |
None. |
|
CheckTime | date |
None. |
|
strCheckTime | string |
None. |
|
AuditRound | integer |
None. |
|
ChainCode | string |
None. |
|
Picture1 | string |
None. |
|
Picture2 | string |
None. |
|
Picture3 | string |
None. |
|
CreatedBy | string |
None. |
|
CreatedDate | date |
None. |
|
strCreatedDate | string |
None. |
|
ModifiedBy | string |
None. |
|
ModifiedDate | date |
None. |
|
strModifiedDate | string |
None. |
|
Active | boolean |
None. |
|
Id | string |
None. |
|
SizeCode | string |
None. |
|
SizeCodeName | string |
None. |
|
SHMarAgencyRegId | integer |
None. |
|
IsHaveAttach | boolean |
None. |
|
Approval | boolean |
None. |
|
ApprovalBy | string |
None. |
|
ApprovalNote | string |
None. |
|
CostCenter | string |
None. |
|
ApprovalDate | date |
None. |
|
strApprovalDate | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "cmp_wwn": "sample string 1", "AgencyName": "sample string 2", "Address": "sample string 3", "SHProvinceId": 1, "SHProvinceName": "sample string 4", "SHDistrictId": 1, "SHDistrictName": "sample string 5", "WardID": 1, "SHWardName": "sample string 6", "PhoneNumber": "sample string 7", "PhoneNumber2": "sample string 8", "ContactName": "sample string 9", "AgencyType": "sample string 10", "AgencyTypeName": "sample string 11", "StatusApproval": "sample string 12", "AgencyRank": 13, "Latitude": "sample string 14", "Longitude": "sample string 15", "MonthlyRevenue": 16.1, "DDD_Amount": 17.1, "DGD_Amount": 18.1, "GD_Amount": 19.1, "TBNB_Amount": 20.1, "LN_Amount": 21.1, "DDNB_Amount": 22.1, "facade_scale": 23.1, "business_area": 24.1, "sale_amount": 25.1, "NumEmps": 1, "NumOrders": 26, "agency_classification": "sample string 27", "SummaryAmount": 117.6, "StartDate": "2024-10-30T19:11:42.7314473+07:00", "strStartDate": "30/10/2024", "CheckTime": "2024-10-30T19:11:42.7314473+07:00", "strCheckTime": "30/10/2024", "AuditRound": 28, "ChainCode": "sample string 29", "Picture1": "sample string 30", "Picture2": "sample string 31", "Picture3": "sample string 32", "CreatedBy": "sample string 33", "CreatedDate": "2024-10-30T19:11:42.7314473+07:00", "strCreatedDate": "30/10/2024", "ModifiedBy": "sample string 35", "ModifiedDate": "2024-10-30T19:11:42.7314473+07:00", "strModifiedDate": "30/10/2024", "Active": true, "Id": "sample string 36", "SizeCode": "sample string 37", "SizeCodeName": "", "SHMarAgencyRegId": 38, "IsHaveAttach": true, "Approval": true, "ApprovalBy": "sample string 40", "ApprovalNote": "sample string 41", "CostCenter": "sample string 42", "ApprovalDate": "2024-10-30T19:11:42.7314473+07:00", "strApprovalDate": "30/10/2024" }
application/xml, text/xml
Sample:
<SHMarAgency_ViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SH.SM.Model"> <Active>true</Active> <Address>sample string 3</Address> <AgencyName>sample string 2</AgencyName> <AgencyRank>13</AgencyRank> <AgencyType>sample string 10</AgencyType> <AgencyTypeName>sample string 11</AgencyTypeName> <Approval>true</Approval> <ApprovalBy>sample string 40</ApprovalBy> <ApprovalDate>2024-10-30T19:11:42.7314473+07:00</ApprovalDate> <ApprovalNote>sample string 41</ApprovalNote> <AuditRound>28</AuditRound> <ChainCode>sample string 29</ChainCode> <CheckTime>2024-10-30T19:11:42.7314473+07:00</CheckTime> <ContactName>sample string 9</ContactName> <CostCenter>sample string 42</CostCenter> <CreatedBy>sample string 33</CreatedBy> <CreatedDate>2024-10-30T19:11:42.7314473+07:00</CreatedDate> <DDD_Amount>17.1</DDD_Amount> <DDNB_Amount>22.1</DDNB_Amount> <DGD_Amount>18.1</DGD_Amount> <GD_Amount>19.1</GD_Amount> <Id>sample string 36</Id> <IsHaveAttach>true</IsHaveAttach> <LN_Amount>21.1</LN_Amount> <Latitude>sample string 14</Latitude> <Longitude>sample string 15</Longitude> <ModifiedBy>sample string 35</ModifiedBy> <ModifiedDate>2024-10-30T19:11:42.7314473+07:00</ModifiedDate> <MonthlyRevenue>16.1</MonthlyRevenue> <NumEmps>1</NumEmps> <NumOrders>26</NumOrders> <PhoneNumber>sample string 7</PhoneNumber> <PhoneNumber2>sample string 8</PhoneNumber2> <Picture1>sample string 30</Picture1> <Picture2>sample string 31</Picture2> <Picture3>sample string 32</Picture3> <SHDistrictId>1</SHDistrictId> <SHDistrictName>sample string 5</SHDistrictName> <SHMarAgencyRegId>38</SHMarAgencyRegId> <SHProvinceId>1</SHProvinceId> <SHProvinceName>sample string 4</SHProvinceName> <SHWardName>sample string 6</SHWardName> <SizeCode>sample string 37</SizeCode> <StartDate>2024-10-30T19:11:42.7314473+07:00</StartDate> <StatusApproval>sample string 12</StatusApproval> <TBNB_Amount>20.1</TBNB_Amount> <WardID>1</WardID> <agency_classification>sample string 27</agency_classification> <business_area>24.1</business_area> <cmp_wwn>sample string 1</cmp_wwn> <facade_scale>23.1</facade_scale> <sale_amount>25.1</sale_amount> </SHMarAgency_ViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |