GET
/
billing
/
org
/
v1
/
subscriptions
/
{id}
Get a single ClientFeature
curl --request GET \
  --url https://api.gcore.com/billing/org/v1/subscriptions/{id} \
  --header 'Authorization: <api-key>'
{
  "client_id": 123,
  "client": {
    "id": 2,
    "company_name": "<string>"
  },
  "feature": {
    "id": 123,
    "name": "<string>",
    "erp_sku_id": "<string>"
  },
  "metric_ext_name": "<string>",
  "regions": [
    {
      "id": 123,
      "name": "<string>",
      "external_name": "<string>"
    }
  ],
  "rounding_rule": {
    "unit": {
      "id": 2,
      "name": "<string>",
      "internal_name": "<string>"
    },
    "value": "<string>",
    "round_operation": "ceil"
  },
  "product": {
    "id": 123,
    "name": "<string>",
    "internal_name": "<string>"
  },
  "product_category": {
    "id": 123,
    "name": "<string>"
  },
  "prices": [
    {
      "active_range": {
        "start": "2023-11-07T05:31:56Z",
        "end": "2023-11-07T05:31:56Z"
      },
      "price": {
        "unit": {
          "id": 2,
          "name": "<string>",
          "internal_name": "<string>"
        },
        "default_value": "<string>",
        "currency": {
          "id": 123,
          "char_code": "<string>",
          "symbol": "<string>"
        },
        "type": "<string>",
        "net_value": "<string>",
        "money_value": "<string>",
        "steps": [
          {
            "threshold": "<string>",
            "net_value": "<string>",
            "gross_value": "<string>"
          }
        ]
      },
      "plan": {
        "id": 123,
        "name": "<string>"
      },
      "subscription": {
        "id": 123,
        "active_range": {
          "start": "2023-11-07T05:31:56Z",
          "end": "2023-11-07T05:31:56Z"
        }
      },
      "tax_rate": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
string
required

Response

200 - application/json
client_id
integer
required

The ID of the client

client
object
required

The client

feature
object
required

The feature associated with the subscription.

metric_ext_name
string
required

Metric code of the feature associated with the subscription.

regions
object[]
required

List of statistic regions associated with the feature of the subscription.

rounding_rule
object
required

Rounding rule for the plan item.

product
object
required

The product associated with the feature of the subscription.

product_category
object
required

The product category associated with the feature of the subscription.

prices
object[]
required

List of prices associated with the subscription over different time periods.