Billing API, REST: Sku.list
Retrieves the list of SKUs.
HTTP request
GET https://billing.api.cloud.yandex.net/billing/v1/skus
Query parameters
Parameter | Description |
---|---|
currency | Required. Currency of the prices. Can be one of the following:
|
billingAccountId | Optional ID of the billing account. If specified, contract prices for a particular billing account are included in the response. To get the billing account ID, use list request. |
filter | A filter expression that filters resources listed in the response. The expression must specify:
The maximum string length in characters is 1000. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. The maximum value is 1000. |
pageToken | Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 100. |
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[] | object List of skus. |
skus[]. id |
string ID of the SKU. |
skus[]. name |
string Name of the SKU. |
skus[]. description |
string Description of the sku. |
skus[]. serviceId |
string ID of the service that sku belongs to. |
skus[]. pricingUnit |
string Pricing unit of the SKU, e.g. |
skus[]. pricingVersions[] |
object List of pricing versions. |
skus[]. pricingVersions[]. type |
string Type of the pricing version. Type of the pricing version.
|
skus[]. pricingVersions[]. effectiveTime |
string (date-time) Timestamp pricing version is active since inclusive. The pricing version is active until next pricing version effective time exclusive. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
skus[]. pricingVersions[]. pricingExpressions[] |
object List of pricing expressions. |
skus[]. pricingVersions[]. pricingExpressions[]. rates[] |
object List of rates. |
skus[]. pricingVersions[]. pricingExpressions[]. rates[]. startPricingQuantity |
string Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate. |
skus[]. pricingVersions[]. pricingExpressions[]. rates[]. unitPrice |
string Unit price for the pricing quantity interval. |
skus[]. pricingVersions[]. pricingExpressions[]. rates[]. currency |
string Currency of the unit price. Can be one of the following:
|
nextPageToken | string This token allows you to get the next page of results for list requests. If the number of results is larger than pageSize, use nextPageToken as the value for the pageToken query parameter in the next list request. Each subsequent list request will have its own nextPageToken to continue paging through the results. |