# BillingSubscriptionItemResource

> Billing is currently in Beta and its APIs are experimental and may undergo breaking changes. To mitigate potential disruptions, we recommend [pinning](https://clerk.com/docs/pinning.md?sdk=astro) your SDK and `clerk-js` package versions.

The `BillingSubscriptionItemResource` type represents an item in a subscription.

## Properties

| Property                                | Type                                                                                                                                                               | Description                                                                                                                                                                                                   |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="amount"></a> `amount?`           | [BillingMoneyAmount](https://clerk.com/docs/astro/reference/types/billing-money-amount.md)                                                                         | The amount charged for the subscription item.                                                                                                                                                                 |
| <a id="cancel"></a> `cancel`            | <code>(params: { orgId?: string; }) => Promise<<a href="https://clerk.com/docs/astro/reference/types/deleted-object-resource.md">DeletedObjectResource</a>></code> | A function to cancel the subscription item. Accepts the following parameters: <ul> <li>`orgId?` (`string`): The ID of the Organization to cancel the subscription item from.</li> </ul> |
| <a id="canceledat"></a> `canceledAt`    | `null | Date`                                                                                                                                           | The date and time when the subscription item was canceled. `null` if the subscription item is not canceled.                                                                                                   |
| <a id="createdat"></a> `createdAt`      | `Date`                                                                                                                                                             | The date and time when the subscription item was created.                                                                                                                                                     |
| <a id="credit"></a> `credit?`           | <code>{ amount: <a href="https://clerk.com/docs/astro/reference/types/billing-money-amount.md">BillingMoneyAmount</a>; }</code>                                    | The credit from a previous purchase that is being applied to the subscription item.                                                                                                                           |
| `credit.amount`                         | [BillingMoneyAmount](https://clerk.com/docs/astro/reference/types/billing-money-amount.md)                                                                         | The amount of credit from a previous purchase that is being applied to the subscription item.                                                                                                                 |
| <a id="id"></a> `id`                    | `string`                                                                                                                                                           | The unique identifier for the subscription item.                                                                                                                                                              |
| <a id="isfreetrial"></a> `isFreeTrial`  | `boolean`                                                                                                                                                          | Whether the subscription item is for a free trial.                                                                                                                                                            |
| <a id="nextpayment"></a> `nextPayment?` | <code>null | <a href="billing-subscription-item-next-payment.mdx">BillingSubscriptionItemNextPayment</a></code>                                                    | Information about the next payment for this subscription item.                                                                                                                                                |
| <a id="pastdueat"></a> `pastDueAt`      | `null | Date`                                                                                                                                           | The date and time when the subscription item became past due. `null` if the subscription item is not past due.                                                                                                |
| <a id="periodend"></a> `periodEnd`      | `null | Date`                                                                                                                                           | The date and time when the current billing period ends. `null` if not set.                                                                                                                                    |
| <a id="periodstart"></a> `periodStart`  | `Date`                                                                                                                                                             | The date and time when the current billing period starts.                                                                                                                                                     |
| <a id="plan"></a> `plan`                | [BillingPlanResource](https://clerk.com/docs/astro/reference/types/billing-plan-resource.md)                                                                       | The Plan associated with the subscription item.                                                                                                                                                               |
| <a id="planperiod"></a> `planPeriod`    | `"month" | "annual"`                                                                                                                                    | The billing period for the subscription item.                                                                                                                                                                 |
| <a id="priceid"></a> `priceId`          | `string`                                                                                                                                                           | The ID of the price that this subscription item is associated with.                                                                                                                                           |
| <a id="seats"></a> `seats?`             | [BillingSubscriptionItemSeats](https://clerk.com/docs/astro/reference/types/billing-subscription-item-seats.md)                                                    | Seat entitlement details for this subscription item. Only set for organization subscription items with seat-based billing.                                                                                    |
| <a id="status"></a> `status`            | `"active" | "ended" | "upcoming" | "past_due"`                                                                                                          | The status of the subscription item.                                                                                                                                                                          |

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
