GET api/OnlineTimeSchedule/GetOnlineTimeScheduleByBranch?companyCode={companyCode}&branchID={branchID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyCode | string |
Required |
|
| branchID | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
APIOrderOnlineResultOfListOfOnlineTimeSchedule| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of OnlineTimeSchedule |
None. |
|
| Success | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| ErrorType | OrderOnlineAPIErrorType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": [
null,
{
"OnlineTimeScheduleID": "04d7eb2a-12d4-4f0b-a5cc-59c9f209afe1",
"DayOfWeek": 1,
"FromTime": 1,
"ToTime": 1,
"BranchID": "62afde84-e55f-4668-9fb2-4a23e97a0dc8",
"PartnerMenuCategories": [
null,
{
"PartnerMenuCategoryID": "7d04a657-df3f-4b25-a5f9-db6d340b11b9",
"InventoryItemCategoryID": "4e7cdf7e-d3b0-4beb-b0fc-cb7584202a52",
"InventoryItemCategoryName": "sample string 3",
"Description": "sample string 4",
"BranchID": "72bf2011-af76-4622-a181-9527425deee4",
"BookingType": 6,
"SortOrder": 7,
"PartnerTimeSlotCategoryID": "ae82e4e3-5c6c-420d-b3e9-dcfaa9bacef2",
"OAUserID": "02c9b6dc-aa20-43d4-b6ca-f99bbd1283a5",
"EditMode": 0,
"CreatedDate": "2026-05-11T18:21:21.6567574+07:00",
"CreatedBy": "sample string 9",
"ModifiedDate": "2026-05-11T18:21:21.6567574+07:00",
"ModifiedBy": "sample string 10",
"IsGenerate": true,
"IsSetNullForBranchIdInDeleteObject": true
}
],
"OnlineTimeScheduleReferenceID": "ce92e01f-efff-4d76-bac9-134cef66f091",
"OnlineTimeScheduleCategoryID": "3c7ca799-f395-450b-a150-b9cf62f69b7a",
"CategoryName": "sample string 3",
"Status": 4,
"EditMode": 0,
"CreatedDate": "2026-05-11T18:21:21.6567574+07:00",
"CreatedBy": "sample string 6",
"ModifiedDate": "2026-05-11T18:21:21.6567574+07:00",
"ModifiedBy": "sample string 7",
"IsGenerate": true,
"IsSetNullForBranchIdInDeleteObject": true
}
],
"Success": true,
"ErrorMessage": "sample string 2",
"ErrorType": 0,
"Total": 3,
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<APIOrderOnlineResultOfArrayOfOnlineTimeSchedule34ouyJuR xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MISA.QLNH.BOBase">
<d2p1:OnlineTimeSchedule i:nil="true" />
<d2p1:OnlineTimeSchedule>
<d2p1:PropertyChangedEvent xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.ComponentModel" i:nil="true" />
<d2p1:_CreatedBy>sample string 6</d2p1:_CreatedBy>
<d2p1:_CreatedDate>2026-05-11T18:21:21.6567574+07:00</d2p1:_CreatedDate>
<d2p1:_EditMode>None</d2p1:_EditMode>
<d2p1:_ImportErrorDetail>sample string 12</d2p1:_ImportErrorDetail>
<d2p1:_ImportRowIndex>11</d2p1:_ImportRowIndex>
<d2p1:_IsGenerate>true</d2p1:_IsGenerate>
<d2p1:_IsMasterRow>true</d2p1:_IsMasterRow>
<d2p1:_IsOverrideImport>true</d2p1:_IsOverrideImport>
<d2p1:_IsSetNullForBranchIdInDeleteObject>true</d2p1:_IsSetNullForBranchIdInDeleteObject>
<d2p1:_ListImportErrorDetail xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</d2p1:_ListImportErrorDetail>
<d2p1:_ModifiedBy>sample string 7</d2p1:_ModifiedBy>
<d2p1:_ModifiedDate>2026-05-11T18:21:21.6567574+07:00</d2p1:_ModifiedDate>
<d2p1:_TableSchema>sample string 5</d2p1:_TableSchema>
<d2p1:BranchID>62afde84-e55f-4668-9fb2-4a23e97a0dc8</d2p1:BranchID>
<d2p1:CategoryName>sample string 3</d2p1:CategoryName>
<d2p1:DayOfWeek>1</d2p1:DayOfWeek>
<d2p1:FromTime>1</d2p1:FromTime>
<d2p1:OnlineTimeScheduleCategoryID>3c7ca799-f395-450b-a150-b9cf62f69b7a</d2p1:OnlineTimeScheduleCategoryID>
<d2p1:OnlineTimeScheduleID>04d7eb2a-12d4-4f0b-a5cc-59c9f209afe1</d2p1:OnlineTimeScheduleID>
<d2p1:OnlineTimeScheduleReferenceID>ce92e01f-efff-4d76-bac9-134cef66f091</d2p1:OnlineTimeScheduleReferenceID>
<d2p1:PartnerMenuCategories>
<d2p1:PartnerMenuCategory i:nil="true" />
<d2p1:PartnerMenuCategory>
<d2p1:PropertyChangedEvent xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.ComponentModel" i:nil="true" />
<d2p1:_CreatedBy>sample string 9</d2p1:_CreatedBy>
<d2p1:_CreatedDate>2026-05-11T18:21:21.6567574+07:00</d2p1:_CreatedDate>
<d2p1:_EditMode>None</d2p1:_EditMode>
<d2p1:_ImportErrorDetail>sample string 15</d2p1:_ImportErrorDetail>
<d2p1:_ImportRowIndex>14</d2p1:_ImportRowIndex>
<d2p1:_IsGenerate>true</d2p1:_IsGenerate>
<d2p1:_IsMasterRow>true</d2p1:_IsMasterRow>
<d2p1:_IsOverrideImport>true</d2p1:_IsOverrideImport>
<d2p1:_IsSetNullForBranchIdInDeleteObject>true</d2p1:_IsSetNullForBranchIdInDeleteObject>
<d2p1:_ListImportErrorDetail xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</d2p1:_ListImportErrorDetail>
<d2p1:_ModifiedBy>sample string 10</d2p1:_ModifiedBy>
<d2p1:_ModifiedDate>2026-05-11T18:21:21.6567574+07:00</d2p1:_ModifiedDate>
<d2p1:_TableSchema>sample string 8</d2p1:_TableSchema>
<d2p1:BookingType>6</d2p1:BookingType>
<d2p1:BranchID>72bf2011-af76-4622-a181-9527425deee4</d2p1:BranchID>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:InventoryItemCategoryID>4e7cdf7e-d3b0-4beb-b0fc-cb7584202a52</d2p1:InventoryItemCategoryID>
<d2p1:InventoryItemCategoryName>sample string 3</d2p1:InventoryItemCategoryName>
<d2p1:OAUserID>02c9b6dc-aa20-43d4-b6ca-f99bbd1283a5</d2p1:OAUserID>
<d2p1:PartnerMenuCategoryID>7d04a657-df3f-4b25-a5f9-db6d340b11b9</d2p1:PartnerMenuCategoryID>
<d2p1:PartnerTimeSlotCategoryID>ae82e4e3-5c6c-420d-b3e9-dcfaa9bacef2</d2p1:PartnerTimeSlotCategoryID>
<d2p1:SortOrder>7</d2p1:SortOrder>
</d2p1:PartnerMenuCategory>
</d2p1:PartnerMenuCategories>
<d2p1:Status>4</d2p1:Status>
<d2p1:ToTime>1</d2p1:ToTime>
</d2p1:OnlineTimeSchedule>
</Data>
<ErrorMessage>sample string 2</ErrorMessage>
<ErrorType>None</ErrorType>
<Message>sample string 4</Message>
<Success>true</Success>
<Total>3</Total>
</APIOrderOnlineResultOfArrayOfOnlineTimeSchedule34ouyJuR>