Billing API, REST: Sku.get
Returns the specified SKU.
HTTP request
GET https://billing.api.cloud.yandex.net/billing/v1/skus/{id}
Path parameters
Parameter | Description |
---|---|
id | Required. ID of the SKU to return. To get the SKU ID, use list request. The maximum string length in characters is 50. |
Query parameters
Parameter | Description |
---|---|
currency | Required. Currency of the SKU. 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. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"name": "string",
"description": "string",
"serviceId": "string",
"pricingUnit": "string",
"pricingVersions": [
{
"type": "string",
"effectiveTime": "string",
"pricingExpressions": [
{
"rates": [
{
"startPricingQuantity": "string",
"unitPrice": "string",
"currency": "string"
}
]
}
]
}
]
}
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[] | object List of pricing versions. |
pricingVersions[]. type |
string Type of the pricing version. Type of the pricing version.
|
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). |
pricingVersions[]. pricingExpressions[] |
object List of pricing expressions. |
pricingVersions[]. pricingExpressions[]. rates[] |
object List of rates. |
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. |
pricingVersions[]. pricingExpressions[]. rates[]. unitPrice |
string Unit price for the pricing quantity interval. |
pricingVersions[]. pricingExpressions[]. rates[]. currency |
string Currency of the unit price. Can be one of the following:
|