TicketUserServices

<back to all web services

SelfServicePendingTransferRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/pendingThe buyer's unpaid exchange for this ticket, if one is in flight
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SelfServiceTransferResultBase:
    ok: Optional[bool] = None
    status_code: Optional[int] = None
    code: Optional[str] = None
    message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SelfServicePendingTransfer:
    transfer_log_id: Optional[int] = None
    to_event_id: Optional[int] = None
    to_event_name: Optional[str] = None
    to_event_time_of_event: Optional[datetime.datetime] = None
    to_ticket_type_name: Optional[str] = None
    topup_amount_isk: Optional[Decimal] = None
    session_token: Optional[str] = None
    payment_link_url: Optional[str] = None
    expires_at: Optional[datetime.datetime] = None
    assigned_seat_id: Optional[int] = None
    assigned_seat_label: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SelfServicePendingTransferResult(SelfServiceTransferResultBase):
    has_pending: Optional[bool] = None
    pending: Optional[SelfServicePendingTransfer] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SelfServicePendingTransferRequest:
    ticket_token_id: Optional[str] = None
    buyer_phone: Optional[str] = None

Python SelfServicePendingTransferRequest 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.

POST /selfService/transferTicket/pending HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ticketTokenId: String,
	buyerPhone: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	hasPending: False,
	pending: 
	{
		transferLogId: 0,
		toEventId: 0,
		toEventName: String,
		toEventTimeOfEvent: 0001-01-01,
		toTicketTypeName: String,
		topupAmountIsk: 0,
		sessionToken: String,
		paymentLinkUrl: String,
		expiresAt: 0001-01-01,
		assignedSeatId: 0,
		assignedSeatLabel: String
	},
	ok: False,
	statusCode: 0,
	code: String,
	message: String
}