TicketUserServices

<back to all web services

PayoutBatchListRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
GET/payouts/batches
import Foundation
import ServiceStack

public class PayoutBatchListRequest : Codable
{
    public var limit:Int?

    required public init(){}
}

public class PayoutBatchListResult : Codable
{
    public var items:[IsbPayoutBatch] = []
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class IsbPayoutBatch : Codable
{
    public var id:Int?
    public var batchType:String?
    public var operationId:String?
    public var createdAt:Date?
    public var dateOfPayment:Date?
    public var rowCount:Int?
    public var totalAmount:Int?
    // @StringLength(Int32.max)
    public var requestXml:String?

    // @StringLength(Int32.max)
    public var responseXml:String?

    public var status:String?

    required public init(){}
}


Swift PayoutBatchListRequest 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.

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

{"items":[{"id":0,"batchType":"String","operationId":"String","createdAt":"0001-01-01T00:00:00.0000000","dateOfPayment":"0001-01-01T00:00:00.0000000","rowCount":0,"totalAmount":0,"requestXml":"String","responseXml":"String","status":"String"}],"statusCode":0,"message":"String"}