In this exercise, you will configure both fixed and variable costs for a product. Because invoices are generated monthly, you will not be able to verify the reports immediately.
Outcomes
You should be able to:
Configure fixed costs for a product.
Create pricing rules for a metric.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
[student@workstation ~]$ lab start monetizing-pricing
Procedure 7.2. Instructions
View the echo product, which points to the 3scale Echo API.
In the 3scale Admin Portal, navigate to the Products page.
Click .
In the left pane, click → .
The custom application plan is displayed.
Click to access the settings page of the plan.
Update the custom application plan to include a setup fee of 5 USD, and a cost per month of 3 USD.
Complete the Setup fee field with 5.00.
Complete the Cost per month field with 3.00.
Click to save the changes.
Update the custom application plan to charge 0.5 USD per request for the first 120 requests.
Click to access the settings page of the plan.
In the Metrics, Methods, Limits & Pricing Rules section, click for the Hits metric row.
The pricing rules are applied to the Hits metrics, which captures all paths.
Click and complete the form:
| Field | Value |
|---|---|
| From |
1
|
| To |
120
|
| Cost Per Unit |
0.5
|
Then, click .
Update the custom application plan to charge 0.3 USD per request for the following 1000 requests.
Click and complete the form:
| Field | Value |
|---|---|
| From |
121
|
| To |
1121
|
| Cost Per Unit |
0.3
|
Then, click .
Update the custom application to charge 0.1 USD per request from the 1122th request.
Click and complete the form:
| Field | Value |
|---|---|
| From |
1122
|
| To | (blank) |
| Cost Per Unit |
0.1
|
Then, click .
To verify that the pricing rules work as expected, you can use the invoice reports generated by 3scale API Management. Because the reports are generated monthly, you can not verify the pricing rules of this guided exercise immediately.
This concludes the guided exercise.