FoyerDevelopers

Generated · Live registry

upsell tools

5 tools in this domain, generated from the running registry.

All tool domains

upsell.delete_offer

writesconfirm

Hard-delete an upsell offer. ON DELETE CASCADE on upsell_bookings.offer_id removes any pending booking trails. Destructive — requires confirmation.

Input parameters

FieldTypeRequiredNotes
idstringyes

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true

upsell.list_bookings

read-only

List upsell booking trail for a stay (offered, offered_no_send, accepted, declined, charged, expired). When stayId is omitted, returns the latest 50 across the tenant.

Input parameters

FieldTypeRequiredNotes
stayIdstringno
limitintegernoDefault: 50

Output fields

FieldTypeRequiredNotes
bookingsarray of objectyes
bookings.idstringyes
bookings.stayIdstringyes
bookings.offerIdstringyes
bookings.statusstringyes
bookings.offeredAtstringyes
bookings.respondedAtstring · nullableyes

upsell.list_offers

read-only

List configured upsell offers for this tenant (active + inactive). Used by the operator to inspect what would be offered to guests 2h before check-in.

Input parameters

FieldTypeRequiredNotes
activeOnlybooleannoDefault: false

Output fields

FieldTypeRequiredNotes
offersarray of objectyes
offers.idstringyes
offers.typestringyes
offers.labelstringyes
offers.priceCentsintegeryes
offers.currencystringyes
offers.activebooleanyes
offers.sortOrderintegeryes

upsell.setBookingStatus

writes

Upsell: set booking status. Mutation — changes data. See the input schema for argument details.

Input parameters

FieldTypeRequiredNotes
bookingIdstringyes
statusenumyesOne of: offered, offered_no_send, accepted, declined, charged, expired

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true

upsell.upsert_offer

writes

Create or update an upsell offer. Pass id to update an existing row; omit it to create a new one. Price is in cents (integer).

Input parameters

FieldTypeRequiredNotes
idstringno
typeenumyesOne of: late_checkout, early_checkin, late_checkin, upgrade, extra_bed, other
labelstringyes
priceCentsintegeryes
currencystringnoDefault: "EUR"
activebooleannoDefault: true
sortOrderintegernoDefault: 0

Output fields

FieldTypeRequiredNotes
idstringyes