Offline payments tools
All tool areas. Each tool acts within your access.
Offline payments
mark_refund_given
Mark a refund Lokl owes a guest at the desk as given back: when a session is called off or moved with refunds, the part of a booking paid at the desk (cash, debit, an e-transfer, a cheque, the venue's card machine, a voucher) is owed back, shown in the Inbox's Needs action (list_inbox, kind desk_refund, with its refundId). Hand it over the same way it was paid, then mark it here: it records who gave it back and when, and leaves Needs action. Needs refunds:create and orders:amounts where the booking is. Undo puts it back as owed within 15 minutes, until something else is paid or refunded on the booking. Returns a preview to confirm.
Changes · Members of an organization · Needs orders:amounts, refunds:create
Input
refundIdThe refund's id
Output
refundrefund.idThe refund, rfd_…
refund.orderIdrefund.tenderHow the payment was made, and so how it's given back
refund.amountMinor units (cents) in the location's currency
refund.currencyrefund.statussucceeded once given back; pending while it's owed
refund.givenByThe member (usr_…) who gave it back
refund.givenAtorderThe booking as list_bookings shows it, after it
order.idorder.codeThe booking code guests quote
order.statusorder.cancelReasonorder.cancelNoteStaff's own words. Null without orders:amounts
order.createdAtorder.confirmedAtorder.canceledAtorder.customerorder.customer.idorder.customer.nameThe first name only, without customers:contact
order.customer.emailNull without customers:contact
order.customer.phoneNull without customers:contact, or when there's none
order.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
order.productorder.product.idorder.product.nameorder.locationorder.location.idorder.location.nameorder.location.timeZoneorder.sessionorder.session.idorder.session.startsAtorder.session.whenIn the location's time zone
order.partySizeorder.currencyorder.totalNull without orders:amounts
order.paidNull without orders:amounts
order.refundedRefunded or on its way back. Null without orders:amounts
order.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
order.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
order.refundsorder.refunds[]order.refunds[].idorder.refunds[].amountNull without orders:amounts
order.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
order.refunds[].reasonorder.refunds[].noteStaff's own words. Null without orders:amounts
order.refunds[].failureReasonorder.refunds[].createdAtorder.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
order.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
order.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
order.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
order.bookingIdNull until it's booked. Always present
order.bookerWho made it: a guest at checkout, or staff. Always present
order.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
order.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
order.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
order.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
record_payment
Record money taken outside Lokl's online checkout against a confirmed booking: a card on the venue's own machine (card_terminal), cash, debit, an e-transfer, a cheque, or a third party's voucher (Costco, WagJag: give its issuer and its code in reference). amount in minor units, at most the balance due (list_bookings' balanceDue); a reference (an e-transfer's, a cheque's number, a terminal's receipt number) is optional except for a voucher; note is staff's own, never shown to the guest. Needs bookings:write and orders:amounts where the booking is; someone who may book walk-ins there (bookings:write and products:read) without amounts may record up to what that booking owes. A checkout still waiting on its online payment, a canceled order, and a gift certificate purchase are refused. The guest is emailed a receipt when the booking has an address. Undo removes it within 15 minutes, until it's refunded or something else is paid or refunded on the booking. Returns a preview to confirm; applying it is refused if what's owed has changed since.
Changes · Members of an organization · Needs bookings:write
Input
orderIdThe order's id, from list_bookings or list_orders
tendercard_terminal: the venue's own card machine (card at the desk); cash; debit; e_transfer; cheque; voucher: a third party's (Costco, WagJag), with its issuer and code
amountMinor units in the order's currency, at most the balance due
referenceAn e-transfer's reference, a cheque's number, a voucher's code (required for voucher), or a terminal's receipt number
issuerWho issued a voucher, such as Costco or WagJag. Required for voucher, and only for it
noteStaff's own note. Never shown to the guest
invoiceIdThe invoice it pays (ivc_…). Required when the booking has more than one invoice with something owed; with one, it goes to that one. The amount is capped by both the invoice's balance and the booking's
Output
paymentpayment.idThe payment, pay_…
payment.orderIdpayment.tenderpayment.amountMinor units (cents) in the location's currency
payment.currencypayment.referencepayment.issuerpayment.noteStaff's own note, never shown to the guest
payment.recordedByThe member's user id (usr_…) who recorded it
payment.createdAtorderThe booking as list_bookings shows it, after the payment: balanceDue and paymentStatus
order.idorder.codeThe booking code guests quote
order.statusorder.cancelReasonorder.cancelNoteStaff's own words. Null without orders:amounts
order.createdAtorder.confirmedAtorder.canceledAtorder.customerorder.customer.idorder.customer.nameThe first name only, without customers:contact
order.customer.emailNull without customers:contact
order.customer.phoneNull without customers:contact, or when there's none
order.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
order.productorder.product.idorder.product.nameorder.locationorder.location.idorder.location.nameorder.location.timeZoneorder.sessionorder.session.idorder.session.startsAtorder.session.whenIn the location's time zone
order.partySizeorder.currencyorder.totalNull without orders:amounts
order.paidNull without orders:amounts
order.refundedRefunded or on its way back. Null without orders:amounts
order.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
order.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
order.refundsorder.refunds[]order.refunds[].idorder.refunds[].amountNull without orders:amounts
order.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
order.refunds[].reasonorder.refunds[].noteStaff's own words. Null without orders:amounts
order.refunds[].failureReasonorder.refunds[].createdAtorder.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
order.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
order.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
order.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
order.bookingIdNull until it's booked. Always present
order.bookerWho made it: a guest at checkout, or staff. Always present
order.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
order.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
order.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
order.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present