GET api/Counpon/GetAllOrderOnlineLimitPromo?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
APIOrderOnlineResultOfListOfOrderOnline_LimitPromoInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of OrderOnline_LimitPromoInfo |
None. |
|
| Success | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| ErrorType | OrderOnlineAPIErrorType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": [
{
"PromotionID": "96ebb069-725a-4baf-9519-186cc7906e00",
"PromotionType": 1,
"ListSAInvoiceID": [
"725482b5-820d-4793-96f7-7c46835bf021",
"b01058be-7222-4305-b37f-daf5ea783834"
],
"ListCustomerInfo": [
{
"RefID": "f93bb938-7ffd-437e-a772-f837205ec989",
"CustomerID": "136ae0b9-3ffd-4a10-b479-2bf3b4f376cb"
},
{
"RefID": "f93bb938-7ffd-437e-a772-f837205ec989",
"CustomerID": "136ae0b9-3ffd-4a10-b479-2bf3b4f376cb"
}
]
},
{
"PromotionID": "96ebb069-725a-4baf-9519-186cc7906e00",
"PromotionType": 1,
"ListSAInvoiceID": [
"725482b5-820d-4793-96f7-7c46835bf021",
"b01058be-7222-4305-b37f-daf5ea783834"
],
"ListCustomerInfo": [
{
"RefID": "f93bb938-7ffd-437e-a772-f837205ec989",
"CustomerID": "136ae0b9-3ffd-4a10-b479-2bf3b4f376cb"
},
{
"RefID": "f93bb938-7ffd-437e-a772-f837205ec989",
"CustomerID": "136ae0b9-3ffd-4a10-b479-2bf3b4f376cb"
}
]
}
],
"Success": true,
"ErrorMessage": "sample string 2",
"ErrorType": 0,
"Total": 3,
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<APIOrderOnlineResultOfArrayOfOrderOnline_LimitPromoInfoHwd4PmMc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
<Data>
<OrderOnline_LimitPromoInfo>
<_ListCustomerInfo>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>136ae0b9-3ffd-4a10-b479-2bf3b4f376cb</CustomerID>
<RefID>f93bb938-7ffd-437e-a772-f837205ec989</RefID>
</OrderOnline_LitmitPromoCustomer>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>136ae0b9-3ffd-4a10-b479-2bf3b4f376cb</CustomerID>
<RefID>f93bb938-7ffd-437e-a772-f837205ec989</RefID>
</OrderOnline_LitmitPromoCustomer>
</_ListCustomerInfo>
<_ListSAInvoiceID xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>725482b5-820d-4793-96f7-7c46835bf021</d4p1:guid>
<d4p1:guid>b01058be-7222-4305-b37f-daf5ea783834</d4p1:guid>
</_ListSAInvoiceID>
<_PromotionID>96ebb069-725a-4baf-9519-186cc7906e00</_PromotionID>
<_PromotionType>1</_PromotionType>
</OrderOnline_LimitPromoInfo>
<OrderOnline_LimitPromoInfo>
<_ListCustomerInfo>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>136ae0b9-3ffd-4a10-b479-2bf3b4f376cb</CustomerID>
<RefID>f93bb938-7ffd-437e-a772-f837205ec989</RefID>
</OrderOnline_LitmitPromoCustomer>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>136ae0b9-3ffd-4a10-b479-2bf3b4f376cb</CustomerID>
<RefID>f93bb938-7ffd-437e-a772-f837205ec989</RefID>
</OrderOnline_LitmitPromoCustomer>
</_ListCustomerInfo>
<_ListSAInvoiceID xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>725482b5-820d-4793-96f7-7c46835bf021</d4p1:guid>
<d4p1:guid>b01058be-7222-4305-b37f-daf5ea783834</d4p1:guid>
</_ListSAInvoiceID>
<_PromotionID>96ebb069-725a-4baf-9519-186cc7906e00</_PromotionID>
<_PromotionType>1</_PromotionType>
</OrderOnline_LimitPromoInfo>
</Data>
<ErrorMessage>sample string 2</ErrorMessage>
<ErrorType>None</ErrorType>
<Message>sample string 4</Message>
<Success>true</Success>
<Total>3</Total>
</APIOrderOnlineResultOfArrayOfOrderOnline_LimitPromoInfoHwd4PmMc>