PUT api/Content/v2/GetDeals
Request Information
URI Parameters
None.
Body Parameters
DealRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| SortBy | string |
None. |
|
| SortDir | string |
None. |
|
| PageNumber | integer |
Required |
|
| SearchText | string |
None. |
|
| IsTourDePearl | boolean |
None. |
|
| CategoryId | integer |
None. |
|
| LanguageCode | string |
None. |
|
| LocationId | integer |
None. |
|
| ContactId | integer |
None. |
|
| PromoLink | string |
None. |
|
| PromoCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"SortBy": "sample string 2",
"SortDir": "sample string 3",
"PageNumber": 4,
"SearchText": "sample string 5",
"IsTourDePearl": true,
"CategoryId": 7,
"LanguageCode": "sample string 8",
"LocationId": 9,
"ContactId": 10,
"PromoLink": "sample string 11",
"PromoCode": "sample string 12"
}
application/xml, text/xml
Sample:
<DealRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/"> <CategoryId>7</CategoryId> <ContactId>10</ContactId> <CustomerId>1</CustomerId> <IsTourDePearl>true</IsTourDePearl> <LanguageCode>sample string 8</LanguageCode> <LocationId>9</LocationId> <PageNumber>4</PageNumber> <PromoCode>sample string 12</PromoCode> <PromoLink>sample string 11</PromoLink> <SearchText>sample string 5</SearchText> <SortBy>sample string 2</SortBy> <SortDir>sample string 3</SortDir> </DealRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DealResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| DealList | Collection of APIDeal |
None. |
|
| TotalRecords | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"DealList": [
{
"Id": 1,
"Title": "sample string 2",
"LocationTitle": "sample string 3",
"Logo": "sample string 4",
"StartDate": "2026-01-14T13:06:00.9000239+00:00",
"EndDate": "2026-01-14T13:06:00.9000239+00:00",
"Description": "sample string 5",
"LocationId": 1,
"IsFeatrureList": true,
"Category": "sample string 7",
"CategoryId": [
1,
2
],
"MemberId": 1,
"IsFavorite": true,
"PromoLink": "sample string 9",
"PromoCode": "sample string 10"
},
{
"Id": 1,
"Title": "sample string 2",
"LocationTitle": "sample string 3",
"Logo": "sample string 4",
"StartDate": "2026-01-14T13:06:00.9000239+00:00",
"EndDate": "2026-01-14T13:06:00.9000239+00:00",
"Description": "sample string 5",
"LocationId": 1,
"IsFeatrureList": true,
"Category": "sample string 7",
"CategoryId": [
1,
2
],
"MemberId": 1,
"IsFavorite": true,
"PromoLink": "sample string 9",
"PromoCode": "sample string 10"
}
],
"TotalRecords": 1
}
application/xml, text/xml
Sample:
<DealResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
<DealList>
<APIDeal>
<Category>sample string 7</Category>
<CategoryId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:long>1</d4p1:long>
<d4p1:long>2</d4p1:long>
</CategoryId>
<Description>sample string 5</Description>
<EndDate>2026-01-14T13:06:00.9000239+00:00</EndDate>
<Id>1</Id>
<IsFavorite>true</IsFavorite>
<IsFeatrureList>true</IsFeatrureList>
<LocationId>1</LocationId>
<LocationTitle>sample string 3</LocationTitle>
<Logo>sample string 4</Logo>
<MemberId>1</MemberId>
<PromoCode>sample string 10</PromoCode>
<PromoLink>sample string 9</PromoLink>
<StartDate>2026-01-14T13:06:00.9000239+00:00</StartDate>
<Title>sample string 2</Title>
</APIDeal>
<APIDeal>
<Category>sample string 7</Category>
<CategoryId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:long>1</d4p1:long>
<d4p1:long>2</d4p1:long>
</CategoryId>
<Description>sample string 5</Description>
<EndDate>2026-01-14T13:06:00.9000239+00:00</EndDate>
<Id>1</Id>
<IsFavorite>true</IsFavorite>
<IsFeatrureList>true</IsFeatrureList>
<LocationId>1</LocationId>
<LocationTitle>sample string 3</LocationTitle>
<Logo>sample string 4</Logo>
<MemberId>1</MemberId>
<PromoCode>sample string 10</PromoCode>
<PromoLink>sample string 9</PromoLink>
<StartDate>2026-01-14T13:06:00.9000239+00:00</StartDate>
<Title>sample string 2</Title>
</APIDeal>
</DealList>
<TotalRecords>1</TotalRecords>
</DealResponse>