Skip to content

Board several riders at once (multiselect)

POST
/departures/{departure_id}/board
curl --request POST \
--url https://quikstik-core.fly.dev/departures/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/board \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \
--data '{ "participant_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "at_ms": 1, "by": "example" }'

Fan-out of the rider check-in over participant_ids; an id that is not on the departure is 404 and nothing is boarded. Returns per-rider results recorded | already | bad_transition | seat_released. Needs bookings.write.

departure_id
required
string format: uuid
x-tenant-id
required
string format: uuid

Tenant identifier (UUID).

Authn/authz semantics are intentionally TBD for this contract slice; this header exists to keep the contract explicitly multi-tenant from day 0.

Media typeapplication/json
object
participant_ids
required
Array<string>
>= 1 items
at_ms
integer format: int64
by
string
<= 80 characters

Example generated

{
"participant_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"at_ms": 1,
"by": "example"
}

OK.

Media typeapplication/json
object
key
additional properties
any

Example generated

{}

Missing or invalid session bearer token

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}

The session’s effect authority does not cover this operation

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}

participant_not_on_departure.

participant_ids_required, bad_body.

No durable backend is wired for this operation (fail-closed)

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}