TicketUserServices

<back to all web services

EventPayoutCancelRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
POST/payouts/{Id}/cancel
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 EventPayoutCancelRequest
            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 EventPayoutCancelRequest DTOs

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

HTTP + XML

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

POST /payouts/{Id}/cancel HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventPayoutCancelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Id>0</Id>
  <Memo>String</Memo>
</EventPayoutCancelRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventPayoutGetResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <Payout xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types.Payouts">
    <d2p1:ApprovedAt>0001-01-01T00:00:00</d2p1:ApprovedAt>
    <d2p1:ApprovedBy>String</d2p1:ApprovedBy>
    <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
    <d2p1:DefaultEligibleAt>0001-01-01T00:00:00</d2p1:DefaultEligibleAt>
    <d2p1:EventId>0</d2p1:EventId>
    <d2p1:EventOwnerId>0</d2p1:EventOwnerId>
    <d2p1:ExtraCostDeduction>0</d2p1:ExtraCostDeduction>
    <d2p1:FastSettlementFee>0</d2p1:FastSettlementFee>
    <d2p1:FastSettlementRequested>false</d2p1:FastSettlementRequested>
    <d2p1:FastSettlementRequestedAt>0001-01-01T00:00:00</d2p1:FastSettlementRequestedAt>
    <d2p1:FreeTicketDeduction>0</d2p1:FreeTicketDeduction>
    <d2p1:GrossAmount>0</d2p1:GrossAmount>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:IsbPayoutBatchRowId>0</d2p1:IsbPayoutBatchRowId>
    <d2p1:Memo>String</d2p1:Memo>
    <d2p1:MinimumFeeDeduction>0</d2p1:MinimumFeeDeduction>
    <d2p1:NetAmount>0</d2p1:NetAmount>
    <d2p1:OutstandingApplied>0</d2p1:OutstandingApplied>
    <d2p1:PlatformCut>0</d2p1:PlatformCut>
    <d2p1:State>String</d2p1:State>
    <d2p1:TransactionFee>0</d2p1:TransactionFee>
    <d2p1:UpdatedAt>0001-01-01T00:00:00</d2p1:UpdatedAt>
  </Payout>
  <StatusCode>0</StatusCode>
</EventPayoutGetResult>