TicketUserServices

<back to all web services

EventPayoutApproveRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
POST/payouts/{Id}/approve
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
using TicketUserServices.ServiceModel.Types.Payouts;

namespace TicketUserServices.ServiceModel
{
    public partial class EventPayoutApproveRequest
    {
        public virtual int Id { get; set; }
        public virtual string Memo { get; set; }
    }

    public partial class EventPayoutGetResult
    {
        public virtual EventPayout Payout { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

}

namespace TicketUserServices.ServiceModel.Types.Payouts
{
    public partial class EventPayout
    {
        public virtual int Id { get; set; }
        [References(typeof(TicketUserServices.ServiceModel.Types.Event))]
        public virtual int EventId { get; set; }

        [References(typeof(TicketUserServices.ServiceModel.Types.EventOwner))]
        public virtual int EventOwnerId { get; set; }

        public virtual string State { get; set; }
        public virtual DateTime DefaultEligibleAt { get; set; }
        public virtual long GrossAmount { get; set; }
        public virtual long TransactionFee { get; set; }
        public virtual long PlatformCut { get; set; }
        public virtual long FreeTicketDeduction { get; set; }
        public virtual long MinimumFeeDeduction { get; set; }
        public virtual long ExtraCostDeduction { get; set; }
        public virtual long FastSettlementFee { get; set; }
        public virtual long OutstandingApplied { get; set; }
        public virtual long NetAmount { get; set; }
        public virtual bool FastSettlementRequested { get; set; }
        public virtual DateTime? FastSettlementRequestedAt { get; set; }
        public virtual string ApprovedBy { get; set; }
        public virtual DateTime? ApprovedAt { get; set; }
        [References(typeof(TicketUserServices.ServiceModel.Types.Payouts.IsbPayoutBatchRow))]
        public virtual int? IsbPayoutBatchRowId { get; set; }

        public virtual DateTime CreatedAt { get; set; }
        public virtual DateTime? UpdatedAt { get; set; }
        public virtual string Memo { get; set; }
    }

}

C# EventPayoutApproveRequest DTOs

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

HTTP + CSV

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

POST /payouts/{Id}/approve HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"id":0,"memo":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"payout":{"id":0,"eventId":0,"eventOwnerId":0,"state":"String","defaultEligibleAt":"0001-01-01T00:00:00.0000000","grossAmount":0,"transactionFee":0,"platformCut":0,"freeTicketDeduction":0,"minimumFeeDeduction":0,"extraCostDeduction":0,"fastSettlementFee":0,"outstandingApplied":0,"netAmount":0,"fastSettlementRequested":false,"fastSettlementRequestedAt":"0001-01-01T00:00:00.0000000","approvedBy":"String","approvedAt":"0001-01-01T00:00:00.0000000","isbPayoutBatchRowId":0,"createdAt":"0001-01-01T00:00:00.0000000","updatedAt":"0001-01-01T00:00:00.0000000","memo":"String"},"statusCode":0,"message":"String"}