client

POST /client/tickets/booking_by_codes

Booking by trip_id + station codes (station-operator POS). Resolves trip_segment_id internally and reserves the seats. The reservation must be confirmed with POST /tickets/:ticket_id/confirm before it expires. Auth: agent/staff.

Request

Request body application/x-www-form-urlencoded

ticket_type'one_way' required

Only one_way is supported

trip_idinteger required

Starmart trip ID

departure[code]string required

Departure station code

departure[code_system]'operator' | 'starmart'
arrival[code]string required

Arrival station code

arrival[code_system]'operator' | 'starmart'
departure_datestring date required
paxinteger required

Count passengers

number_seatsstring required

Number of seats comma separated

currency'MYR' | 'SGD' required
customer[name]string

Customer name

customer[phone]string

Customer phone

customer[ic]string

Customer IC number/passport

customer[email]string

Customer email

qr_check_inboolean

Retrieve a CTS boarding QR code. Adds the departure station QR fee per seat.

idempotency_keystring

Recommended for POS retries

Response

Booking by trip_id + station codes (station-operator POS). Resolves trip_segment_id internally and reserves the seats. The reservation must be confirmed with POST /tickets/:ticket_id/confirm before it expires. Auth: agent/staff.

Changes

No recorded changes to this operation across all 2 revisions of this API.