Beds24 info codes used
InfoItems are Beds24’s per-booking key/value store. We use them as durable flags that survive workflow respawns.
Codes we WRITE
| Code | Value | Set by | Purpose |
|---|---|---|---|
CA_PRE_CHECKIN_COMPL | Y | forms-pre-checkin.ts on submit | Marks pre-check-in done; gates T-3/T-1/T-0 reminder skip |
CHECKINCOM | arrival-time | form-bridge pre_checkin | BA AA 287047 mirror |
CHECKIN | Y | form-bridge checkin | BA AA 287706 mirror |
CHECKOUT | Y | form-bridge checkout | BA AA 288621 mirror |
COHOST_NOTIFIED | Y | cohost-notify.ts after sending | Idempotency for TP front desk notify |
OTA_CONFIRMED | Y | channel-specific.ts after Airbnb confirm | Idempotency for Airbnb welcome |
PAID | yes | channel-specific.ts after BookingCom flag set | BA AA 291352 mirror |
CANCEL_CLEAN_SENT | Y | ensureBookingFlagWorkflow cancel branch | Idempotency for cleaner cancel notify |
EarlyCheckIn | Y | admin.ts addon-capture (early_checkin) | BA AA 289186 mirror |
Codes we READ
| Code | Read by | What it signals |
|---|---|---|
CA_PRE_CHECKIN_COMPL | T-3, T-1, T-0, A+1 chase | Guest completed pre-check-in form |
CHECKIN | A+1 chase | Guest submitted check-in form |
COHOST_NOTIFIED | runCohostNotify | Already sent — don’t re-notify |
OTA_CONFIRMED | runAirbnbConfirm | Already sent |
PAID | runBookingComPaidFlag | Already marked paid |
CANCEL_CLEAN_SENT | cancel branch | Already notified cleaners of cancellation |
EarlyCheckIn | (informational; not currently read) | Captured early-check-in payment |
Codes BA writes (we don’t manage)
These are written by BA’s auto-actions or manually; we don’t touch them:
CA_PRE_ARRIVAL_LINK— old ChargeAutomation URL (deprecated, our /forms/pre-checkin replaces this entirely)
How info codes get set
Via setInfoItem(env, token, bookingId, code, text) in
src/beds24/client.ts. Internally:
- Fetch booking + existing infoItems
- Filter out the existing item with this code (if any)
- Push the new
{code, text}entry updateBooking(env, token, bookingId, {infoItems: merged})
Replace-all semantics on the array, but the merge step preserves other codes.
Reading
getInfoItem(booking, code) returns the text for a code or null.
Source
src/beds24/client.ts—setInfoItem,getInfoItem,InfoItemtype