# REST Resource: billingAccounts.skus.price

- [Resource: BillingAccountPrice](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#BillingAccountPrice)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#BillingAccountPrice.SCHEMA_REPRESENTATION)
- [Rate](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Rate)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Rate.SCHEMA_REPRESENTATION)
- [RateTier](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#RateTier)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#RateTier.SCHEMA_REPRESENTATION)
- [UnitInfo](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#UnitInfo)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#UnitInfo.SCHEMA_REPRESENTATION)
- [AggregationInfo](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#AggregationInfo)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#AggregationInfo.SCHEMA_REPRESENTATION)
- [Level](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Level)
- [Interval](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Interval)
- [PriceReason](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#PriceReason)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#PriceReason.SCHEMA_REPRESENTATION)
- [DefaultPrice](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#DefaultPrice)
- [FixedPrice](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FixedPrice)
- [FixedDiscount](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FixedDiscount)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FixedDiscount.SCHEMA_REPRESENTATION)
- [FloatingDiscount](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FloatingDiscount)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FloatingDiscount.SCHEMA_REPRESENTATION)
- [MigratedPrice](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#MigratedPrice)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#MigratedPrice.SCHEMA_REPRESENTATION)
- [MergedPrice](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#MergedPrice)
- [ListPriceAsCeiling](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#ListPriceAsCeiling)
- [Methods](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#METHODS_SUMMARY)

## Resource: BillingAccountPrice

Encapsulates the latest price for a `billing account SKU`.

| JSON representation |
|---|
| ``` { "name": string, "currencyCode": string, "valueType": string, "priceReason": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#PriceReason`) }, // Union field `value` can be only one of the following: "rate": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Rate`) } // End of list of possible types for union field `value`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Resource name for the latest billing account price. |
| `currencyCode` | `string` ISO-4217 currency code for the price. |
| `valueType` | `string` Type of the price. The possible values are: \["unspecified", "rate"\]. |
| `priceReason` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#PriceReason`)`` Background information on the origin of the price. |
| Union field `value`. `value` can be only one of the following: ||
| `rate` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Rate`)`` Rate price metadata. `Billing account SKUs` with `Rate` price are offered by pricing tiers. The price can have 1 or more rate pricing tiers. |

## Rate

Encapsulates a `Rate` price. `Billing account SKUs` with `Rate` price are offered by pricing tiers. The price have 1 or more rate pricing tiers.

| JSON representation |
|---|
| ``` { "tiers": [ { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#RateTier`) } ], "unitInfo": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#UnitInfo`) }, "aggregationInfo": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#AggregationInfo`) } } ``` |

| Fields ||
|---|---|
| `tiers[]` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#RateTier`)`` All tiers associated with the `Rate` price. |
| `unitInfo` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#UnitInfo`)`` Unit info such as name and quantity. |
| `aggregationInfo` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#AggregationInfo`)`` Aggregation info for tiers such as aggregation level and interval. |

## RateTier

Encapsulates a rate price tier.

| JSON representation |
|---|
| ``` { "startAmount": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`) }, "listPrice": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Money`) }, "contractPrice": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Money`) }, "effectiveDiscountPercent": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`) } } ``` |

| Fields ||
|---|---|
| `startAmount` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`)`` Lower bound amount for a tier. Tiers 0-100, 100-200 will be represented with two tiers with `startAmount` 0 and 100. |
| `listPrice` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Money`)`` List price of one tier. |
| `contractPrice` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Money`)`` Negotiated contract price specific for a billing account. |
| `effectiveDiscountPercent` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`)`` Percentage of effective discount calculated using the current list price per pricing tier. Formula used: effectiveDiscountPercent = (listPrice - contractPrice) / listPrice × 100 If listPrice and contractPrice are zero, this field is the same as `discountPercent` of `FixedDiscount` and `FloatingDiscount`. If your contract does NOT have the feature LIST_PRICE_AS_CEILING enabled, the effectiveDiscountPercent can be negative if the SKU has a `FixedDiscount` and the current list price is lower than the list price on the date of the contract agreement. See the `FixedDiscount.fix_time` on when the discount was set. If you have questions regarding pricing per SKU, contact your Account team for more details. |

## UnitInfo

Encapsulates the unit information for a `Rate`

| JSON representation |
|---|
| ``` { "unit": string, "unitDescription": string, "unitQuantity": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`) } } ``` |

| Fields ||
|---|---|
| `unit` | `string` Shorthand for the unit. Example: GiBy.mo. |
| `unitDescription` | `string` Human-readable description of the unit. Example: gibibyte month. |
| `unitQuantity` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`)`` Unit quantity for the tier. Example: if the RateTier price is $1 per 1000000 Bytes, then `unitQuantity` is set to 1000000. |

## AggregationInfo

Encapsulates the aggregation information such as aggregation level and interval for a `billing account price`.

| JSON representation |
|---|
| ``` { "level": enum (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Level`), "interval": enum (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Interval`) } ``` |

| Fields ||
|---|---|
| `level` | ``enum (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Level`)`` Level at which usage is aggregated to compute cost. Example: "ACCOUNT" level indicates that usage is aggregated across all projects in a single account. |
| `interval` | ``enum (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#Interval`)`` Interval at which usage is aggregated to compute cost. Example: "MONTHLY" interval indicates that usage is aggregated every month. |

## Level

Different aggregation levels.

| Enums ||
|---|---|
| `LEVEL_UNSPECIFIED` | Default unspecified value. |
| `LEVEL_ACCOUNT` | Usage is aggregated at an account level. |
| `LEVEL_PROJECT` | Usage is aggregated at a project level. |

## Interval

Different aggregation intervals.

| Enums ||
|---|---|
| `INTERVAL_UNSPECIFIED` | Default unspecified value. |
| `INTERVAL_MONTHLY` | Usage is aggregated every month. |
| `INTERVAL_DAILY` | Usage is aggregated every day. |

## PriceReason

Encapsulates a price reason which contains background information about the origin of the price.

| JSON representation |
|---|
| ``` { "type": string, // Union field `metadata` can be only one of the following: "defaultPrice": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#DefaultPrice`) }, "fixedPrice": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FixedPrice`) }, "fixedDiscount": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FixedDiscount`) }, "floatingDiscount": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FloatingDiscount`) }, "migratedPrice": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#MigratedPrice`) }, "mergedPrice": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#MergedPrice`) }, "listPriceAsCeiling": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#ListPriceAsCeiling`) } // End of list of possible types for union field `metadata`. } ``` |

| Fields ||
|---|---|
| `type` | `string` Type of the price reason. It can have values such as 'unspecified', 'default-price', 'fixed-price', 'fixed-discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'. |
| Union field `metadata`. `metadata` can be only one of the following: ||
| `defaultPrice` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#DefaultPrice`)`` Default price which is the current list price. |
| `fixedPrice` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FixedPrice`)`` Fixed price applicable during the terms of a contract agreement. |
| `fixedDiscount` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FixedDiscount`)`` Discount off the list price, anchored to the list price as of a fixed time. |
| `floatingDiscount` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#FloatingDiscount`)`` Discount off the current list price, not anchored to any list price as of a fixed time. |
| `migratedPrice` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#MigratedPrice`)`` Price migrated from other SKUs. |
| `mergedPrice` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#MergedPrice`)`` Price after merging from multiple sources. |
| `listPriceAsCeiling` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price#ListPriceAsCeiling`)`` Contract feature that the list price (DefaultPrice) will be used for the price if the current list price drops lower than the custom fixed price. Available to new contracts after March 21, 2022. Applies to all fixed price SKUs in the contract, including `FixedPrice`, `FixedDiscount`, `MigratedPrice`, and `MergedPrice`. |

## DefaultPrice

This type has no fields.
Encapsulates a default price which is the current list price.

## FixedPrice

This type has no fields.
Encapsulates a set fixed price applicable during the terms of a contract agreement.

## FixedDiscount

Encapsulates a discount off the list price, anchored to the list price as of a fixed time.

| JSON representation |
|---|
| ``` { "discountPercent": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`) }, "fixTime": string, "discountScopeType": string, // Union field `discount_scope` can be only one of the following: "skuGroup": string // End of list of possible types for union field `discount_scope`. } ``` |

| Fields ||
|---|---|
| `discountPercent` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`)`` Percentage of the fixed discount. |
| `fixTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Time that the fixed discount is anchored to. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `discountScopeType` | `string` Type of the fixed discount scope which indicates the source of the discount. It can have values such as 'unspecified' and 'sku-group'. |
| Union field `discount_scope`. `discount_scope` can be only one of the following: ||
| `skuGroup` | `string` SKU group where the fixed discount comes from. |

## FloatingDiscount

Encapsulates a discount off the current list price, not anchored to any list price as of a fixed time.

| JSON representation |
|---|
| ``` { "discountPercent": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`) }, "discountScopeType": string, // Union field `discount_scope` can be only one of the following: "skuGroup": string // End of list of possible types for union field `discount_scope`. } ``` |

| Fields ||
|---|---|
| `discountPercent` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/Shared.Types/Decimal`)`` Percentage of the floating discount. |
| `discountScopeType` | `string` Type of the floating discount scope which indicates the source of the discount. It can have values such as 'unspecified' and 'sku-group'. |
| Union field `discount_scope`. `discount_scope` can be only one of the following: ||
| `skuGroup` | `string` SKU group where the floating discount comes from. |

## MigratedPrice

Encapsulates a price migrated from other SKUs.

| JSON representation |
|---|
| ``` { "sourceSku": string } ``` |

| Fields ||
|---|---|
| `sourceSku` | `string` Source SKU where the discount is migrated from. Format: billingAccounts/{billingAccount}/skus/{sku} |

## MergedPrice

This type has no fields.
Encapsulates a price after merging from multiple sources. With merged tiers, each individual tier can be from a different source with different discount types.

## ListPriceAsCeiling

This type has no fields.
Encapsulates a contract feature that the list price (DefaultPrice) will be used for the price if the current list price drops lower than the custom fixed price. Available to new contracts after March 21, 2022. Applies to all fixed price SKUs in the contract, including `FixedPrice`, `FixedDiscount`, `MigratedPrice`, and `MergedPrice`.

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v1beta/billingAccounts.skus.price/get` | Gets the latest price for `SKUs available to your Cloud Billing account`. |