| POST | /selfService/transferTicket/confirm | Execute a buyer-initiated ticket exchange |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class SelfServiceTransferConfirmRequest
{
var ticketTokenId:String? = null
var buyerPhone:String? = null
var toEventId:Int? = null
var toOwnerTicketTypeId:Int? = null
var toSeriesTicketTypeId:Int? = null
var toSeatId:Int? = null
var idempotencyKey:String? = null
var expectedPriceDifference:BigDecimal? = null
}
open class SelfServiceTransferConfirmResult : SelfServiceTransferResultBase()
{
var transferLogId:Int? = null
var newTicketTokenId:String? = null
var direction:String? = null
var priceDifference:BigDecimal? = null
var originalTicketPrice:BigDecimal? = null
var targetTicketPrice:BigDecimal? = null
var assignedSeatId:Int? = null
var assignedSeatLabel:String? = null
var topup:TransferTopupInstruction? = null
}
open class SelfServiceTransferResultBase
{
var ok:Boolean? = null
var statusCode:Int? = null
var code:String? = null
var message:String? = null
}
open class TransferTopupInstruction
{
var amountIsk:BigDecimal? = null
var paymentLinkUrl:String? = null
var sessionToken:String? = null
var expiresAt:Date? = null
}
Kotlin SelfServiceTransferConfirmRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /selfService/transferTicket/confirm HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ticketTokenId":"String","buyerPhone":"String","toEventId":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0,"toSeatId":0,"idempotencyKey":"String","expectedPriceDifference":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"transferLogId":0,"newTicketTokenId":"String","direction":"String","priceDifference":0,"originalTicketPrice":0,"targetTicketPrice":0,"assignedSeatId":0,"assignedSeatLabel":"String","topup":{"amountIsk":0,"paymentLinkUrl":"String","sessionToken":"String","expiresAt":"0001-01-01T00:00:00.0000000"},"ok":false,"statusCode":0,"code":"String","message":"String"}