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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;

namespace TicketUserServices.ServiceModel
{
    public partial class DiscountCodeReportRequest
    {
        public DiscountCodeReportRequest()
        {
            EventIds = new List<int>{};
        }

        public virtual int OwnerId { get; set; }
        public virtual List<int> EventIds { get; set; }
    }

    public partial class DiscountCodeReportResult
    {
        public DiscountCodeReportResult()
        {
            Items = new List<DiscountCodeReportRow>{};
        }

        public virtual List<DiscountCodeReportRow> Items { get; set; }
        public virtual int TicketCountTotal { get; set; }
        public virtual decimal AmountDiscountedTotal { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

    public partial class DiscountCodeReportRow
    {
        public virtual string Code { get; set; }
        public virtual int DiscountCodeTypeId { get; set; }
        public virtual string TypeName { get; set; }
        public virtual bool IsPercent { get; set; }
        public virtual decimal? Percent { get; set; }
        public virtual decimal? FixedAmount { get; set; }
        public virtual int Redemptions { get; set; }
        public virtual int TicketCount { get; set; }
        public virtual decimal AmountDiscounted { get; set; }
        public virtual int ReversedRedemptions { get; set; }
        public virtual decimal ReversedAmount { get; set; }
        public virtual DateTime? FirstUsedAt { get; set; }
        public virtual DateTime? LastUsedAt { get; set; }
    }

}

C# DiscountCodeReportRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ownerId: 0,
	eventIds: 
	[
		0
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
			lastUsedAt: 0001-01-01
		}
	],
	ticketCountTotal: 0,
	amountDiscountedTotal: 0,
	statusCode: 0,
	message: String
}