TicketUserServices

<back to all web services

PayoutBatchGetRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
GET/payouts/batches/{Id}
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 PayoutBatchGetRequest
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class PayoutBatchGetResult
            Public Sub New()
                Rows = New List(Of IsbPayoutBatchRow)
            End Sub

            Public Overridable Property Batch As IsbPayoutBatch
            Public Overridable Property Rows As List(Of IsbPayoutBatchRow)
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types.Payouts

        Public Partial Class IsbPayoutBatch
            Public Overridable Property Id As Integer
            Public Overridable Property BatchType As String
            Public Overridable Property OperationId As String
            Public Overridable Property CreatedAt As Date
            Public Overridable Property DateOfPayment As Nullable(Of Date)
            Public Overridable Property RowCount As Integer
            Public Overridable Property TotalAmount As Long
            <StringLength(Integer.MaxValue)>
            Public Overridable Property RequestXml As String

            <StringLength(Integer.MaxValue)>
            Public Overridable Property ResponseXml As String

            Public Overridable Property Status As String
        End Class

        Public Partial Class IsbPayoutBatchRow
            Public Overridable Property Id As Integer
            <References(GetType(IsbPayoutBatch))>
            Public Overridable Property BatchId As Integer

            Public Overridable Property EventId As Nullable(Of Integer)
            Public Overridable Property EventOwnerId As Nullable(Of Integer)
            Public Overridable Property Kennitala As String
            Public Overridable Property BankAccount As String
            Public Overridable Property Amount As Long
            Public Overridable Property Reference As String
            Public Overridable Property Status As String
            Public Overridable Property ErrorCode As String
            Public Overridable Property ErrorText As String
        End Class
    End Namespace
End Namespace

VB.NET PayoutBatchGetRequest 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.

GET /payouts/batches/{Id} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	batch: 
	{
		id: 0,
		batchType: String,
		operationId: String,
		createdAt: 0001-01-01,
		dateOfPayment: 0001-01-01,
		rowCount: 0,
		totalAmount: 0,
		requestXml: String,
		responseXml: String,
		status: String
	},
	rows: 
	[
		{
			id: 0,
			batchId: 0,
			eventId: 0,
			eventOwnerId: 0,
			kennitala: String,
			bankAccount: String,
			amount: 0,
			reference: String,
			status: String,
			errorCode: String,
			errorText: String
		}
	],
	statusCode: 0,
	message: String
}