Notifications tools
All tool areas. Each tool acts within your access.
Notifications
get_notifications
List every message Lokl sends for this organization (to guests, and to staff), each with the organization's setting that turns it on or off, the settings that time it, and how many places (an entity, location, product, product at a location, or session) set it differently. Change one with update_settings at the organization level.
Reads · Members of an organization · Needs settings:read
No input.
Output
guestsguests[]guests[].settingguests[].setting.keyguests[].setting.descriptionguests[].setting.helpPlain staff help in dashboard input units, or null when no help is provided. Optional in the schema, always sent.
guests[].setting.valueguests[].setting.sourceguests[].setting.source.levelguests[].setting.source.idguests[].setting.source.locationIdguests[].setting.overriddenHereguests[].setting.canSetHereguests[].setting.planFor a setting that turns on a feature of some plans only: the feature, the lowest plan that includes it, and whether the organization's plan does. Turning it on is refused when it doesn't; turning it off never is. Given by get_settings and update_settings
guests[].setting.plan.featureguests[].setting.plan.requiredTierguests[].setting.plan.includedguests[].setting.labelguests[].setting.setBelowHow many places below the organization set their own value for it
guests[].timingguests[].timing[]guests[].timing[].keyguests[].timing[].descriptionguests[].timing[].helpPlain staff help in dashboard input units, or null when no help is provided. Optional in the schema, always sent.
guests[].timing[].valueguests[].timing[].sourceguests[].timing[].source.levelguests[].timing[].source.idguests[].timing[].source.locationIdguests[].timing[].overriddenHereguests[].timing[].canSetHereguests[].timing[].planFor a setting that turns on a feature of some plans only: the feature, the lowest plan that includes it, and whether the organization's plan does. Turning it on is refused when it doesn't; turning it off never is. Given by get_settings and update_settings
guests[].timing[].plan.featureguests[].timing[].plan.requiredTierguests[].timing[].plan.includedguests[].timing[].labelguests[].timing[].setBelowHow many places below the organization set their own value for it
staffstaff[]staff[].notificationstaff[].labelstaff[].descriptionstaff[].recipientsstaff[].requiredstaff[].settingstaff[].setting.keystaff[].setting.descriptionstaff[].setting.helpPlain staff help in dashboard input units, or null when no help is provided. Optional in the schema, always sent.
staff[].setting.valuestaff[].setting.sourcestaff[].setting.source.levelstaff[].setting.source.idstaff[].setting.source.locationIdstaff[].setting.overriddenHerestaff[].setting.canSetHerestaff[].setting.planFor a setting that turns on a feature of some plans only: the feature, the lowest plan that includes it, and whether the organization's plan does. Turning it on is refused when it doesn't; turning it off never is. Given by get_settings and update_settings
staff[].setting.plan.featurestaff[].setting.plan.requiredTierstaff[].setting.plan.includedstaff[].setting.labelstaff[].setting.setBelowHow many places below the organization set their own value for it
staff[].timingstaff[].timing[]staff[].timing[].keystaff[].timing[].descriptionstaff[].timing[].helpPlain staff help in dashboard input units, or null when no help is provided. Optional in the schema, always sent.
staff[].timing[].valuestaff[].timing[].sourcestaff[].timing[].source.levelstaff[].timing[].source.idstaff[].timing[].source.locationIdstaff[].timing[].overriddenHerestaff[].timing[].canSetHerestaff[].timing[].planFor a setting that turns on a feature of some plans only: the feature, the lowest plan that includes it, and whether the organization's plan does. Turning it on is refused when it doesn't; turning it off never is. Given by get_settings and update_settings
staff[].timing[].plan.featurestaff[].timing[].plan.requiredTierstaff[].timing[].plan.includedstaff[].timing[].labelstaff[].timing[].setBelowHow many places below the organization set their own value for it
list_messages
List the messages Lokl sends (the send log), newest first: the notification (to guests: booking.confirmation, booking.reminder, booking.change, booking.menu_reminder and booking.menu_reminder_last, booking.day_of, booking.follow_up, booking.cancellation, booking.refund, booking.manage_link, booking.session_moved, booking.credit, booking.session_refund, booking.session_message; to staff: staff.refund_failed, staff.refund_exceeded (the card was refunded in the payment provider after part of it was already given back as a credit or gift certificate), and kitchen.sheet and kitchen.canceled, which belong to a session and are shown only across the organization), who it's to, when it was due and sent, and its status (scheduled, sent, skipped with the reason, failed). A skipped message's reason suppressed means its address bounced for good or complained (list_suppressions). Once sent, the email provider reports what happened to it: deliveryStatus (delivered, delayed, bounced with bounceType hard or soft, complained, failed) and when. Filter by order or status; page back with before. Which guest notifications go out, and the reminder's timing, are settings (confirmationEmail, reminderEmail, reminderHoursBefore, cancellationEmail, refundEmail, sessionMovedEmail, creditEmail, sessionRefundEmail, kitchenSheetEmail, changeEmail, menuReminderEmail with menuReminderDaysBefore, dayOfEmail with dayOfHour, followUpEmail with followUpHoursAfter and the googleReviewUrl and tripAdvisorReviewUrl it links).
Reads · Members of an organization · Needs bookings:read
Input
orderIdThe order's id, from list_bookings or list_orders
statuslimitThe most results to return (default 50)
beforeA message id; returns messages older than it
Output
messagesmessages[]messages[].idmessages[].notificationmessages[].channelmessages[].recipientNull without customers:contact
messages[].orderIdmessages[].bookingCodemessages[].statusmessages[].sendAtmessages[].sentAtmessages[].skipReasonmessages[].errorWhat went wrong, which can name the address. Null without customers:contact
messages[].deliveryStatusWhat the email provider reported about a sent message; null until it does
messages[].deliveryAtWhen the provider reported deliveryStatus
messages[].bounceTypeFor a bounce: hard (the address doesn't exist) or soft (a full mailbox, say)
messages[].deliveryDetailThe provider's short word for why it bounced or was delayed. Null without customers:contact
nextBefore