Updated on 2024-11-22 GMT+08:00

Pay-per-Use Specifications/Packages

Definition

  • Joint operations SaaS products in KooGallery support pay-per-use specifications and pay-per-use packages.
  • Pay-per-use specification: In each billing cycle, the system calculates the fee based on the actual usage of each resource multiplied by the unit price, and then deducts the fee from customers' account balance.
  • Pay-per-use package: After enabling pay-per-use billing, customers can buy pay-per-use packages. In each billing cycle, the package quota is deducted first. If the resource usage exceeds the quota, the system calculates the excess fee based on the excess usage multiplied by the unit price, and then deducts the fee from customers' account balance.

Prerequisites

Before releasing a pay-per-use joint operations SaaS product, develop an interface on the production interface server of the product. For details, see SaaS Product Access Guide V2.0.

Interface Version

Billing Mode

Interfaces to Be Developed and Debugged

V 1.0

Pay-per-use specification

Subscription (with Billing mode set to Pay-per-use)

Resource release

Resource status change

Instance query

Pay-per-use resource usage push (new)

Pay-per-use package

Subscription (with Billing mode set to Pay-per-use)

Resource release

Resource status change

Instance query

Pay-per-use resource usage push (new)

V2.0

Pay-per-use specification/package

Instance creation

Instance information query

Instance update

Instance release

Pay-per-use resource usage push (new)

Product purchase and use process

Billing Cycle and Rule

  • Hourly

    Report service detail records (SDRs) at least once an hour. It is recommended that SDRs be reported within the first 15 minutes of the next hour after a customer uses the resources. For example, if the customer uses resources at 13:25, report SDRs between 14:00 and 14:15. In this way, the customer can be charged in real time. Otherwise, the fee deduction will be delayed. If you cannot report SDRs in real time, report them within 2 hours after resource consumption.

  • Daily

    Report SDRs to KooGallery every hour. If you can only report SDRs once a day, report them from 00:00 to 00:15. SDRs must be reported before 01:00. Otherwise, the fee will be deducted from customers on the next day.

Billing rule: The quota of packages, if any, is deducted first. Excess fee = Excess usage x Unit price.

Package Quota Deduction and Reset Rules

  • Package quota deduction

    Customers can buy up to 30 pay-per-use SaaS packages at a go. If there are multiple packages with the same attributes, the package with the earliest expiration time is used first.

  • Package reset

    For packages that cannot be reset, the package content is the total available usage in the subscription term.

    For packages reset by year or month, the package content is the annual or monthly available usage. Total package content = Annual or monthly available usage x Number of subscription years or months.

Important Notes

  • If a customer account is in arrears due to fee deduction for a pay-per-use resource, the resource instance enters the grace period. After the grace period ends, KooGallery calls the resource status change interface to ask you to freeze the resource, and the retention period starts. After the retention period ends, KooGallery calls the resource status change interface to ask you to release the resource. If you cannot release the resource in a timely manner, you must pay the outstanding amount of the customer and any fee caused by resource release failure. If the customer pays the outstanding amount during the grace period or retention period, the customer account will be restored and KooGallery will call the resource status change interface to ask you to unfreeze the resource.

    Huawei Cloud defines different grace periods and retention periods for different levels of customers.

  • If a customer account is in arrears due to fee deduction for pay-per-use resources, KooGallery will start settlement with you only after the customer pays off the outstanding amount.
  • Ensure the accuracy of reported SDRs. If abnormal fee deduction occurs due to inaccurate SDRs, you need to negotiate with the customers.