Skip to main content
Version: 76.0.0

Manage Price Plans

This section describes how to manage pricing in a9s Billing.

a9s Billing requires pricing information for applications and Service Plans. Application pricing is static and is multiplied by instance_count and memory_in_mb_per_instance. Service pricing is based on the assigned Service Plan.

Prices are versioned through Target Plans. Each target Service Plan becomes effective on its configured start date, which allows price changes to be applied to the correct billing period.

Display Existing Prices

To display the current Target Plans and their configured application and service prices

bundle exec rake cf_billing:prices:show

Create a New Target Plan Revision

Create a new target Service Plan revision when a price change must take effect on a specific date.

DATE='YYYY-MM-DD' bundle exec rake cf_billing:prices:target_plan:new_revision

Replace the date with the date on which the price change should become effective.

If multiple application and Service Plan prices change on the same date, use the same target Service Plan revision for all of them.

The billing process applies the target Service Plan that was valid at the time the Service Instance entry was marked as running.

warning

A new target Service Plan revision only affects Service Instance entries running on or after its effective date. It does not retroactively change pricing already applied to earlier billing periods. Choose the effective date carefully, since it determines which running Service Instances are billed at the new price.

Update Application Prices

The command below can be executed to update the application price for the latest target Service Plan:

bundle exec rake cf_billing:prices:app:update

Update Service Plan Prices

The command below can be executed to create or update Service Plan prices for the latest target Service Plan:

bundle exec rake cf_billing:prices:create
info

Both price update tasks operate on the latest target Service Plan revision. Create a new revision first, as described above, if the price change must take effect on a specific future date rather than immediately.