# REST Resource: skus.price

- [Resource: Price](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#Price)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#Price.SCHEMA_REPRESENTATION)
- [SkuPrice](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#SkuPrice)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#SkuPrice.SCHEMA_REPRESENTATION)
- [Rate](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#Rate)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#Rate.SCHEMA_REPRESENTATION)
- [RateTier](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#RateTier)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#RateTier.SCHEMA_REPRESENTATION)
- [UnitInfo](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#UnitInfo)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#UnitInfo.SCHEMA_REPRESENTATION)
- [AggregationInfo](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#AggregationInfo)
  - [JSON representation](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#AggregationInfo.SCHEMA_REPRESENTATION)
- [Level](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#Level)
- [Interval](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#Interval)
- [Methods](https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#METHODS_SUMMARY)

## Resource: Price

Encapsulates the latest price for a `SKU`.

| JSON representation |
|---|
| ``` { "name": string, "currencyCode": string, "skuPrices": [ { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#SkuPrice`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name for the latest price. |
| `currencyCode` | `string` ISO-4217 currency code for the price. |
| `skuPrices[]` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#SkuPrice`)`` consumption model price for the `SKU`. |

## SkuPrice

Encapsulates a consumption model price for a `SKU`.

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

| Fields ||
|---|---|
| `consumptionModel` | `string` Resource name of the consumption model. |
| `consumptionModelDescription` | `string` Description of the consumption model. Example: "Default", "BigQuery CUD - 1 Year". |
| `valueType` | `string` Type of the price. It can have values: \["unspecified", "rate"\]. |
| Union field `value`. Value of the price. `value` can be only one of the following: ||
| `rate` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#Rate`)`` Rate price metadata. `SKUs` with `Rate` price are offered by pricing tiers. The price can have 1 or more rate pricing tiers. |

## Rate

Encapsulates a `Rate` price. `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/v2beta/skus.price#RateTier`) } ], "unitInfo": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#UnitInfo`) }, "aggregationInfo": { object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#AggregationInfo`) } } ``` |

| Fields ||
|---|---|
| `tiers[]` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#RateTier`)`` All tiers associated with the `Rate` price. |
| `unitInfo` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price#UnitInfo`)`` Unit info such as name and quantity. |
| `aggregationInfo` | ``object (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/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`) } } ``` |

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

## 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 `price`.

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

| Fields ||
|---|---|
| `level` | ``enum (`https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/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/v2beta/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. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/billing/docs/reference/pricing-api/rest/v2beta/skus.price/get` | Gets the latest consumption model price for the given `SKU`. |