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": "268d8159-90bb-4d70-991b-013dfc68b455",
"PromotionType": 1,
"ListSAInvoiceID": [
"b924365f-b06c-45d5-942c-df82e7842290",
"142019dc-5159-4c2c-9493-ee98915bb761"
],
"ListCustomerInfo": [
{
"RefID": "73efe430-9494-41a2-8e44-e99b9e710c49",
"CustomerID": "6f86ff36-931a-46d0-9f4a-5c4fab22a8fb"
},
{
"RefID": "73efe430-9494-41a2-8e44-e99b9e710c49",
"CustomerID": "6f86ff36-931a-46d0-9f4a-5c4fab22a8fb"
}
]
},
{
"PromotionID": "268d8159-90bb-4d70-991b-013dfc68b455",
"PromotionType": 1,
"ListSAInvoiceID": [
"b924365f-b06c-45d5-942c-df82e7842290",
"142019dc-5159-4c2c-9493-ee98915bb761"
],
"ListCustomerInfo": [
{
"RefID": "73efe430-9494-41a2-8e44-e99b9e710c49",
"CustomerID": "6f86ff36-931a-46d0-9f4a-5c4fab22a8fb"
},
{
"RefID": "73efe430-9494-41a2-8e44-e99b9e710c49",
"CustomerID": "6f86ff36-931a-46d0-9f4a-5c4fab22a8fb"
}
]
}
],
"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>6f86ff36-931a-46d0-9f4a-5c4fab22a8fb</CustomerID>
<RefID>73efe430-9494-41a2-8e44-e99b9e710c49</RefID>
</OrderOnline_LitmitPromoCustomer>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>6f86ff36-931a-46d0-9f4a-5c4fab22a8fb</CustomerID>
<RefID>73efe430-9494-41a2-8e44-e99b9e710c49</RefID>
</OrderOnline_LitmitPromoCustomer>
</_ListCustomerInfo>
<_ListSAInvoiceID xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>b924365f-b06c-45d5-942c-df82e7842290</d4p1:guid>
<d4p1:guid>142019dc-5159-4c2c-9493-ee98915bb761</d4p1:guid>
</_ListSAInvoiceID>
<_PromotionID>268d8159-90bb-4d70-991b-013dfc68b455</_PromotionID>
<_PromotionType>1</_PromotionType>
</OrderOnline_LimitPromoInfo>
<OrderOnline_LimitPromoInfo>
<_ListCustomerInfo>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>6f86ff36-931a-46d0-9f4a-5c4fab22a8fb</CustomerID>
<RefID>73efe430-9494-41a2-8e44-e99b9e710c49</RefID>
</OrderOnline_LitmitPromoCustomer>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>6f86ff36-931a-46d0-9f4a-5c4fab22a8fb</CustomerID>
<RefID>73efe430-9494-41a2-8e44-e99b9e710c49</RefID>
</OrderOnline_LitmitPromoCustomer>
</_ListCustomerInfo>
<_ListSAInvoiceID xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>b924365f-b06c-45d5-942c-df82e7842290</d4p1:guid>
<d4p1:guid>142019dc-5159-4c2c-9493-ee98915bb761</d4p1:guid>
</_ListSAInvoiceID>
<_PromotionID>268d8159-90bb-4d70-991b-013dfc68b455</_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>