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, 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.

CODE
---
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      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 rule group conditions, rule condition, rule comparison and rule types section

rule group conditions contains of 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

SAMPLE YAML

CODE
---
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup

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

SAMPLE YAML

NONE
---
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup

- rule_group_id: 2
  provider_code: aws
  billing_account_id: "755387160313"
  usage_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: 'Amazon Route 53'
      rule_definition:
        adjustment: 5
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
          - Amazon Redshift
      rule_definition:
        adjustment: 50
        rule_type: percent_markup

SAMPLE YAML

NONE
---
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup

- rule_group_id: 2
  provider_code: aws
  billing_account_id: "755387160313"
  usage_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: 'Amazon Route 53'
      rule_definition:
        adjustment: 5
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
          - Amazon Redshift
      rule_definition:
        adjustment: 50
        rule_type: percent_markup

rule conditions contains of the the following conditions 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
---
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  usage_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: 'Amazon Route 53'
      rule_definition:
        adjustment: 5
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
          - Amazon Redshift
      rule_definition:
        adjustment: 50
        rule_type: percent_markup
        
- rule_group_id: 2
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: _starts_with:Amazon
        location_id: us-east-1
      rule_definition:
        adjustment: 25
        rule_type: percent_discount

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

 - rule_group_id: 4
   provider_code: aws
   start_month: 2024-01
   end_month: 2024-03
   rules:
     - rule_id: 1
       line_item:
         product_name: _contains:AWS
         usage_type: Request
       rule_definition:
         adjustment: 50
         rule_type: fixed_rate

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

NONE
---
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup
              
- rule_group_id: 2
  provider_code: aws
  billing_account_id: "755387160313"
  usage_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: 'Amazon Route 53'
      rule_definition:
        adjustment: 5
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
          - Amazon Redshift
      rule_definition:
        adjustment: 50
        rule_type: percent_markup
        
- rule_group_id: 3
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: _starts_with:Amazon
        location_id: us-east-1
      rule_definition:
        adjustment: 25
        rule_type: percent_discount

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

YAML ex

NONE
---
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup
              
- rule_group_id: 2
  provider_code: aws
  billing_account_id: "755387160313"
  usage_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: 'Amazon Route 53'
      rule_definition:
        adjustment: 5
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
          - Amazon Redshift
      rule_definition:
        adjustment: 50
        rule_type: percent_markup
        
- rule_group_id: 3
  provider_code: aws
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: _starts_with:Amazon
        location_id: us-east-1
      rule_definition:
        adjustment: 25
        rule_type: percent_discount

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

rule types

  • fixed_rate

  • percent_discount

  • percent_markup

NONE
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup
    - rule_id: 1
      line_item:
        product_name: _contains:AWS
        usage_type: Request
      rule_definition:
        adjustment: 50
        rule_type: fixed_rate
      

NONE
- rule_group_id: 1
  provider_code: aws
  billing_account_id: "755387160313"
  start_month: 2024-01
  end_month: 2024-03
  rules:
    - rule_id: 1
      line_item:
        product_name: ['Amazon Elastic Compute Cloud', 'AWS Directory Service','Amazon Route 53']
      rule_definition:
        adjustment: 10
        rule_type: percent_discount
    - rule_id: 2
      line_item:
        product_name:
          - AWS Cost Explorer
          - AWS Directory Service
      rule_definition:
        adjustment: 15
        rule_type: percent_markup
    - rule_id: 1
      line_item:
        product_name: _contains:AWS
        usage_type: Request
      rule_definition:
        adjustment: 50
        rule_type: fixed_rate
      

 

JavaScript errors detected

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

If this problem persists, please contact our support.