Getting Started

Before you can use our billing endpoints, you must change some settings in the user portal.

Login as SA and set the following keys in Developer > Advanced Config:

  • SUBSCRIPTION_REQUIRED: true
  • BILLING_TYPE: "1" 
    • Available types:
        "1": all plans
        "2": customize plans per tenant
        "3": customize plans per tenant and increase plan price according to quantity of linked devices
        "4": all plans and increase plan price according to quantity of linked devices
  • STRIPE_SECRET_KEY: <YOUR_STRIPE_SECRET_KEY>
  • STRIPE_PUBLISHABLE_KEY: <YOUR_STRIPE_PUBLISHABLE_KEY>

If you're not sure where to find your secret and publishable key, check this article for information.