Setting the Default Rating Mode for New Service Plans

Note: For instructions how to set Rating Mode for existing service plans and subscriptions, please see Shifting Existing Service Plans and Subscriptions to Rating Engine.

Rating Mode determines whether either revenue or costs or both revenue and costs will be calculated for the Provider and all Resellers together with the extended price for the End Customer.

The following rating modes are possible:

  • Revenue and Costs: Both revenue and costs are calculated for the provider and all reseller levels, as well as the extended price for the customer.
  • Costs Only: Only provider costs are calculated for the service. Provider and reseller revenue is not calculated. Extended price for the customer is not calculated.
  • Revenue Only: Only provider and reseller revenue is calculated for the service, as well as the extended price for the customer. Provider costs are not calculated.

Instead of enabling Rating Mode per service plan, for convenience, you can set a rating mode that will be automatically enabled by default for all new service plans. The default rating mode can be changed at any time but such changes apply only to new service plans and do not affect existing service plans.

To set the default Rating Mode value for all new service plans:

  1. From a machine with kubectl, enter the OSS pod:

    kubectl -n NAMESPACE exec -ti oss-node-0 bash
  2. Set the necessary rating mode by executing one of the following queries:

    Important: After you set the default Rating Mode value, this value will be applied permanently to all newly created service plans. You can change the default Rating Mode at any time but the changes will apply only to new service plans and will not affect existing service plans.

    Warning: Do not use the requests below if you have already enabled Rating Engine using the special feature FEA_AutoEnableRatingMode, which sets Costs Only mode for service plans that include resources from applications defined by ratingapplications. Using FEA_AutoEnableRatingMode together with the requests below may result in hanging OSS tasks. If necessary, disable FEA_AutoEnableRatingMode and then use one of the requests below to set the default rating mode.

    • Revenue and Costs mode:

      curl -X GET -k -E /usr/local/pem/APS/certificates/poa.pem "https://localhost:6308/aps/2/resources/?implementing(http://www.ingrammicro.com/billing/rating/application)"   |
      python -m json.toolcurl -X PUT -k -E /usr/local/pem/APS/certificates/poa.pem https://localhost:6308/aps/2/resources/<rating-engine-application-resource-uid>
      -H "Content-Type: application/json" --data '{"defaultMode": { "integrationMode": "REVENUE_AND_COST", "isClassic": false } }'
    • Costs Only mode:

      curl -X GET -k -E /usr/local/pem/APS/certificates/poa.pem "https://localhost:6308/aps/2/resources/?implementing(http://www.ingrammicro.com/billing/rating/application)"   |
      python -m json.toolcurl -X PUT -k -E /usr/local/pem/APS/certificates/poa.pem https://localhost:6308/aps/2/resources/<rating-engine-application-resource-uid>
      -H "Content-Type: application/json" --data '{"defaultMode": { "integrationMode": "COST_ONLY", "isClassic": false } }'
    • Revenue Only mode:

      curl -X GET -k -E /usr/local/pem/APS/certificates/poa.pem "https://localhost:6308/aps/2/resources/?implementing(http://www.ingrammicro.com/billing/rating/application)"   |
      python -m json.toolcurl -X PUT -k -E /usr/local/pem/APS/certificates/poa.pem https://localhost:6308/aps/2/resources/<rating-engine-application-resource-uid>
      -H "Content-Type: application/json" --data '{"defaultMode": { "integrationMode": "REVENUE_AND_COST", "isClassic": true } }'

Related Topics

CloudBlue, an Ingram Micro business, uses cookies to improve the usability of our site. By continuing to use this site and/or logging in you are accepting the use of these cookies. For more information, visit our Privacy Policy.