| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /ticketOrder/previewDiscount |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | body | string | No | |
| EventId | body | int? | No | |
| FullPhoneNumber | body | string | No | |
| OrderDetails | body | List<TicketDetails> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int | No | |
| TicketId | form | int | No | |
| EventSeriesTicketType | form | int? | No | |
| EventSeriesOwnerTicketType | form | int? | No | |
| TicketPrice | form | decimal | No | |
| TotalPrice | form | decimal | No | |
| Count | form | int | No | |
| TicketColor | form | string | No | |
| ShowUsedTickets | form | bool? | No | |
| TicketName | form | string | No | |
| TicketDisplayString | form | string | No | |
| TicketDetailsTransferredFrom | form | int? | No | |
| TeamPassId | form | int? | No | |
| IsSpecialTicket | form | bool? | No | |
| SpecialTicketId | form | string | No | |
| JustChangedBySQL | form | bool? | No | |
| SQLJustChangedTimeStamp | form | DateTime? | No | |
| Currency | form | string | No | |
| DiscountCode | form | string | No | |
| TotalDiscount | form | decimal? | No | |
| TotalAmountBeforeDiscount | form | decimal? | No | |
| TicketPriceBeforeDiscount | form | decimal? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Status | form | string | No | |
| Reason | form | string | No | |
| Message | form | LocalizedMessage | No | |
| DiscountCodeId | form | int? | No | |
| DiscountCodeTypeId | form | int? | No | |
| Discount | form | DiscountSummary | No | |
| Lines | form | List<DiscountLineResult> | No | |
| SubtotalBefore | form | decimal | No | |
| SubtotalAfter | form | decimal | No | |
| TotalSavings | form | decimal | No | |
| Currency | form | string | No | |
| StatusCode | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Is | form | string | No | |
| En | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | form | string | No | |
| Value | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TicketTypeId | form | int? | No | |
| Count | form | int | No | |
| Applied | form | bool | No | |
| UnitBefore | form | decimal | No | |
| UnitAfter | form | decimal | No | |
| LineBefore | form | decimal | No | |
| LineAfter | form | decimal | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketOrder/previewDiscount HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"code":"String","eventId":0,"fullPhoneNumber":"String","orderDetails":[{"id":0,"ticketId":0,"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"ticketPrice":0,"totalPrice":0,"count":0,"ticketColor":"String","showUsedTickets":false,"ticketName":"String","ticketDisplayString":"String","ticketDetailsTransferredFrom":0,"teamPassId":0,"isSpecialTicket":false,"specialTicketId":"String","justChangedBySQL":false,"sqlJustChangedTimeStamp":"0001-01-01T00:00:00.0000000","currency":"String","discountCode":"String","totalDiscount":0,"totalAmountBeforeDiscount":0,"ticketPriceBeforeDiscount":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"status":"String","reason":"String","message":{"is":"String","en":"String"},"discountCodeId":0,"discountCodeTypeId":0,"discount":{"type":"String","value":0},"lines":[{"ticketTypeId":0,"count":0,"applied":false,"unitBefore":0,"unitAfter":0,"lineBefore":0,"lineAfter":0}],"subtotalBefore":0,"subtotalAfter":0,"totalSavings":0,"currency":"String","statusCode":0}