Billing API, REST: Sku.List
Retrieves the list of SKUs.
HTTP request
GET https://billing.api.cloud.yandex.net/billing/v1/skus
Query parameters
Field |
Description |
currency |
string Required field. Currency of the prices.
|
billingAccountId |
string Optional ID of the billing account. |
filter |
string A filter expression that filters resources listed in the response.
|
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, |
Response
HTTP Code: 200 - OK
{
"skus": [
{
"id": "string",
"name": "string",
"description": "string",
"serviceId": "string",
"pricingUnit": "string",
"pricingVersions": [
{
"type": "string",
"effectiveTime": "string",
"pricingExpressions": [
{
"rates": [
{
"startPricingQuantity": "string",
"unitPrice": "string",
"currency": "string"
}
]
}
]
}
]
}
],
"nextPageToken": "string"
}
Field |
Description |
skus[] |
List of skus. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
Sku
A Stock keeping unit resource.
Field |
Description |
id |
string ID of the SKU. |
name |
string Name of the SKU. |
description |
string Description of the sku. |
serviceId |
string ID of the service that sku belongs to. |
pricingUnit |
string Pricing unit of the SKU, e.g. |
pricingVersions[] |
List of pricing versions. |
PricingVersion
Pricing version of the SKU.
Defines current and past prices for the sku.
Field |
Description |
type |
enum (PricingVersionType) Type of the pricing version.
|
effectiveTime |
string (date-time) Timestamp pricing version is active since inclusive. String in RFC3339 To work with values in this field, use the APIs described in the |
pricingExpressions[] |
List of pricing expressions. |
PricingExpression
Pricing expression of the pricing version.
Defines price for the sku.
Field |
Description |
rates[] |
List of rates. |
Rate
Rate of the pricing expression.
Define unit price for pricing quantity interval.
Field |
Description |
startPricingQuantity |
string Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate. |
unitPrice |
string Unit price for the pricing quantity interval. |
currency |
string Currency of the unit price.
|