| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | Tickets.Add |
| POST | /EventSeating/ReseatWithinEvent |
|---|
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 MoveConfirmedSeatFailure:
from_seat_id: Optional[int] = None
to_seat_id: Optional[int] = None
reason: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReseatWithinEventResult:
ok: Optional[bool] = None
status_code: Optional[int] = None
message: Optional[str] = None
direction: Optional[str] = None
price_difference: Optional[Decimal] = None
reconciliation_skipped: Optional[bool] = None
reconciliation_log_id: Optional[int] = None
refund_amount: Optional[Decimal] = None
refund_payment_reference: Optional[str] = None
moved_seat_ids: Optional[List[int]] = None
failures: Optional[List[MoveConfirmedSeatFailure]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReseatMovePair:
from_seat_id: Optional[int] = None
to_seat_id: Optional[int] = None
to_owner_ticket_type_id: Optional[int] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReseatWithinEventRequest:
event_id: Optional[int] = None
moves: Optional[List[ReseatMovePair]] = None
expected_price_difference: Optional[Decimal] = None
skip_reconciliation: Optional[bool] = None
reason: Optional[str] = None
idempotency_key: Optional[str] = None
user_id: Optional[int] = None
Python ReseatWithinEventRequest 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 /EventSeating/ReseatWithinEvent HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"eventId":0,"moves":[{"fromSeatId":0,"toSeatId":0,"toOwnerTicketTypeId":0}],"expectedPriceDifference":0,"skipReconciliation":false,"reason":"String","idempotencyKey":"String","userId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ok":false,"statusCode":0,"message":"String","direction":"String","priceDifference":0,"reconciliationSkipped":false,"reconciliationLogId":0,"refundAmount":0,"refundPaymentReference":"String","movedSeatIds":[0],"failures":[{"fromSeatId":0,"toSeatId":0,"reason":"String"}]}