TicketUserServices

<back to all web services

DiscountCodeReportRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/DiscountCodeReport
namespace TicketUserServices.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type DiscountCodeReportRow() = 
        member val Code:String = null with get,set
        member val DiscountCodeTypeId:Int32 = new Int32() with get,set
        member val TypeName:String = null with get,set
        member val IsPercent:Boolean = new Boolean() with get,set
        member val Percent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val FixedAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val Redemptions:Int32 = new Int32() with get,set
        member val TicketCount:Int32 = new Int32() with get,set
        member val AmountDiscounted:Decimal = new Decimal() with get,set
        member val ReversedRedemptions:Int32 = new Int32() with get,set
        member val ReversedAmount:Decimal = new Decimal() with get,set
        member val FirstUsedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LastUsedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type DiscountCodeReportResult() = 
        member val Items:ResizeArray<DiscountCodeReportRow> = new ResizeArray<DiscountCodeReportRow>() with get,set
        member val TicketCountTotal:Int32 = new Int32() with get,set
        member val AmountDiscountedTotal:Decimal = new Decimal() with get,set
        member val StatusCode:Int32 = new Int32() with get,set
        member val Message:String = null with get,set

    [<AllowNullLiteral>]
    type DiscountCodeReportRequest() = 
        member val OwnerId:Int32 = new Int32() with get,set
        member val EventIds:ResizeArray<Int32> = new ResizeArray<Int32>() with get,set

F# DiscountCodeReportRequest DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /DiscountCodeReport HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ownerId":0,"eventIds":[0]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"items":[{"code":"String","discountCodeTypeId":0,"typeName":"String","isPercent":false,"percent":0,"fixedAmount":0,"redemptions":0,"ticketCount":0,"amountDiscounted":0,"reversedRedemptions":0,"reversedAmount":0,"firstUsedAt":"0001-01-01T00:00:00.0000000","lastUsedAt":"0001-01-01T00:00:00.0000000"}],"ticketCountTotal":0,"amountDiscountedTotal":0,"statusCode":0,"message":"String"}