Skip to content

Check one rider in (idempotent) — the primitive

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

The RIDER is the check-in primitive. Appends rider_checked_in; the booking’s state becomes checked_in on the first rider (and the header shows checked_in_count/riders_count). units: [{resource_id}] assigns bikes at the same tap through the assignment guard (409 unit_busy inside units[].status). A repeat is {already: true}. A released seat after the departure started is 409 seat_released. Session, or an operator key scoped bookings.write.

participant_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
at_ms
integer format: int64
by
string
<= 80 characters
units
Array<object>
object
resource_id
required
string format: uuid

Example generated

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

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"
}

No such rider.

bad_transition, seat_released.

bad_body, bad_at_ms, bad_by.

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"
}