All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed link to billing engine


  1. Sign in to the API Publisher.
    https://<hostname>:9443/publisher (e.g.: https://localhost:9443/publisher). 
  2. In the HOME menu, click MANAGE SUBSCRIPTIONS.
  3. To disable the subscription of a particular API, click Block. Now, an API Store user is unable to invoke that API until it is re-enabled.


  1. Create a MySQL database called billing. This is the database that will store information regarding the application users, the billing plans, and the invoices.

  2. Download the sample billing engine provided for WSO2 API Manager. 

  3. To deploy the .war file in a Tomcat container, start a Tomcat server and deploy the downloaded .war file in its webapps folder.

  4. Locate the deployed webapp and edit the <apim-billing-engine-home>/WEB-INF/classes/ file as shown below, in order to enable the webapp to write data into the database and pull data from the Analytics server.

    • url=jdbc:mysql://localhost:3306/billing

    • username=root

    • password=pass

    • driverClassName=com.mysql.jdbc.Driver

    • dialect=org.hibernate.dialect.MySQL5InnoDBDialect

    • apimStoreUrl=https://localhost:9443/

    • apimUserName=admin

    • apimPassword=admin

    • dasUrl=https://localhost:9444/

    • dasUserName=admin

    • dasPassword=admin

    • jksPath=<extracted_apim-billing-engine-home>/WEB-INF/classes/wso2-jks/wso2carbon.jks

  5. Navigate to the main page of the billing engine at http://localhost:8080/apim-billing-engine-1.2.0/app/main.
  6. Sign up as a user.
  7. Log in using the newly created user. This is when the tables are created in the billing database that you created in step 1.