| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| GET POST | /ticketOrder/getDiscountCodeInfo |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Info | form | DiscountCodeInfo | No | |
| StatusCode | form | int | No | |
| Success | form | bool | No | |
| Message | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CodeId | form | int | No | |
| DiscountCodeType | form | int | No | |
| Code | form | string | No | |
| IsMultiUse | form | bool? | No | |
| MaxTickets | form | int? | No | |
| IsSingleUse | form | bool? | No | |
| IsForPhoneNumberOnly | form | bool? | No | |
| FullPhoneNumber | form | string | No | |
| IsUsed | form | bool? | No | |
| CodeTypeIsValid | form | bool? | No | |
| Name | form | string | No | |
| IsForEventId | form | bool? | No | |
| EventId | form | int? | No | |
| EventOwnerId | form | int? | No | |
| IsForTicketType | form | bool? | No | |
| TicketTypeId | form | int? | No | |
| IsFixedAmount | form | bool? | No | |
| FixedAmount | form | decimal? | No | |
| IsPercent | form | bool? | No | |
| Percent | form | decimal? | No | |
| IsValid | form | bool? | No | |
| ValidTicketTypeId | form | int | No | |
| DiscountCodeTypeId | form | int | No | |
| EventSeriesOwnerTicketType | form | int | No | |
| TicketTypeIsValid | form | bool? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketOrder/getDiscountCodeInfo HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
code: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
info:
{
codeId: 0,
discountCodeType: 0,
code: String,
isMultiUse: False,
maxTickets: 0,
isSingleUse: False,
isForPhoneNumberOnly: False,
fullPhoneNumber: String,
isUsed: False,
codeTypeIsValid: False,
name: String,
isForEventId: False,
eventId: 0,
eventOwnerId: 0,
isForTicketType: False,
ticketTypeId: 0,
isFixedAmount: False,
fixedAmount: 0,
isPercent: False,
percent: 0,
isValid: False,
validTicketTypeId: 0,
discountCodeTypeId: 0,
eventSeriesOwnerTicketType: 0,
ticketTypeIsValid: False
},
statusCode: 0,
success: False,
message: String
}