The Billing endpoint allows you to have your add-on billed by Kounta by Lightspeed. That is, a subscription to your add-on can be managed via the API, and the associated fees would be charged to the merchant as part of their regular billing cycle with Kounta by Lightspeed.
You are able to create, update, and remove subscriptions to your add-on, as well as receive webhooks for billing related events such as payment attempts.
GET /v1/companies/5678/sites/123/billing |
plan
relates to the plan they currently have with Kounta by Lightspeed POS,
and can be one of Lite
, Paid
, or Cancelled
.current_quantity
for addons is how many they currently have, but they may have a
paid_quantity
higher than this if they have paid for more in this billing
cycle but removed some.GET /v1/companies/5678/sites/123/billing/payments |
plan
relates to the plan they currently have with Kounta by Lightspeed POS,
and can be one of Lite
, Paid
, or Cancelled
.POST /v1/companies/5678/sites/123/billing |
plan_id
and/or addons
need to be specified.PUT /v1/companies/5678/sites/123/billing |
plan_id
and/or addons
needs to be specified.quantity
can be negative if you want to decrease the number.DELETE /v1/companies/5678/sites/123/billing |
Here is a list of the supported webhook topics.
Note: Created, Updated, and Cancelled webhooks contain the full payload the same as the GET /billing call above, whereas the Payment webhook contains the full payload of the GET /billing/payments call above.
Triggered when a new add-on subscription is created.
Triggered when an add-on plan change occurs.
Triggered when an add-on plan cancellation occurs.
Triggered when a payment attempt is made on an add-on subscription.