POST api/Voucher/GetVouchersList

Request Information

URI Parameters

None.

Body Parameters

CreateCampaignModel
NameDescriptionTypeAdditional information
campaignId

integer

None.

value

integer

None.

cap

integer

None.

share

integer

None.

name

string

None.

campaignName

string

None.

createdBy

string

None.

TypeId

integer

None.

Count

integer

None.

repetitionType

integer

None.

usageLimit

integer

None.

usageLimitPerUser

integer

None.

specialityKey

string

None.

areaKey

string

None.

countryKey

string

None.

cityKey

string

None.

componentKey

string

None.

productKey

string

None.

ReciepientKey

string

None.

ProviderKey

string

None.

StartDateTime

date

None.

EndDateTime

date

None.

OfferCheckKey

string

None.

MaxDiscount

integer

None.

MinRecieptValue

integer

None.

LimitedForNewUser

boolean

None.

Entities

Collection of EntityModel

None.

Request Formats

application/json, text/json

Sample:
{
  "campaignId": 1,
  "value": 1,
  "cap": 2,
  "share": 3,
  "name": "sample string 4",
  "campaignName": "sample string 5",
  "createdBy": "sample string 6",
  "TypeId": 7,
  "Count": 8,
  "repetitionType": 9,
  "usageLimit": 1,
  "usageLimitPerUser": 1,
  "specialityKey": "sample string 10",
  "areaKey": "sample string 11",
  "countryKey": "sample string 12",
  "cityKey": "sample string 13",
  "componentKey": "sample string 14",
  "productKey": "sample string 15",
  "ReciepientKey": "sample string 16",
  "ProviderKey": "sample string 17",
  "StartDateTime": "2025-05-06T11:08:11.2889467+02:00",
  "EndDateTime": "2025-05-06T11:08:11.2889467+02:00",
  "OfferCheckKey": "sample string 20",
  "MaxDiscount": 1,
  "MinRecieptValue": 1,
  "LimitedForNewUser": true,
  "Entities": [
    {
      "EntityKey": "sample string 1",
      "EntityTypeId": 2
    },
    {
      "EntityKey": "sample string 1",
      "EntityTypeId": 2
    }
  ]
}

application/xml, text/xml

Sample:
<CreateCampaignModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Vouchers.Models"><Count>8</Count><EndDateTime>2025-05-06T11:08:11.2889467+02:00</EndDateTime><Entities><EntityModel><EntityKey>sample string 1</EntityKey><EntityTypeId>2</EntityTypeId></EntityModel><EntityModel><EntityKey>sample string 1</EntityKey><EntityTypeId>2</EntityTypeId></EntityModel></Entities><LimitedForNewUser>true</LimitedForNewUser><MaxDiscount>1</MaxDiscount><MinRecieptValue>1</MinRecieptValue><OfferCheckKey>sample string 20</OfferCheckKey><ProviderKey>sample string 17</ProviderKey><ReciepientKey>sample string 16</ReciepientKey><StartDateTime>2025-05-06T11:08:11.2889467+02:00</StartDateTime><TypeId>7</TypeId><areaKey>sample string 11</areaKey><campaignId>1</campaignId><campaignName>sample string 5</campaignName><cap>2</cap><cityKey>sample string 13</cityKey><componentKey>sample string 14</componentKey><countryKey>sample string 12</countryKey><createdBy>sample string 6</createdBy><name>sample string 4</name><productKey>sample string 15</productKey><repetitionType>9</repetitionType><share>3</share><specialityKey>sample string 10</specialityKey><usageLimit>1</usageLimit><usageLimitPerUser>1</usageLimitPerUser><value>1</value></CreateCampaignModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.