Check-in tools
All tool areas. Each tool acts within your access.
Check-in
check_in
Check guests in at the door: everyone, a count of the party (at least that many have arrived), or positions (these guests), on a booking by its order id. It's a state, not a step: it only ever marks arrivals, so sending it again, or another phone sending the same, changes nothing. A live call happens now, by the server's clock; a phone replaying a call it queued while offline sends queuedAt, when it was tapped, and the latest word on each guest wins, so a late replay never overrides what's been recorded since (skipped says who it left alone, and why). Runs at once, with no preview; needs an Idempotency-Key, and a retry with the same key answers with the first call's result (another input with that key is refused). undo_check_in takes it back. A booking with a balance due still checks in, and paymentDue says so. A canceled booking, or one not paid for yet, is refused. Returns the booking as find_check_in does, with the positions this call changed.
Acts right away · Members of an organization · Needs checkins:write
Input
orderIdThe order's id, from list_bookings or list_orders
queuedAtOnly for a call the phone queued while offline and is replaying now: when it was tapped, by the phone's clock (ISO 8601), within the last 12 hours and at most a minute ahead of the server, or refused. Leave it out of a live call, which happens at the server's time
everyoneThe whole party has arrived
countAt least this many of the party have arrived (the first not yet checked in)
positionsThese guests, by position (as
participantslists them)positions[]
Output
bookingAs list_bookings shows it: amounts null without orders:amounts, the guest a first name without customers:contact
booking.idbooking.codeThe booking code guests quote
booking.statusbooking.cancelReasonbooking.cancelNoteStaff's own words. Null without orders:amounts
booking.createdAtbooking.confirmedAtbooking.canceledAtbooking.customerbooking.customer.idbooking.customer.nameThe first name only, without customers:contact
booking.customer.emailNull without customers:contact
booking.customer.phoneNull without customers:contact, or when there's none
booking.customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
booking.productbooking.product.idbooking.product.namebooking.locationbooking.location.idbooking.location.namebooking.location.timeZonebooking.sessionbooking.session.idbooking.session.startsAtbooking.session.whenIn the location's time zone
booking.partySizebooking.currencybooking.totalNull without orders:amounts
booking.paidNull without orders:amounts
booking.refundedRefunded or on its way back. Null without orders:amounts
booking.keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
booking.refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
booking.refundsbooking.refunds[]booking.refunds[].idbooking.refunds[].amountNull without orders:amounts
booking.refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
booking.refunds[].reasonbooking.refunds[].noteStaff's own words. Null without orders:amounts
booking.refunds[].failureReasonbooking.refunds[].createdAtbooking.refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
booking.refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
booking.refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
booking.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
booking.bookingIdNull until it's booked. Always present
booking.bookerWho made it: a guest at checkout, or staff. Always present
booking.balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
booking.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
booking.paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
booking.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
partySizecheckedInGuests checked in so far
participantsOne per seat, by position; empty until it's booked (a checkout still waiting on payment)
participants[]participants[].positionThe guest's place in the party, as booking questions' answers number them. Positions never renumber: removing seats removes the highest positions not checked in, so a checked-in guest keeps theirs (it can be above the party's size)
participants[].nameNull when nobody's given one. The first name only, without customers:contact
participants[].checkedInAtWhen they arrived: the server's time, or the time the phone queued it for a call replayed after being offline
participants[].checkedInByThe member who checked them in (name, or email)
paymentDueSomething is still owing (send them to the front desk). Shown to anyone who can check them in; the amount is
balanceDuebalanceDueWhat's owing. Null without orders:amounts
canCheckInFalse for a canceled booking, or one whose payment hasn't gone through:
noticesays whichnoticeWhat the person at the door should know, in plain words: canceled, not paid for yet, or what's still owing
changedThe positions this call changed; empty when it changed nothing (already so, or something later won). A retry with the same Idempotency-Key answers with the first call's
changed[]skippedThe guests this call named but left as they were, because something later had already been recorded for them; empty otherwise
skipped[]skipped[].positionskipped[].reasonchanged_later: a check-in or undo for this guest was recorded after this call's time (a queued call replayed late), so it stands
skipped[].messageWhy, in plain words for the person at the door
find_check_in
Find a booking to check in: by the token its QR code carries (token: the code's t, or the whole address scanned), or by searching one session (sessionId, with search for a booking code or a guest's name; without it, every booking in the session). Each comes with its party, who's arrived, whether anything's still owing (paymentDue, and balanceDue with orders:amounts), and whether it can be checked in, with a plain notice (canceled, not paid for yet, still to pay). A booking with a balance due still checks in. A token for another business's booking, or one Lokl doesn't know, is refused in plain words. Only bookings you can check in; masked as get_booking masks.
Reads · Members of an organization · Needs checkins:write
Input
tokenWhat the QR code holds: its
t, or the whole addresssessionIdThe session's id, from list_sessions
searchWithin
sessionId: a booking code or a guest's namelimitThe most results to return (default 100)
Output
bookingsbookings[]bookings[].bookingAs list_bookings shows it: amounts null without orders:amounts, the guest a first name without customers:contact
bookings[].booking.idbookings[].booking.codeThe booking code guests quote
bookings[].booking.statusbookings[].booking.cancelReasonbookings[].booking.cancelNoteStaff's own words. Null without orders:amounts
bookings[].booking.createdAtbookings[].booking.confirmedAtbookings[].booking.canceledAtbookings[].booking.customerbookings[].booking.customer.idbookings[].booking.customer.nameThe first name only, without customers:contact
bookings[].booking.customer.emailNull without customers:contact
bookings[].booking.customer.phoneNull without customers:contact, or when there's none
bookings[].booking.customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
bookings[].booking.productbookings[].booking.product.idbookings[].booking.product.namebookings[].booking.locationbookings[].booking.location.idbookings[].booking.location.namebookings[].booking.location.timeZonebookings[].booking.sessionbookings[].booking.session.idbookings[].booking.session.startsAtbookings[].booking.session.whenIn the location's time zone
bookings[].booking.partySizebookings[].booking.currencybookings[].booking.totalNull without orders:amounts
bookings[].booking.paidNull without orders:amounts
bookings[].booking.refundedRefunded or on its way back. Null without orders:amounts
bookings[].booking.keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
bookings[].booking.refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
bookings[].booking.refundsbookings[].booking.refunds[]bookings[].booking.refunds[].idbookings[].booking.refunds[].amountNull without orders:amounts
bookings[].booking.refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
bookings[].booking.refunds[].reasonbookings[].booking.refunds[].noteStaff's own words. Null without orders:amounts
bookings[].booking.refunds[].failureReasonbookings[].booking.refunds[].createdAtbookings[].booking.refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
bookings[].booking.refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
bookings[].booking.refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
bookings[].booking.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
bookings[].booking.bookingIdNull until it's booked. Always present
bookings[].booking.bookerWho made it: a guest at checkout, or staff. Always present
bookings[].booking.balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
bookings[].booking.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
bookings[].booking.paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
bookings[].booking.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
bookings[].partySizebookings[].checkedInGuests checked in so far
bookings[].participantsOne per seat, by position; empty until it's booked (a checkout still waiting on payment)
bookings[].participants[]bookings[].participants[].positionThe guest's place in the party, as booking questions' answers number them. Positions never renumber: removing seats removes the highest positions not checked in, so a checked-in guest keeps theirs (it can be above the party's size)
bookings[].participants[].nameNull when nobody's given one. The first name only, without customers:contact
bookings[].participants[].checkedInAtWhen they arrived: the server's time, or the time the phone queued it for a call replayed after being offline
bookings[].participants[].checkedInByThe member who checked them in (name, or email)
bookings[].paymentDueSomething is still owing (send them to the front desk). Shown to anyone who can check them in; the amount is
balanceDuebookings[].balanceDueWhat's owing. Null without orders:amounts
bookings[].canCheckInFalse for a canceled booking, or one whose payment hasn't gone through:
noticesays whichbookings[].noticeWhat the person at the door should know, in plain words: canceled, not paid for yet, or what's still owing
undo_check_in
Take check-ins back on a booking: everyone, or positions (pass check_in's changed to undo that tap). Like check_in, a live call happens now, a replayed one at its queuedAt, and a check-in recorded after that stays (skipped says so). It runs at once (an Idempotency-Key, no preview), and a retry with the same key answers with the first call's result. Returns the booking as find_check_in does, with the positions this call changed.
Acts right away · Members of an organization · Needs checkins:write
Input
orderIdThe order's id, from list_bookings or list_orders
queuedAtOnly for a call the phone queued while offline and is replaying now: when it was tapped, by the phone's clock (ISO 8601), within the last 12 hours and at most a minute ahead of the server, or refused. Leave it out of a live call, which happens at the server's time
everyoneNobody in the party has arrived
positionsThese guests, by position (as
participantslists them)positions[]
Output
bookingAs list_bookings shows it: amounts null without orders:amounts, the guest a first name without customers:contact
booking.idbooking.codeThe booking code guests quote
booking.statusbooking.cancelReasonbooking.cancelNoteStaff's own words. Null without orders:amounts
booking.createdAtbooking.confirmedAtbooking.canceledAtbooking.customerbooking.customer.idbooking.customer.nameThe first name only, without customers:contact
booking.customer.emailNull without customers:contact
booking.customer.phoneNull without customers:contact, or when there's none
booking.customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
booking.productbooking.product.idbooking.product.namebooking.locationbooking.location.idbooking.location.namebooking.location.timeZonebooking.sessionbooking.session.idbooking.session.startsAtbooking.session.whenIn the location's time zone
booking.partySizebooking.currencybooking.totalNull without orders:amounts
booking.paidNull without orders:amounts
booking.refundedRefunded or on its way back. Null without orders:amounts
booking.keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
booking.refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
booking.refundsbooking.refunds[]booking.refunds[].idbooking.refunds[].amountNull without orders:amounts
booking.refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
booking.refunds[].reasonbooking.refunds[].noteStaff's own words. Null without orders:amounts
booking.refunds[].failureReasonbooking.refunds[].createdAtbooking.refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
booking.refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
booking.refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
booking.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
booking.bookingIdNull until it's booked. Always present
booking.bookerWho made it: a guest at checkout, or staff. Always present
booking.balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
booking.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
booking.paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
booking.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
partySizecheckedInGuests checked in so far
participantsOne per seat, by position; empty until it's booked (a checkout still waiting on payment)
participants[]participants[].positionThe guest's place in the party, as booking questions' answers number them. Positions never renumber: removing seats removes the highest positions not checked in, so a checked-in guest keeps theirs (it can be above the party's size)
participants[].nameNull when nobody's given one. The first name only, without customers:contact
participants[].checkedInAtWhen they arrived: the server's time, or the time the phone queued it for a call replayed after being offline
participants[].checkedInByThe member who checked them in (name, or email)
paymentDueSomething is still owing (send them to the front desk). Shown to anyone who can check them in; the amount is
balanceDuebalanceDueWhat's owing. Null without orders:amounts
canCheckInFalse for a canceled booking, or one whose payment hasn't gone through:
noticesays whichnoticeWhat the person at the door should know, in plain words: canceled, not paid for yet, or what's still owing
changedThe positions this call changed; empty when it changed nothing (already so, or something later won). A retry with the same Idempotency-Key answers with the first call's
changed[]skippedThe guests this call named but left as they were, because something later had already been recorded for them; empty otherwise
skipped[]skipped[].positionskipped[].reasonchanged_later: a check-in or undo for this guest was recorded after this call's time (a queued call replayed late), so it stands
skipped[].messageWhy, in plain words for the person at the door