POST api/EventCoupon/CreateCoupon

Request Information

URI Parameters

None.

Body Parameters

EventCouponBindingModel
NameDescriptionTypeAdditional information
EventCouponId

integer

None.

EventId

integer

None.

EventTicketId

integer

None.

CouponCode

string

None.

DiscountPercentage

decimal number

None.

ValidFrom

date

None.

ValidUpto

date

None.

IsActive

boolean

None.

CreationDate

date

None.

isGroup

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EventCouponId": 1,
  "EventId": 1,
  "EventTicketId": 1,
  "CouponCode": "sample string 2",
  "DiscountPercentage": 1.1,
  "ValidFrom": "2025-12-29T17:36:02.2173676+05:30",
  "ValidUpto": "2025-12-29T17:36:02.2173676+05:30",
  "IsActive": true,
  "CreationDate": "2025-12-29T17:36:02.2173676+05:30",
  "isGroup": true
}

application/xml, text/xml

Sample:
<EventCouponBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/kcm_api_portal.Models">
  <CouponCode>sample string 2</CouponCode>
  <CreationDate>2025-12-29T17:36:02.2173676+05:30</CreationDate>
  <DiscountPercentage>1.1</DiscountPercentage>
  <EventCouponId>1</EventCouponId>
  <EventId>1</EventId>
  <EventTicketId>1</EventTicketId>
  <IsActive>true</IsActive>
  <ValidFrom>2025-12-29T17:36:02.2173676+05:30</ValidFrom>
  <ValidUpto>2025-12-29T17:36:02.2173676+05:30</ValidUpto>
  <isGroup>true</isGroup>
</EventCouponBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.