Skip to main content
POST
Cancel Ticket

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orderId
string<uuid>
required

Order identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

ticketId
string<uuid>
required

Ticket identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Response

OK

Ticket

ticketId
string<uuid>
required

Ticket identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

orderId
string<uuid>
required

Order identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3b"

cooperativeId
string<uuid>
required

Cooperative identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3b"

cooperative
object
required

Cooperative identity

transportOperatorId
string<uuid>
required

Transport operator identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3b"

transportOperator
object
required

Transport operator identity

tripId
string<uuid>
required

Trip identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3c"

tripItineraryId
string<uuid>
required

Trip itinerary identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3d"

seatId
string<uuid>
required

Seat identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3e"

seatTypeId
string<uuid>
required

Seat type identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3f"

passengerId
string<uuid>
required

Passenger identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f40"

seatPrice
integer
required

Seat price in cents

Example:

5000

tripItineraryPrice
integer
required

Trip itinerary price in cents

Example:

3000

baseAmount
integer
required

Base amount in cents

Example:

8000

benefitDiscountAmount
integer
required

Benefit discount amount in cents

Example:

0

discountAmount
integer
required

Discount amount in cents

Example:

0

creditAmount
integer
required

Credit amount in cents

Example:

0

paidAmount
integer
required

Paid amount in cents

Example:

8000

price
integer
required

Total price in cents

Example:

8000

qrCode
string
required

QR code

Example:

"TKT-20260412-A1B2C3"

code
string
required

Readable ticket code

Example:

"BIL-A1B2C3"

snapshot
object | null
required

Ticket snapshot at issuance

status
enum<string>
required

Ticket status

Available options:
VALID,
CANCELLED
Example:

"VALID"

trip
object
required

Trip identity

boardedAt
string<date-time> | null
required

Boarded at

Example:

"2026-01-01T00:00:00.000Z"

issuedAt
string<date-time>
required

Issued at

Example:

"2026-01-01T00:00:00.000Z"

createdAt
string<date-time>
required

Created at

Example:

"2026-01-01T00:00:00.000Z"

updatedAt
string<date-time>
required

Updated at

Example:

"2026-01-01T00:00:00.000Z"

passengerBenefitRequestId
string<uuid> | null

Passenger benefit request identifier

Example:

null

benefitDocumentValidationId
string<uuid> | null

Benefit document validation identifier

Example:

null

createdBy
string<uuid> | null

Created by

Example:

null

updatedBy
string<uuid> | null

Updated by

Example:

null