Tips tools
All tool areas. Each tool acts within your access.
Tips
get_tip_qr
Get the tip QR code for a product at a location: its page address, SVG, and whether tips by QR are enabled there.
Reads · Members of an organization · Needs products:read
Input
productIdThe product's id, from list_products
locationIdThe location's id, from get_setup
Output
urlWhat the QR code holds: the tip page, BOOKING_URL/<organization>/tip/<token>
svgThe QR code as an SVG document (black on white, with its quiet zone), for any size
productproduct.idproduct.namelocationlocation.idlocation.nameenabledWhether tipQr is on for the product there; while it's off, the code opens nothing (not found)
get_tip_report
Get paid tips per session, with the members who checked guests in; tips without a session count per location, product and local paid date. Refunds pending or succeeded reduce net. Totals stay separate by currency. Tips are never booking revenue.
Reads · Members of an organization · Needs revenue:read
Input
fromFirst local date, inclusive
toLast local date, inclusive, up to 366 days after
fromlocationIdThe location's id, from get_setup
productIdThe product's id, from list_products
Output
fromtocanExportWhether the organization's plan includes CSV export (Growth and up): the screen offers the download only then. The rows are the same either way
columnscolumns[]columns[].keycolumns[].labelcolumns[].kindrowsBy date, location, then session start (no session last), each currency on its own row
rows[]rows[].dateThe session's local date at its location; a tip with no session, the local date it was paid
rows[].locationIdrows[].locationrows[].productIdrows[].productrows[].sessionIdNull: the location's tips that day with no session
rows[].startsAtrows[].timeZoneThe session's location time zone; always sent, including rows without a session
rows[].checkedInByThe names of the members who checked guests in for the session (booking.checked_in), comma-separated; empty when none or no session
rows[].checkedInByMembersrows[].checkedInByMembers[]rows[].checkedInByMembers[].memberIdrows[].checkedInByMembers[].namerows[].currencyrows[].tipsPaid tips
rows[].amountMinor units (cents) in the location's currency
rows[].refundedRefunds pending or succeeded
rows[].netamount - refunded
totalsOne row for each currency, over every row
totals[]totals[].currencytotals[].tipstotals[].amountMinor units (cents) in the location's currency
totals[].refundedMinor units (cents) in the location's currency
totals[].netMinor units (cents) in the location's currency
list_tips
List tips, newest first, by local dates, location, product, session, booking or state. Amounts need orders:amounts; names and email addresses need customers:contact.
Reads · Members of an organization · Needs bookings:read
Input
fromFirst local date (at each tip's location) it was made, inclusive
toLast local date, inclusive
locationIdThe location's id, from get_setup
productIdThe product's id, from list_products
sessionIdThe session's id, from list_sessions
orderIdThe order's id, from list_bookings or list_orders
statebeforePage back: the last tip of the page before
limitThe most results to return (default 50)
Output
tipsNewest first
tips[]tips[].idtips[].statetips[].sourcetips[].amountNull without orders:amounts
tips[].refundedRefunds pending or succeeded. Null without orders:amounts
tips[].currencytips[].producttips[].product.idtips[].product.nametips[].locationtips[].location.idtips[].location.nametips[].sessionThe session it counts toward, or null
tips[].session.idtips[].session.startsAttips[].bookingA booking link's booking
tips[].booking.orderIdtips[].booking.codetips[].nameThe name the guest gave. Null without customers:contact
tips[].emailThe receipt's address. Null without customers:contact
tips[].paymentIdtips[].paidAttips[].createdAttips[].refundstips[].refunds[]tips[].refunds[].idrfd_…
tips[].refunds[].amountNull without orders:amounts
tips[].refunds[].statustips[].refunds[].reasontips[].refunds[].createdAtnextBefore
refund_tip
Refund part or all of a tip to the card it was paid with, for a recorded reason. The booking refund roles and caps apply per tip, including what this person has already refunded. Can't be undone. Returns a preview to confirm.
Changes · Members of an organization · Needs orders:amounts, refunds:create
Input
tipIdThe tip's id, from list_tips
amountMinor units. Left out: everything left to refund on it
reasonguest_request, service_issue, duplicate, goodwill, or other (or leave it out): staff's own reason, in note
note
Output
tiptip.idtip.statetip.sourcetip.amountNull without orders:amounts
tip.refundedRefunds pending or succeeded. Null without orders:amounts
tip.currencytip.producttip.product.idtip.product.nametip.locationtip.location.idtip.location.nametip.sessionThe session it counts toward, or null
tip.session.idtip.session.startsAttip.bookingA booking link's booking
tip.booking.orderIdtip.booking.codetip.nameThe name the guest gave. Null without customers:contact
tip.emailThe receipt's address. Null without customers:contact
tip.paymentIdtip.paidAttip.createdAttip.refundstip.refunds[]tip.refunds[].idrfd_…
tip.refunds[].amountNull without orders:amounts
tip.refunds[].statustip.refunds[].reasontip.refunds[].createdAtrefundrefund.idrfd_…
refund.amountNull without orders:amounts
refund.statusrefund.reasonrefund.createdAt