| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /DiscountCodeReport |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class DiscountCodeReportRequest
{
var ownerId:Int? = null
var eventIds:ArrayList<Int> = ArrayList<Int>()
}
open class DiscountCodeReportResult
{
var items:ArrayList<DiscountCodeReportRow> = ArrayList<DiscountCodeReportRow>()
var ticketCountTotal:Int? = null
var amountDiscountedTotal:BigDecimal? = null
var statusCode:Int? = null
var message:String? = null
}
open class DiscountCodeReportRow
{
var code:String? = null
var discountCodeTypeId:Int? = null
var typeName:String? = null
var isPercent:Boolean? = null
var percent:BigDecimal? = null
var fixedAmount:BigDecimal? = null
var redemptions:Int? = null
var ticketCount:Int? = null
var amountDiscounted:BigDecimal? = null
var reversedRedemptions:Int? = null
var reversedAmount:BigDecimal? = null
var firstUsedAt:Date? = null
var lastUsedAt:Date? = null
}
Kotlin 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
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"}