Skip to main content
PUT
Refund Ticket

Authorizations

X-Api-Key
string
header
required

Path Parameters

ticketId
string
required

Ticket id

Body

application/json
amount
number
required

Amount to refund.

Example:

10

Response

OK

data
object

The wire contract for a ticket, AT THE LATEST VERSION.

This is the single source of truth: toTicketResponse is annotated to return it (so the code cannot drift from it without a compile error), and the OpenAPI spec + docs + breaking-change gate are all generated from it.

Dates are ISO-8601 strings — the real wire form res.json produces from the underlying Moment values.

Nested relations now carry precise types derived from the mappers: price reuses the shared TicketRatePrice contract, payment reuses Payment, refunds references RefundTicket, and the remaining nested objects (fees, supplements, answers, discount_code, remaining_breakdown, ticket_original, surcharge, warranty) are typed inline to match the exact shapes emitted by toTicketResponse.

success
boolean