Skip to main content
Skip table of contents

Price Book

"Price Book" feature helps MSP/Reseller where they can upload a rule book to their partners to customize billing rates across different billing groups. Pricing rules can vary widely, being global, service-specific, billing entity-specific, or location-specific. Users can leverage these rules to apply discounts, markups, hide, or fixed rates within each respective scope. This feature enables customers to adjust pricing accurately according to the specified rules, ensuring optimal cost management.

Steps to Upload Price Book

  1. Log in to the partner tenant where all your created child tenants are displayed.

image-20250510-162822.png
  1. Click on the Price Book icon under the Actions column for the tenant where you want to apply the price book.

  2. Upload your pricing rule book according to the example below. Ensure you replace the placeholders with your billing account ID, code, and any other required information based on your specific rules.

  3. After successfully uploading the price book, wait for the next ingestion to be completed. Ingestions are scheduled every 12 hours.

Below are some of the examples of price rules

CODE
---
kind: cloud
book:
  - rule_group_id: awsDiscountForSevice
    provider_code: aws
    billing_account_id: "755387160313"
    start_month: 2024-01
    end_month: 2024-03
    rules:
      - rule_id: awsSelectedServiceDiscount
        line_item:
          product_name:
            - Amazon Elastic Compute Cloud
            - AWS Directory Service
            - Amazon Route 53
        rule_definition:
          adjustment: 10
          rule_type: percent_discount

      - rule_id: awsSelectedServiceMarkup
        line_item:
          product_name:
            - AWS Cost Explorer
            - AWS Directory Service
        rule_definition:
          adjustment: 15
          rule_type: percent_markup

In the above YAML file it contains the kind book and under book, it contains rule group conditions, rule condition, rule comparison and rule types section

kind indicates for which module we are applying the price rule

rule group conditions contain the following conditions as described below

  • provider_code

  • billing_account_id

  • usage_account_id

  • start_month

  • end_month

1] provider_code : is the provider name like AWS, GCP ….

2] billing_account_id : is the account id on which you want to apply

3] usage_account_id : is the account id (subscription/projects/members account id ) I.e. to which Usage account you want to apply

4] start_month : from which month you want to apply the rule

5] end_month : to which month you want to apply the rule


Price rule for supported rule conditions

The YAML file below shows rule conditions that contain the following, as described below

rule conditions,

  • product_name

  • location_id

  • cost_type

  • usage_type

1] product_name : to which service category you want to apply the rule

2] location_id : to which location you want to apply the rule

3] cost_type : to which cost type you want to apply the rule

4] usage_type : to which Usage type you want to apply the rule

YAML ex

NONE
---
kind: cloud
book:
  - rule_group_id: awsProductName
    provider_code: aws
    billing_account_id: "755387160313"
    usage_account_id: "755387160313"
    start_month: 2024-01
    end_month: 2024-03
    rules:
      - rule_id: awsS3Discount
        line_item:
          product_name:
            - Amazon Route 53
        rule_definition:
          adjustment: 5
          rule_type: percent_discount

      - rule_id: awsServiceMarkup
        line_item:
          product_name:
            - AWS Cost Explorer
            - AWS Directory Service
            - Amazon Redshift
        rule_definition:
          adjustment: 50
          rule_type: percent_markup

  - rule_group_id: awsLocationDiscount
    provider_code: aws
    start_month: 2024-01
    end_month: 2024-03
    rules:
      - rule_id: awsDiscountusingLocation
        line_item:
          product_name_starts_with: Amazon
          location_id: us-east-1
        rule_definition:
          adjustment: 25
          rule_type: percent_discount

  - rule_group_id: awsForCostType
    provider_code: aws
    start_month: 2024-01
    end_month: 2024-03
    rules:
      - rule_id: awsMarkupasCostType
        line_item:
          product_name_contains: Support
          cost_type: Fee
        rule_definition:
          adjustment: 20
          rule_type: percent_markup

  - rule_group_id: awsForUsageType
    provider_code: aws
    start_month: 2024-01
    end_month: 2024-03
    rules:
      - rule_id: awsForFixedRate
        line_item:
          product_name_contains: AWS
          usage_type: Request
        rule_definition:
          adjustment: 50
          rule_type: fixed_rate

Price rule for Using the Comparison operator

Below are some of the comparison operators that are supported and can be used

rule comparison

  • string

    • eg, product_name: 'A'

  • array

    • eg, product_name: ['A', 'B']

  • _starts_with

    • eg, product_name: "_starts_with:Amazon"

  • _contains

    • eg, product_name: "_contains:Amazon"

 

YAML ex for rule comparison

NONE
---
kind: saas
book:
---
- rule_group_id: awsDiscountForServices
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsDiscountForServicesRule
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: awsMarkupForServicesRule
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup
              
- rule_group_id: awsDiscountForSupport
  provider_code: aws
  billing_account_id: "755387160313"
  usage_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsDiscountForSupports3
      line_item:
        product_name: 'Amazon Route 53'
      rule_definition:
        adjustment: 5
        rule_type: percent_discount
    - rule_id: awsMarkupForServices
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
          - Amazon Redshift
      rule_definition:
        adjustment: 50
        rule_type: percent_markup
        
- rule_group_id: awsDiscountForwildcardSupport
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsDiscountForServicesRuleWildcard
      line_item:
        product_name: _starts_with:Amazon
        location_id: us-east-1
      rule_definition:
        adjustment: 25
        rule_type: percent_discount

- rule_group_id: awsMarkupForwildcardSupport
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsMarkupForwildcardSupportRule
      line_item:
        product_name: _contains:Support
        cost_type: Fee
      rule_definition:
        adjustment: 20
        rule_type: percent_markup


Price rule for rule types

Below are the rule types supported

rule types

  • fixed_rate

  • percent_discount

  • percent_markup

  • hide

NONE
---
kind: saas
book:
---
- rule_group_id: awsDiscountForServices
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsDiscountForServicesRule
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: awsMarkupForServicesRule
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup
              
- rule_group_id: awsDiscountForSupport
  provider_code: aws
  billing_account_id: "755387160313"
  usage_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsDiscountForSupports3
      line_item:
        product_name: 'Amazon Route 53'
      rule_definition:
        adjustment: 5
        rule_type: percent_discount
    - rule_id: awsMarkupForServices
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
          - Amazon Redshift
      rule_definition:
        adjustment: 50
        rule_type: percent_markup
        
- rule_group_id: awsDiscountForwildcardSupport
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsDiscountForServicesRuleWildcard
      line_item:
        product_name: _starts_with:Amazon
        location_id: us-east-1
      rule_definition:
        adjustment: 25
        rule_type: percent_discount

- rule_group_id: awsMarkupForwildcardSupport
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awsMarkupForwildcardSupportRule
      line_item:
        product_name: _contains:Support
        cost_type: Fee
      rule_definition:
        adjustment: 20
        rule_type: percent_markup

- rule_group_id: awshideSupport
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: awshideSupportRule
      line_item:
        product_name: _contains:Support
        cost_type: Fee
      rule_definition:

        rule_type: hide

Price rule can be applied to the SaaS cost also

Below is the YAML Example to apply the price rule for SaaS cost and the rule type supported are

rule types

  • percent_discount

  • percent_markup

  • hide

Below is the YAML Example for percent_discount

CODE
---
kind: saas
book:
  - rule_group_id: Apply20PercentVAT
    provider_code: databricks
    rules:
      - rule_id: Add5PercentVAT
        line_item: {}
        rule_definition:
          rule_type: percent_markup
          adjustment: 20

Below is the Example for percent_discount

CODE
---
kind: saas
book:
  - rule_group_id: Apply5PercentVAT
    provider_code: snowflake
    rules:
      - rule_id: Add5PercentDiscount
        line_item: {}
        rule_definition:
          rule_type: percent_discount
          adjustment: 5

Below is the Example for hide

CODE
---
kind: saas
book:
  - rule_group_id: Apply5PercentVAT
    provider_code: mongodb
    rules:
      - rule_id: hide
        line_item:
          cost_type:
          - Credit
        rule_definition:
          rule_type: hide


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.