# subscription\_item

From **Stripe API**.

Subscription items allow you to create customer subscriptions with more than
one plan, making it easy to represent complex billing relationships.

- Type: `object`

## Properties

### `billing_thresholds`

- Required: false
- Nullable: true

Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period

### `created`

- Required: true
- Type: `integer`

Time at which the object was created. Measured in seconds since the Unix epoch.

### `id`

- Required: true
- Type: `string`
- maxLength: `5000`

Unique identifier for the object.

### `metadata`

- Required: true
- Type: `object`

Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

### `object`

- Required: true
- Type: `string`
- Allowed values: `"subscription_item"`

String representing the object's type. Objects of the same type share the same value.

### `price`

- Required: true
- Type: `object`

Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.
[Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.

For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.

Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/billing/prices-guide).

### `quantity`

- Required: false
- Type: `integer`

The [quantity](https://stripe.com/docs/subscriptions/quantities) of the plan to which the customer should be subscribed.

### `subscription`

- Required: true
- Type: `string`
- maxLength: `5000`

The `subscription` this `subscription_item` belongs to.

### `tax_rates`

- Required: false
- Type: `array`
- Nullable: true

The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.

## JSON Schema

```json
{"description":"Subscription items allow you to create customer subscriptions with more than\none plan, making it easy to represent complex billing relationships.","properties":{"billing_thresholds":{"anyOf":[{"$ref":"#/components/schemas/subscription_item_billing_thresholds"}],"description":"Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period","nullable":true},"created":{"description":"Time at which the object was created. Measured in seconds since the Unix epoch.","type":"integer"},"id":{"description":"Unique identifier for the object.","maxLength":5000,"type":"string"},"metadata":{"additionalProperties":{"maxLength":500,"type":"string"},"description":"Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.","type":"object"},"object":{"description":"String representing the object's type. Objects of the same type share the same value.","enum":["subscription_item"],"type":"string"},"price":{"$ref":"#/components/schemas/price"},"quantity":{"description":"The [quantity](https://stripe.com/docs/subscriptions/quantities) of the plan to which the customer should be subscribed.","type":"integer"},"subscription":{"description":"The `subscription` this `subscription_item` belongs to.","maxLength":5000,"type":"string"},"tax_rates":{"description":"The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.","items":{"$ref":"#/components/schemas/tax_rate"},"nullable":true,"type":"array"}},"required":["created","id","metadata","object","price","subscription"],"title":"SubscriptionItem","type":"object","x-expandableFields":["billing_thresholds","price","tax_rates"],"x-resourceId":"subscription_item"}
```
