= Quick Start with Kaui Kaui is the back-office user interface for Kill Bill. This guide walks you through several tasks in Kaui. You will become familiar with moving around the application, and you'll learn some basic Kill Bill concepts: . <> . <> . <> . <> . <> . <> == Before You Begin Make sure you have installed Kill Bill and Kaui and launched them per the https://docs.killbill.io/latest/getting_started.html[_Getting Started_] guide. == Additional Resources * https://apidocs.killbill.io[_API Reference_] * https://docs.killbill.io/latest/userguide_kaui.html[_Kaui Guide_] * https://youtube.com/playlist?list=PLymeRbOZ_G8kfMitRI7rom-VFA2P5DTtA[_Kaui Tutorials_ on YouTube] * https://docs.killbill.io/latest/Kill-Bill-Glossary.html[_Kill Bill Glossary_] [[step1]] == Step 1. Create a Tenant Kill Bill supports multi-tenancy, where each https://docs.killbill.io/latest/Kill-Bill-Glossary.html#tenant[tenant^] has its own data, configuration, and so forth. This section explains how to create a tenant the first time you log in to Kaui. . Log in to Kaui with the default credentials of `admin/password`. + image::../assets/img/getting-started/login-screen.png[width=400,align="center"] + Kaui prompts you to create a tenant: + image::../assets/img/getting-started/AddNewTenant-Blank.png[width=450,align="center"] + . Fill in the fields: + * Use `bob` for *Name* (tenant name). * For *API Key*, use `bob`, and for *API Secret*, use `lazar`. + . Click the *Save* button. After you create a tenant, the active tenant name appears in the upper right corner of the Kaui screen: image::../assets/img/getting-started/select-tenant-name.png[width=850,align="center"] [[step2]] == Step 2. Set Up a Simple Catalog and Plans The Kill Bill https://docs.killbill.io/latest/Kill-Bill-Glossary.html#catalog[catalog^] contains https://docs.killbill.io/latest/Kill-Bill-Glossary.html#products[products^] and https://docs.killbill.io/latest/Kill-Bill-Glossary.html#plans[plans^] definitions. This XML configuration file is really powerful and offers various options for handling https://docs.killbill.io/latest/Kill-Bill-Glossary.html#trial_phase[trials^], https://docs.killbill.io/latest/Kill-Bill-Glossary.html#addons[add-ons^], https://docs.killbill.io/latest/Kill-Bill-Glossary.html#upgrade[upgrades^] / https://docs.killbill.io/latest/Kill-Bill-Glossary.html#downgrade[downgrades^], and so forth. (For more information on the Kill Bill catalog, see the https://docs.killbill.io/latest/userguide_subscription.html#components-catalog[Catalog] section in the _Subscription Billing_ guide.) For this tutorial, instead of starting with the XML catalog, you'll learn how to create a simple catalog in Kaui and configure it with two plans. [NOTE] *Note:* The simple catalog supports a _subset_ of the regular XML catalog features and isn't intended to serve as a catalog in production. For more details on the simple catalog, see the https://apidocs.killbill.io/#catalog-simple-plan["Simple Plan"] section in the _API Reference_. To create the simple catalog and two plans: . Click the tenant name in the upper right corner: + image::../assets/img/getting-started/select-tenant-name.png[width=850,align="center"] + Kaui opens the Tenant Configuration page. At the bottom of the page, you'll see the a row of tabs: + image::../assets/img/getting-started/tenant-config-labeled.png[width=850,align="center"] + . Click the plus sign next to Existing Plans. + image::../assets/img/getting-started/add-simple-catalog.png[width=250,align="center"] + Kaui opens the Catalog Configuration screen. + . Fill in the fields as shown below: + image::../assets/img/getting-started/catalog-standard-free.png[width=450,align="center"] + . Click the *Save* button. + Kaui returns to the Tenant Configuration screen. + . Click the plus sign again. + . On the Catalog Configuration screen, fill in the fields as shown below: + image::../assets/img/getting-started/catalog-standard-monthly.png[width=450,align="center"] + . Click the *Save* button, and Kaui returns to the Tenant Configuration screen. + You will now see the two plans you have created. Note that when you created the first plan, Kaui created the simple catalog: + image::../assets/img/getting-started/simple-catalog-two-plans-labeled.png[width=850,align="center"] [[step3]] == Step 3. Create an Account In this section, we will create an https://docs.killbill.io/latest/Kill-Bill-Glossary.html#account[account^] for a https://docs.killbill.io/latest/Kill-Bill-Glossary.html#customer[customer^], which stores the data your organization uses to transact business with a customer. To keep it simple, we will create an account with a minimum of information. . At the top of any Kaui screen, click *Create New Account.* + Kaui opens the Add New Account screen. + . Fill in the *Name* field as shown: + image::../assets/img/getting-started/create-new-account.png[width=450,align="center"] + . Scroll down the page and click the *Save* button. + Kaui displays the customer name for the new account at the top left of the screen: + image::../assets/img/getting-started/account-name-labeled.png[width=450,align="center"] [[step4]] == Step 4. Add a Payment Method to the Account To pay its https://docs.killbill.io/latest/Kill-Bill-Glossary.html#invoice[invoices^], an account must have at least one https://docs.killbill.io/latest/Kill-Bill-Glossary.html#payment_method[payment method^] saved. This section explains how to add a payment method to a customer account. For simplicity, we will create an offline payment method—checks—for the account we created in step 3. . Search for and open the customer account. (If you still have the account open from the previous section, you can skip this step.) .. On the main Kaui page, click in the center text box and press the Enter key (or click the search icon). + image::../assets/img/getting-started/ShowSearchHomepage.png[width=650,align="center"] + Kaui displays the accounts you have created so far for the tenant. + .. Click on an account, which opens the Account page for the customer. . On the lower right, click the *+* sign next to *Payment Methods*. + image::../assets/img/getting-started/payment-method-empty.png[width=450,align="center"] + Kaui opens the Add New Payment Method screen. + . Verify that \\___EXTERNAL_PAYMENT___ appears in the *Plugin name* field and check the *Default payment method* checkbox. + image::../assets/img/getting-started/add-new-payment-method-cropped.png[width=450,align="center"] + . Click the *Save* button. + Kaui displays the new payment method as \\___EXTERNAL_PAYMENT___ in the *Payment Method* section. The filled star to its left indicates it is the _default_ payment method: + image::../assets/img/getting-started/payment-method-with-default-selected.png[width=350,align="center"] [[step5]] == Step 5. Set Up a Subscription for the Account You are now ready to create a https://docs.killbill.io/latest/Kill-Bill-Glossary.html#subscription[subscription^] for the customer. . On the customer Account page, click *Subscriptions* on the sub-menu. + image::../assets/img/getting-started/subscription-blank.png[width=450,align="center"] + . Next to *Subscription Bundles*, select the plus icon ( + ). + [NOTE] *Note:* A subscription bundle is a collection of subscriptions. A bundle contains one base subscription and zero or more add-ons. + Kill Bill opens the Add New Subscription screen. + . In the *Plan* field, select *standard-monthly*. + image::../assets/img/getting-started/add-new-subscription-labeled.png[width=450,align="center"] + . Click *Save*. . The customer is now subscribed to the plan, and it is displayed on the Subscriptions page: + image::../assets/img/getting-started/subscription-created.png[width=850,align="center"] [[step6]] == Step 6. View the Generated Invoice To view the invoice that Kill Bill automatically generated for the subscription (step 5): . On the account page, click *Invoices* on the sub-menu: + image::../assets/img/getting-started/invoices.png[width=850,align="center"] + [NOTE] *Note:* Kill Bill immediately generated the invoice for the first month of the subscription because the plan (on which the subscription is based) has no trial period and because billing is performed _in advance_ by default. + . Click on the invoice number to see the invoice details: + image::../assets/img/getting-started/invoice-detail.png[width=650,align="center"] + Because the account has a default payment method defined ( \\__EXTERNAL_PAYMENT__), Kill Bill automatically pays the amount due on the invoice and displays the payment information below the invoice detail.