Bill Webhooks

Bill Requested

Events

bill.requestedA bill has been requested

Fields

NameTypeDescription
billRequestBillRequestThe bill request detail this event is related to.

Example

{
  "event": "bill.requested",
  "billRequest": {
    "...": "..."
  }
}

Bill Payment Completed

Events

bill.payment-completedA bill payment has been completed

Fields

NameTypeDescription
billPaymentDetailBillPaymentDetailThe payment this event is related to.

Example

{
  "event": "bill.payment-completed",
  "billPaymentDetail": {
    "...": "..."
  }
}

Models

BillRequest

NameTypeDescription
locationIdstringThe location Id the bill belongs to.
organizationIdstringThe organization Id the bill belongs to.
billRefstringBill Id from non LOKE system.
placeRefstringThe place reference(table number, room number, QR code, etc) used to pull bill.

BillPaymentDetail

NameTypeDescription
idstringPayment ID
locationIdstringThe location Id the bill belongs to.
organizationIdstringThe organization Id the bill belongs to.
completedAtstringWhen the payment was completed
billRefstringBill Id from non LOKE system.
chargedAmountintegerPortion covered by credit card
creditAmountintegerPortion covered by customer credit
currencystring
discountAmountintegerPortion discounted by user promotion
feeAmountinteger
payoutAmountinteger
tipAmountinteger
totalintegerTotal amount covered by payment
customerCustomerTiny
itemsPaymentLineItem[]

CustomerTiny

NameTypeDescription
idstringUnique ID of the Customer
emailstring(optional) The Customers email address
firstNamestringCustomer first name or given name
lastNamestringCustomer last name or surname
phoneNumberstring(optional) The Customers mobile phone number

PaymentLineItem

NameTypeDescription
idstringProduct identifier for the item. Depending on the source this could be a SKU, PLU, a database identifier, or something composite.
namestringItem name
amountintegerThe amount in the lowest denomination (e.g., cents). This will be the price of a single quantity of the item.
quantityintegerThe quantity of identical items purchased on this line.
typestringThe type of line item (e.g., item, discount, surcharge)
optionsPaymentLineItemOption[](optional) options chosen for this item

PaymentLineItemOption

NameTypeDescription
idstringIdentifier for the option (group of choices)
namestringOption name (e.g., 'size', 'milk', 'sugar')
choicesPaymentLineItemOptionChoice[]Choices made for this option

PaymentLineItemOptionChoice

NameTypeDescription
idstringProduct identifier for the choice. Depending on the source this could be a SKU, PLU, a database identifier, or something composite.
namestringChoice name (e.g., 'small', 'medium', 'large')
amountintegerThe amount of this choice in the lowest denomination (e.g., cents).

In this article