| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /TransferTicketToEvent | Transfer a ticket to a different event with automatic price reconciliation |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TicketTokenId | body | string | No | |
| ToEventId | body | int | No | |
| UserId | body | int? | No | |
| Reason | body | string | No | |
| IdempotencyKey | body | string | No | |
| ExpectedPriceDifference | body | decimal | No | |
| ToOwnerTicketTypeId | body | int? | No | |
| ToSeriesTicketTypeId | body | int? | No | |
| ToSeatId | body | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Ok | form | bool | No | |
| StatusCode | form | int | No | |
| Code | form | string | No | |
| Message | form | string | No | |
| TransferLogId | form | int? | No | |
| NewTicketTokenId | form | string | No | |
| Direction | form | string | No | |
| PriceDifference | form | decimal? | No | |
| OriginalTicketPrice | form | decimal? | No | |
| TargetTicketPrice | form | decimal? | No | |
| SourceEventPaidOut | form | bool? | No | |
| OutstandingCostHandledByServer | form | bool? | No | |
| Refund | form | TransferRefundInstruction | No | |
| Topup | form | TransferTopupInstruction | No | |
| Quote | form | TransferTicketQuoteResult | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AmountIsk | form | decimal | No | |
| PaymentReference | form | string | No | |
| Instruction | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AmountIsk | form | decimal | No | |
| PaymentLinkUrl | form | string | No | |
| SessionToken | form | string | No | |
| ExpiresAt | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Ok | form | bool | No | |
| StatusCode | form | int | No | |
| Code | form | string | No | |
| Message | form | string | No | |
| From | form | TransferQuoteEventSide | No | |
| To | form | TransferQuoteEventSide | No | |
| PriceDifference | form | decimal | No | |
| Direction | form | string | No | |
| RefundableViaBorgun | form | bool | No | |
| AfterPayout | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| EventId | form | int | No | |
| EventName | form | string | No | |
| TimeOfEvent | form | DateTime? | No | |
| TicketPrice | form | decimal | No | |
| PaymentMethodId | form | string | No | |
| PaymentReference | form | string | No | |
| AvailableSeats | form | int? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /TransferTicketToEvent HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ticketTokenId: String,
toEventId: 0,
userId: 0,
reason: String,
idempotencyKey: String,
expectedPriceDifference: 0,
toOwnerTicketTypeId: 0,
toSeriesTicketTypeId: 0,
toSeatId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ok: False,
statusCode: 0,
code: String,
message: String,
transferLogId: 0,
newTicketTokenId: String,
direction: String,
priceDifference: 0,
originalTicketPrice: 0,
targetTicketPrice: 0,
sourceEventPaidOut: False,
outstandingCostHandledByServer: False,
refund:
{
amountIsk: 0,
paymentReference: String,
instruction: String
},
topup:
{
amountIsk: 0,
paymentLinkUrl: String,
sessionToken: String,
expiresAt: 0001-01-01
},
quote:
{
ok: False,
statusCode: 0,
code: String,
message: String,
from:
{
eventId: 0,
eventName: String,
timeOfEvent: 0001-01-01,
ticketPrice: 0,
paymentMethodId: String,
paymentReference: String,
availableSeats: 0
},
to:
{
eventId: 0,
eventName: String,
timeOfEvent: 0001-01-01,
ticketPrice: 0,
paymentMethodId: String,
paymentReference: String,
availableSeats: 0
},
priceDifference: 0,
direction: String,
refundableViaBorgun: False,
afterPayout: False
}
}