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": "336dcf0c-ac2d-45b8-83a2-d0a4d9ed42e6",
"PromotionType": 1,
"ListSAInvoiceID": [
"48ab5c49-341a-4149-8291-7cc2689fe029",
"8f311ef7-0b25-4880-b9b6-5f1138393413"
],
"ListCustomerInfo": [
{
"RefID": "5e3b2836-1ec4-4eca-beda-20506c417022",
"CustomerID": "c90116d7-75a4-40d4-9b43-a53e31071a2c"
},
{
"RefID": "5e3b2836-1ec4-4eca-beda-20506c417022",
"CustomerID": "c90116d7-75a4-40d4-9b43-a53e31071a2c"
}
]
},
{
"PromotionID": "336dcf0c-ac2d-45b8-83a2-d0a4d9ed42e6",
"PromotionType": 1,
"ListSAInvoiceID": [
"48ab5c49-341a-4149-8291-7cc2689fe029",
"8f311ef7-0b25-4880-b9b6-5f1138393413"
],
"ListCustomerInfo": [
{
"RefID": "5e3b2836-1ec4-4eca-beda-20506c417022",
"CustomerID": "c90116d7-75a4-40d4-9b43-a53e31071a2c"
},
{
"RefID": "5e3b2836-1ec4-4eca-beda-20506c417022",
"CustomerID": "c90116d7-75a4-40d4-9b43-a53e31071a2c"
}
]
}
],
"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>c90116d7-75a4-40d4-9b43-a53e31071a2c</CustomerID>
<RefID>5e3b2836-1ec4-4eca-beda-20506c417022</RefID>
</OrderOnline_LitmitPromoCustomer>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>c90116d7-75a4-40d4-9b43-a53e31071a2c</CustomerID>
<RefID>5e3b2836-1ec4-4eca-beda-20506c417022</RefID>
</OrderOnline_LitmitPromoCustomer>
</_ListCustomerInfo>
<_ListSAInvoiceID xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>48ab5c49-341a-4149-8291-7cc2689fe029</d4p1:guid>
<d4p1:guid>8f311ef7-0b25-4880-b9b6-5f1138393413</d4p1:guid>
</_ListSAInvoiceID>
<_PromotionID>336dcf0c-ac2d-45b8-83a2-d0a4d9ed42e6</_PromotionID>
<_PromotionType>1</_PromotionType>
</OrderOnline_LimitPromoInfo>
<OrderOnline_LimitPromoInfo>
<_ListCustomerInfo>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>c90116d7-75a4-40d4-9b43-a53e31071a2c</CustomerID>
<RefID>5e3b2836-1ec4-4eca-beda-20506c417022</RefID>
</OrderOnline_LitmitPromoCustomer>
<OrderOnline_LitmitPromoCustomer>
<CustomerID>c90116d7-75a4-40d4-9b43-a53e31071a2c</CustomerID>
<RefID>5e3b2836-1ec4-4eca-beda-20506c417022</RefID>
</OrderOnline_LitmitPromoCustomer>
</_ListCustomerInfo>
<_ListSAInvoiceID xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>48ab5c49-341a-4149-8291-7cc2689fe029</d4p1:guid>
<d4p1:guid>8f311ef7-0b25-4880-b9b6-5f1138393413</d4p1:guid>
</_ListSAInvoiceID>
<_PromotionID>336dcf0c-ac2d-45b8-83a2-d0a4d9ed42e6</_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>