POST api/RSRT/CreateRSRT
Request Information
URI Parameters
None.
Body Parameters
RSRTModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Products | Collection of ProductModel |
None. |
|
| TourLeaders | Collection of T_TourLeader |
None. |
|
| Guides | Collection of T_Guide |
None. |
|
| OrderStatuses | Collection of OrderStatusModel |
None. |
|
| CompanyName | string |
None. |
|
| CountryName | string |
None. |
|
| CurrentStatus | string |
None. |
|
| ID | globally unique identifier |
None. |
|
| DocNo | string |
Required String length: inclusive between 0 and 12 |
|
| PlaceID | integer |
None. |
|
| ReservationsDate | date |
None. |
|
| CompanyID | integer |
None. |
|
| CountryID | integer |
None. |
|
| CarTypeID | integer |
None. |
|
| CarNumber | string |
String length: inclusive between 0 and 50 |
|
| TourLeaderNumber | integer |
None. |
|
| GuidNumber | integer |
None. |
|
| MealTime | time interval |
None. |
|
| NotYetPaid | boolean |
None. |
|
| PaymentTypeCash | decimal number |
None. |
|
| PaymentTypeVoucher | decimal number |
None. |
|
| PaymentTypeDeposit | decimal number |
None. |
|
| Total | decimal number |
None. |
|
| CreateBy | integer |
None. |
|
| CreateTime | date |
None. |
|
| UpdateBy | integer |
None. |
|
| UpdateTime | date |
None. |
|
| IsDelete | boolean |
None. |
|
| PaymentTypeID | integer |
None. |
|
| TourTypeID | integer |
None. |
|
| GroupCode | string |
String length: inclusive between 0 and 50 |
|
| PassID | string |
String length: inclusive between 0 and 50 |
|
| VoucherID | string |
String length: inclusive between 0 and 50 |
|
| PaymentTypeTranfer | decimal number |
None. |
|
| TaxInvoiceNumber | string |
String length: inclusive between 0 and 12 |
|
| TaxInvoiceDate | date |
None. |
|
| CancelRemark | string |
None. |
|
| IsPaymented | boolean |
None. |
|
| PaymentedTime | date |
None. |
|
| Remark | string |
None. |
|
| MarkPaymentedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Products": [
{
"Product": {
"ID": 1,
"Place_ID": 2,
"ProductType_ID": "sample string 3",
"Product_Name": "sample string 4",
"PaymentType": "sample string 5",
"Price": 6.0,
"CreateBy": 7,
"CreateTime": "2025-12-11T21:26:26.8677967+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.8677967+07:00",
"IsActive": true,
"IsDelete": true
},
"ID": "963dc41c-4bee-4cde-a960-eb6675f36e95",
"ProductID": 2,
"Amount": 3,
"Price": 4.0,
"Total": 5.0,
"CreateBy": 6,
"CreateTime": "2025-12-11T21:26:26.8677967+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.8677967+07:00",
"IsDelete": true,
"RSRT_ID": "3132f9a0-0d63-4a72-b539-cad5a7e13acb"
},
{
"Product": {
"ID": 1,
"Place_ID": 2,
"ProductType_ID": "sample string 3",
"Product_Name": "sample string 4",
"PaymentType": "sample string 5",
"Price": 6.0,
"CreateBy": 7,
"CreateTime": "2025-12-11T21:26:26.8677967+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.8677967+07:00",
"IsActive": true,
"IsDelete": true
},
"ID": "963dc41c-4bee-4cde-a960-eb6675f36e95",
"ProductID": 2,
"Amount": 3,
"Price": 4.0,
"Total": 5.0,
"CreateBy": 6,
"CreateTime": "2025-12-11T21:26:26.8677967+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.8677967+07:00",
"IsDelete": true,
"RSRT_ID": "3132f9a0-0d63-4a72-b539-cad5a7e13acb"
}
],
"TourLeaders": [
{
"ID": "ef5468f2-3514-4054-9e15-6209ad46f045",
"Tour_Leader_Name": "sample string 2",
"Tel": "sample string 3",
"RSRT_ID": "3e309c76-04dd-47ec-be9b-439e04bd017f"
},
{
"ID": "ef5468f2-3514-4054-9e15-6209ad46f045",
"Tour_Leader_Name": "sample string 2",
"Tel": "sample string 3",
"RSRT_ID": "3e309c76-04dd-47ec-be9b-439e04bd017f"
}
],
"Guides": [
{
"ID": "cb9121b1-8a17-4063-a29e-1995ad0b93d2",
"Guide_Name": "sample string 2",
"Tel": "sample string 3",
"RSRT_ID": "3e06d5df-665f-42da-af40-5d82f06af44b"
},
{
"ID": "cb9121b1-8a17-4063-a29e-1995ad0b93d2",
"Guide_Name": "sample string 2",
"Tel": "sample string 3",
"RSRT_ID": "3e06d5df-665f-42da-af40-5d82f06af44b"
}
],
"OrderStatuses": [
{
"StatusName": "sample string 1",
"StatusByName": "sample string 2",
"ID": "90bc7255-7f67-434b-ab97-a4d862387679",
"OrderStatus_ID": 4,
"CreateBy": 5,
"CreateTime": "2025-12-11T21:26:26.8677967+07:00",
"RSRT_ID": "43edd74f-a18e-4a64-8011-7dafbdcc8c43"
},
{
"StatusName": "sample string 1",
"StatusByName": "sample string 2",
"ID": "90bc7255-7f67-434b-ab97-a4d862387679",
"OrderStatus_ID": 4,
"CreateBy": 5,
"CreateTime": "2025-12-11T21:26:26.8677967+07:00",
"RSRT_ID": "43edd74f-a18e-4a64-8011-7dafbdcc8c43"
}
],
"CompanyName": "sample string 1",
"CountryName": "sample string 2",
"CurrentStatus": "sample string 3",
"ID": "4fa0cb92-a410-42ab-8bab-e84430128af7",
"DocNo": "sample string 5",
"PlaceID": 6,
"ReservationsDate": "2025-12-11T21:26:26.8677967+07:00",
"CompanyID": 7,
"CountryID": 8,
"CarTypeID": 1,
"CarNumber": "sample string 9",
"TourLeaderNumber": 1,
"GuidNumber": 1,
"MealTime": "00:00:00.1234567",
"NotYetPaid": true,
"PaymentTypeCash": 1.0,
"PaymentTypeVoucher": 1.0,
"PaymentTypeDeposit": 1.0,
"Total": 10.0,
"CreateBy": 11,
"CreateTime": "2025-12-11T21:26:26.8834201+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.8834201+07:00",
"IsDelete": true,
"PaymentTypeID": 1,
"TourTypeID": 1,
"GroupCode": "sample string 13",
"PassID": "sample string 14",
"VoucherID": "sample string 15",
"PaymentTypeTranfer": 1.0,
"TaxInvoiceNumber": "sample string 16",
"TaxInvoiceDate": "2025-12-11T21:26:26.8834201+07:00",
"CancelRemark": "sample string 17",
"IsPaymented": true,
"PaymentedTime": "2025-12-11T21:26:26.8834201+07:00",
"Remark": "sample string 18",
"MarkPaymentedBy": 1
}
application/xml, text/xml
Sample:
<RSRTModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.CustomModel">
<CancelRemark xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 17</CancelRemark>
<CarNumber xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 9</CarNumber>
<CarTypeID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</CarTypeID>
<CompanyID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">7</CompanyID>
<CountryID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">8</CountryID>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">11</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8834201+07:00</CreateTime>
<DocNo xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 5</DocNo>
<GroupCode xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 13</GroupCode>
<GuidNumber xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</GuidNumber>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4fa0cb92-a410-42ab-8bab-e84430128af7</ID>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
<IsPaymented xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsPaymented>
<MarkPaymentedBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</MarkPaymentedBy>
<MealTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">PT0.1234567S</MealTime>
<NotYetPaid xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</NotYetPaid>
<PassID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 14</PassID>
<PaymentTypeCash xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</PaymentTypeCash>
<PaymentTypeDeposit xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</PaymentTypeDeposit>
<PaymentTypeID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</PaymentTypeID>
<PaymentTypeTranfer xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</PaymentTypeTranfer>
<PaymentTypeVoucher xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</PaymentTypeVoucher>
<PaymentedTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8834201+07:00</PaymentedTime>
<PlaceID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">6</PlaceID>
<Remark xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 18</Remark>
<ReservationsDate xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8677967+07:00</ReservationsDate>
<TaxInvoiceDate xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8834201+07:00</TaxInvoiceDate>
<TaxInvoiceNumber xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 16</TaxInvoiceNumber>
<Total xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">10</Total>
<TourLeaderNumber xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</TourLeaderNumber>
<TourTypeID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</TourTypeID>
<UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
<UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8834201+07:00</UpdateTime>
<VoucherID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 15</VoucherID>
<CompanyName>sample string 1</CompanyName>
<CountryName>sample string 2</CountryName>
<CurrentStatus>sample string 3</CurrentStatus>
<Guides xmlns:d2p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
<d2p1:T_Guide>
<d2p1:Guide_Name>sample string 2</d2p1:Guide_Name>
<d2p1:ID>cb9121b1-8a17-4063-a29e-1995ad0b93d2</d2p1:ID>
<d2p1:RSRT_ID>3e06d5df-665f-42da-af40-5d82f06af44b</d2p1:RSRT_ID>
<d2p1:Tel>sample string 3</d2p1:Tel>
</d2p1:T_Guide>
<d2p1:T_Guide>
<d2p1:Guide_Name>sample string 2</d2p1:Guide_Name>
<d2p1:ID>cb9121b1-8a17-4063-a29e-1995ad0b93d2</d2p1:ID>
<d2p1:RSRT_ID>3e06d5df-665f-42da-af40-5d82f06af44b</d2p1:RSRT_ID>
<d2p1:Tel>sample string 3</d2p1:Tel>
</d2p1:T_Guide>
</Guides>
<OrderStatuses>
<OrderStatusModel>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">5</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8677967+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">90bc7255-7f67-434b-ab97-a4d862387679</ID>
<OrderStatus_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</OrderStatus_ID>
<RSRT_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">43edd74f-a18e-4a64-8011-7dafbdcc8c43</RSRT_ID>
<StatusByName>sample string 2</StatusByName>
<StatusName>sample string 1</StatusName>
</OrderStatusModel>
<OrderStatusModel>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">5</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8677967+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">90bc7255-7f67-434b-ab97-a4d862387679</ID>
<OrderStatus_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</OrderStatus_ID>
<RSRT_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">43edd74f-a18e-4a64-8011-7dafbdcc8c43</RSRT_ID>
<StatusByName>sample string 2</StatusByName>
<StatusName>sample string 1</StatusName>
</OrderStatusModel>
</OrderStatuses>
<Products>
<ProductModel>
<Amount xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">3</Amount>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">6</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8677967+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">963dc41c-4bee-4cde-a960-eb6675f36e95</ID>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
<Price xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</Price>
<ProductID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2</ProductID>
<RSRT_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">3132f9a0-0d63-4a72-b539-cad5a7e13acb</RSRT_ID>
<Total xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">5</Total>
<UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
<UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8677967+07:00</UpdateTime>
<Product xmlns:d4p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
<d4p1:CreateBy>7</d4p1:CreateBy>
<d4p1:CreateTime>2025-12-11T21:26:26.8677967+07:00</d4p1:CreateTime>
<d4p1:ID>1</d4p1:ID>
<d4p1:IsActive>true</d4p1:IsActive>
<d4p1:IsDelete>true</d4p1:IsDelete>
<d4p1:PaymentType>sample string 5</d4p1:PaymentType>
<d4p1:Place_ID>2</d4p1:Place_ID>
<d4p1:Price>6</d4p1:Price>
<d4p1:ProductType_ID>sample string 3</d4p1:ProductType_ID>
<d4p1:Product_Name>sample string 4</d4p1:Product_Name>
<d4p1:UpdateBy>1</d4p1:UpdateBy>
<d4p1:UpdateTime>2025-12-11T21:26:26.8677967+07:00</d4p1:UpdateTime>
</Product>
</ProductModel>
<ProductModel>
<Amount xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">3</Amount>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">6</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8677967+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">963dc41c-4bee-4cde-a960-eb6675f36e95</ID>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
<Price xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</Price>
<ProductID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2</ProductID>
<RSRT_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">3132f9a0-0d63-4a72-b539-cad5a7e13acb</RSRT_ID>
<Total xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">5</Total>
<UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
<UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.8677967+07:00</UpdateTime>
<Product xmlns:d4p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
<d4p1:CreateBy>7</d4p1:CreateBy>
<d4p1:CreateTime>2025-12-11T21:26:26.8677967+07:00</d4p1:CreateTime>
<d4p1:ID>1</d4p1:ID>
<d4p1:IsActive>true</d4p1:IsActive>
<d4p1:IsDelete>true</d4p1:IsDelete>
<d4p1:PaymentType>sample string 5</d4p1:PaymentType>
<d4p1:Place_ID>2</d4p1:Place_ID>
<d4p1:Price>6</d4p1:Price>
<d4p1:ProductType_ID>sample string 3</d4p1:ProductType_ID>
<d4p1:Product_Name>sample string 4</d4p1:Product_Name>
<d4p1:UpdateBy>1</d4p1:UpdateBy>
<d4p1:UpdateTime>2025-12-11T21:26:26.8677967+07:00</d4p1:UpdateTime>
</Product>
</ProductModel>
</Products>
<TourLeaders xmlns:d2p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
<d2p1:T_TourLeader>
<d2p1:ID>ef5468f2-3514-4054-9e15-6209ad46f045</d2p1:ID>
<d2p1:RSRT_ID>3e309c76-04dd-47ec-be9b-439e04bd017f</d2p1:RSRT_ID>
<d2p1:Tel>sample string 3</d2p1:Tel>
<d2p1:Tour_Leader_Name>sample string 2</d2p1:Tour_Leader_Name>
</d2p1:T_TourLeader>
<d2p1:T_TourLeader>
<d2p1:ID>ef5468f2-3514-4054-9e15-6209ad46f045</d2p1:ID>
<d2p1:RSRT_ID>3e309c76-04dd-47ec-be9b-439e04bd017f</d2p1:RSRT_ID>
<d2p1:Tel>sample string 3</d2p1:Tel>
<d2p1:Tour_Leader_Name>sample string 2</d2p1:Tour_Leader_Name>
</d2p1:T_TourLeader>
</TourLeaders>
</RSRTModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.