POST api/normalizer/orders
Create order.
Request Information
URI Parameters
None.
Body Parameters
NormalizerOrder_req| Name | Description | Type | Additional information |
|---|---|---|---|
| reference_code | string |
None. |
|
| guests | Collection of NormalizerGuest |
None. |
|
| room_count | integer |
None. |
|
| dataid | string |
None. |
|
| package_id | string |
None. |
|
| total_price | Money |
None. |
|
| start_date | date |
None. |
|
| end_date | date |
None. |
|
| agent_reference_number | string |
None. |
|
| bundled_add_ons | Collection of bundled_add_on |
None. |
|
| extra_add_ons | Collection of extra_add_on |
None. |
|
| remarks | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"reference_code": "sample string 1",
"guests": [
{
"full_name": "sample string 1",
"identity": "sample string 2",
"nationality": "sample string 3",
"date_of_birth": "sample string 4",
"email": "sample string 5",
"phone": {
"code": "sample string 1",
"number": "sample string 2"
}
},
{
"full_name": "sample string 1",
"identity": "sample string 2",
"nationality": "sample string 3",
"date_of_birth": "sample string 4",
"email": "sample string 5",
"phone": {
"code": "sample string 1",
"number": "sample string 2"
}
}
],
"room_count": 2,
"dataid": "sample string 3",
"package_id": "sample string 4",
"total_price": {
"currency": "sample string 1",
"value": 2.0
},
"start_date": "2025-11-05T15:03:48.3778154+08:00",
"end_date": "2025-11-05T15:03:48.3778154+08:00",
"agent_reference_number": "sample string 7",
"bundled_add_ons": [
{
"id": "sample string 1",
"dates": [
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
]
},
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
]
}
]
},
{
"id": "sample string 1",
"dates": [
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
]
},
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
]
}
]
}
],
"extra_add_ons": [
{
"id": "sample string 1",
"dates": [
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
],
"quantity": 2
},
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
],
"quantity": 2
}
],
"required": "sample string 2"
},
{
"id": "sample string 1",
"dates": [
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
],
"quantity": 2
},
{
"date": "sample string 1",
"timeslots": [
{
"start_time": "sample string 1",
"end_time": "sample string 2"
},
{
"start_time": "sample string 1",
"end_time": "sample string 2"
}
],
"quantity": 2
}
],
"required": "sample string 2"
}
],
"remarks": "sample string 8"
}
application/xml, text/xml
Sample:
<NormalizerOrder_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TEAPI.WebApi.Models.Normalizer">
<agent_reference_number>sample string 7</agent_reference_number>
<bundled_add_ons>
<bundled_add_on>
<dates>
<BundledDateSelection>
<date>sample string 1</date>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</BundledDateSelection>
<BundledDateSelection>
<date>sample string 1</date>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</BundledDateSelection>
</dates>
<id>sample string 1</id>
</bundled_add_on>
<bundled_add_on>
<dates>
<BundledDateSelection>
<date>sample string 1</date>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</BundledDateSelection>
<BundledDateSelection>
<date>sample string 1</date>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</BundledDateSelection>
</dates>
<id>sample string 1</id>
</bundled_add_on>
</bundled_add_ons>
<dataid>sample string 3</dataid>
<end_date>2025-11-05T15:03:48.3778154+08:00</end_date>
<extra_add_ons>
<extra_add_on>
<dates>
<ExtraDateSelection>
<date>sample string 1</date>
<quantity>2</quantity>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</ExtraDateSelection>
<ExtraDateSelection>
<date>sample string 1</date>
<quantity>2</quantity>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</ExtraDateSelection>
</dates>
<id>sample string 1</id>
<required>sample string 2</required>
</extra_add_on>
<extra_add_on>
<dates>
<ExtraDateSelection>
<date>sample string 1</date>
<quantity>2</quantity>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</ExtraDateSelection>
<ExtraDateSelection>
<date>sample string 1</date>
<quantity>2</quantity>
<timeslots>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
<Timeslot>
<end_time>sample string 2</end_time>
<start_time>sample string 1</start_time>
</Timeslot>
</timeslots>
</ExtraDateSelection>
</dates>
<id>sample string 1</id>
<required>sample string 2</required>
</extra_add_on>
</extra_add_ons>
<guests>
<NormalizerGuest>
<date_of_birth>sample string 4</date_of_birth>
<email>sample string 5</email>
<full_name>sample string 1</full_name>
<identity>sample string 2</identity>
<nationality>sample string 3</nationality>
<phone>
<code>sample string 1</code>
<number>sample string 2</number>
</phone>
</NormalizerGuest>
<NormalizerGuest>
<date_of_birth>sample string 4</date_of_birth>
<email>sample string 5</email>
<full_name>sample string 1</full_name>
<identity>sample string 2</identity>
<nationality>sample string 3</nationality>
<phone>
<code>sample string 1</code>
<number>sample string 2</number>
</phone>
</NormalizerGuest>
</guests>
<package_id>sample string 4</package_id>
<reference_code>sample string 1</reference_code>
<remarks>sample string 8</remarks>
<room_count>2</room_count>
<start_date>2025-11-05T15:03:48.3778154+08:00</start_date>
<total_price>
<currency>sample string 1</currency>
<value>2</value>
</total_price>
</NormalizerOrder_req>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
NormalizerOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
|
| status | string |
None. |
|
| confirmation_num | string |
None. |
|
| source_id |
供應商名稱 |
string |
None. |
| dataid |
dataid是供應商API對接資訊, 訂購/取消時必須傳送 |
string |
None. |
| created_at | date |
None. |
|
| updated_at | date |
None. |
|
| cancelled_at | date |
None. |
|
| guests | Collection of NormalizerGuest |
None. |
|
| remarks | string |
None. |
|
| start_date | date |
None. |
|
| end_date | date |
None. |
|
| net_price | Money |
None. |
|
| tax | Money |
None. |
|
| gross_price | Money |
None. |
|
| order_package | orderPackage |
None. |
|
| order_add_ons | Collection of order_add_on |
None. |
|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |