GET api/Customer/GetLoyaltyPromotionByCustomerID?customerID={customerID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerID | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
APIOrderOnlineResultOfListOfLoyaltyPromoCode| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of LoyaltyPromoCode |
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,
{
"LoyaltyPromoCodeID": "b28bf6d6-03ac-4b67-bbce-d5396d316a3f",
"PromoCodeID": 2,
"CustomerID": "fd3ab8df-674c-4507-b47a-5b62e7ba4366",
"Code": "sample string 3",
"Status": 4,
"PromotionID": "925eb3e6-533c-428f-84ec-6b5ca5281001",
"GeneratedDate": "2026-05-11T18:21:06.1277349+07:00",
"RedeemedDate": "2026-05-11T18:21:06.1277349+07:00",
"RedeemPoint": 6,
"UsedDate": "2026-05-11T18:21:06.1277349+07:00",
"IsStaticCode": true,
"RefID": "ec5db960-ce9a-4cfa-9a1c-98f04a78f9de",
"RefNo": "sample string 8",
"Tel": "sample string 9",
"CustomerName": "sample string 10",
"PromotionName": "sample string 11",
"PromotionType": 12,
"DiscountRate": 13.0,
"DiscountAmount": 14.0,
"FromDate": "2026-05-11T18:21:06.1277349+07:00",
"ToDate": "2026-05-11T18:21:06.1277349+07:00",
"EditMode": 0,
"CreatedDate": "2026-05-11T18:21:06.1277349+07:00",
"CreatedBy": "sample string 16",
"ModifiedDate": "2026-05-11T18:21:06.1277349+07:00",
"ModifiedBy": "sample string 17",
"IsGenerate": true,
"IsSetNullForBranchIdInDeleteObject": true
}
],
"Success": true,
"ErrorMessage": "sample string 2",
"ErrorType": 0,
"Total": 3,
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<APIOrderOnlineResultOfArrayOfLoyaltyPromoCode34ouyJuR 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:LoyaltyPromoCode i:nil="true" />
<d2p1:LoyaltyPromoCode>
<d2p1:PropertyChangedEvent xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.ComponentModel" i:nil="true" />
<d2p1:_CreatedBy>sample string 16</d2p1:_CreatedBy>
<d2p1:_CreatedDate>2026-05-11T18:21:06.1277349+07:00</d2p1:_CreatedDate>
<d2p1:_EditMode>None</d2p1:_EditMode>
<d2p1:_ImportErrorDetail>sample string 22</d2p1:_ImportErrorDetail>
<d2p1:_ImportRowIndex>21</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 17</d2p1:_ModifiedBy>
<d2p1:_ModifiedDate>2026-05-11T18:21:06.1277349+07:00</d2p1:_ModifiedDate>
<d2p1:_TableSchema>sample string 15</d2p1:_TableSchema>
<d2p1:Code>sample string 3</d2p1:Code>
<d2p1:CustomerID>fd3ab8df-674c-4507-b47a-5b62e7ba4366</d2p1:CustomerID>
<d2p1:CustomerName>sample string 10</d2p1:CustomerName>
<d2p1:DiscountAmount>14</d2p1:DiscountAmount>
<d2p1:DiscountRate>13</d2p1:DiscountRate>
<d2p1:FromDate>2026-05-11T18:21:06.1277349+07:00</d2p1:FromDate>
<d2p1:GeneratedDate>2026-05-11T18:21:06.1277349+07:00</d2p1:GeneratedDate>
<d2p1:IsStaticCode>true</d2p1:IsStaticCode>
<d2p1:LoyaltyPromoCodeID>b28bf6d6-03ac-4b67-bbce-d5396d316a3f</d2p1:LoyaltyPromoCodeID>
<d2p1:PromoCodeID>2</d2p1:PromoCodeID>
<d2p1:PromotionID>925eb3e6-533c-428f-84ec-6b5ca5281001</d2p1:PromotionID>
<d2p1:PromotionName>sample string 11</d2p1:PromotionName>
<d2p1:PromotionType>12</d2p1:PromotionType>
<d2p1:RedeemPoint>6</d2p1:RedeemPoint>
<d2p1:RedeemedDate>2026-05-11T18:21:06.1277349+07:00</d2p1:RedeemedDate>
<d2p1:RefID>ec5db960-ce9a-4cfa-9a1c-98f04a78f9de</d2p1:RefID>
<d2p1:RefNo>sample string 8</d2p1:RefNo>
<d2p1:Status>4</d2p1:Status>
<d2p1:Tel>sample string 9</d2p1:Tel>
<d2p1:ToDate>2026-05-11T18:21:06.1277349+07:00</d2p1:ToDate>
<d2p1:UsedDate>2026-05-11T18:21:06.1277349+07:00</d2p1:UsedDate>
</d2p1:LoyaltyPromoCode>
</Data>
<ErrorMessage>sample string 2</ErrorMessage>
<ErrorType>None</ErrorType>
<Message>sample string 4</Message>
<Success>true</Success>
<Total>3</Total>
</APIOrderOnlineResultOfArrayOfLoyaltyPromoCode34ouyJuR>