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
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports TicketUserServices.ServiceModel.Types.Payouts

Namespace Global

    Namespace TicketUserServices.ServiceModel

        Public Partial Class EventPayoutApproveRequest
            Public Overridable Property Id As Integer
            Public Overridable Property Memo As String
        End Class

        Public Partial Class EventPayoutGetResult
            Public Overridable Property Payout As EventPayout
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types.Payouts

        Public Partial Class EventPayout
            Public Overridable Property Id As Integer
            <References(GetType(Event))>
            Public Overridable Property EventId As Integer

            <References(GetType(EventOwner))>
            Public Overridable Property EventOwnerId As Integer

            Public Overridable Property State As String
            Public Overridable Property DefaultEligibleAt As Date
            Public Overridable Property GrossAmount As Long
            Public Overridable Property TransactionFee As Long
            Public Overridable Property PlatformCut As Long
            Public Overridable Property FreeTicketDeduction As Long
            Public Overridable Property MinimumFeeDeduction As Long
            Public Overridable Property ExtraCostDeduction As Long
            Public Overridable Property FastSettlementFee As Long
            Public Overridable Property OutstandingApplied As Long
            Public Overridable Property NetAmount As Long
            Public Overridable Property FastSettlementRequested As Boolean
            Public Overridable Property FastSettlementRequestedAt As Nullable(Of Date)
            Public Overridable Property ApprovedBy As String
            Public Overridable Property ApprovedAt As Nullable(Of Date)
            <References(GetType(IsbPayoutBatchRow))>
            Public Overridable Property IsbPayoutBatchRowId As Nullable(Of Integer)

            Public Overridable Property CreatedAt As Date
            Public Overridable Property UpdatedAt As Nullable(Of Date)
            Public Overridable Property Memo As String
        End Class
    End Namespace
End Namespace

VB.NET EventPayoutApproveRequest 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 /payouts/{Id}/approve HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

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