POST api/TicketingAPI/AddCoupon

Request Information

URI Parameters

None.

Body Parameters

CouponsUpdateModel
NameDescriptionTypeAdditional information
Id

integer

None.

EventID

integer

None.

EventName

string

None.

CouponCode

string

None.

Discount

string

None.

ExpiryDate

string

None.

CreateOn

string

None.

CreatedBy

string

None.

Status

string

None.

MessageResponse

EventReponse

None.

TicketCategoryID

integer

None.

TicketCategory

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "EventID": 2,
  "EventName": "sample string 3",
  "CouponCode": "sample string 4",
  "Discount": "sample string 5",
  "ExpiryDate": "sample string 6",
  "CreateOn": "sample string 7",
  "CreatedBy": "sample string 8",
  "Status": "sample string 9",
  "MessageResponse": {
    "ResponseId": 1,
    "ReturnMessage": "sample string 2"
  },
  "TicketCategoryID": 10,
  "TicketCategory": "sample string 11"
}

application/xml, text/xml

Sample:
<CouponsUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Musika.Models">
  <CouponCode>sample string 4</CouponCode>
  <CreateOn>sample string 7</CreateOn>
  <CreatedBy>sample string 8</CreatedBy>
  <Discount>sample string 5</Discount>
  <EventID>2</EventID>
  <EventName>sample string 3</EventName>
  <ExpiryDate>sample string 6</ExpiryDate>
  <Id>1</Id>
  <MessageResponse>
    <ResponseId>1</ResponseId>
    <ReturnMessage>sample string 2</ReturnMessage>
  </MessageResponse>
  <Status>sample string 9</Status>
  <TicketCategory>sample string 11</TicketCategory>
  <TicketCategoryID>10</TicketCategoryID>
</CouponsUpdateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AdminResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

RetMessage

string

None.

ResponseType

string

None.

ID

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "RetMessage": "sample string 2",
  "ResponseType": "sample string 3",
  "ID": "sample string 4"
}

application/xml, text/xml

Sample:
<AdminResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Musika.Library.API">
  <ID>sample string 4</ID>
  <ResponseType>sample string 3</ResponseType>
  <RetMessage>sample string 2</RetMessage>
  <Status>true</Status>
</AdminResponse>