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}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class PayoutBatchGetRequest
{
    var id:Int? = null
}

open class PayoutBatchGetResult
{
    var batch:IsbPayoutBatch? = null
    var rows:ArrayList<IsbPayoutBatchRow> = ArrayList<IsbPayoutBatchRow>()
    var statusCode:Int? = null
    var message:String? = null
}

open class IsbPayoutBatch
{
    var id:Int? = null
    var batchType:String? = null
    var operationId:String? = null
    var createdAt:Date? = null
    var dateOfPayment:Date? = null
    var rowCount:Int? = null
    var totalAmount:Long? = null
    @StringLength(2147483647)
    var requestXml:String? = null

    @StringLength(2147483647)
    var responseXml:String? = null

    var status:String? = null
}

open class IsbPayoutBatchRow
{
    var id:Int? = null
    @References(IsbPayoutBatch.class)
    var batchId:Int? = null

    var eventId:Int? = null
    var eventOwnerId:Int? = null
    var kennitala:String? = null
    var bankAccount:String? = null
    var amount:Long? = null
    var reference:String? = null
    var status:String? = null
    var errorCode:String? = null
    var errorText:String? = null
}

Kotlin 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
}