# subscriptions\_resource\_pending\_update

From **Stripe API**.

Pending Updates store the changes pending from a previous update that will be applied
to the Subscription upon successful payment.

- Type: `object`

## Properties

### `billing_cycle_anchor`

- Required: false
- Type: `integer`
- Format: `unix-time`
- Nullable: true

If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices.

### `expires_at`

- Required: true
- Type: `integer`
- Format: `unix-time`

The point after which the changes reflected by this update will be discarded and no longer applied.

### `subscription_items`

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

List of subscription items, each with an attached plan, that will be set if the update is applied.

### `trial_end`

- Required: false
- Type: `integer`
- Format: `unix-time`
- Nullable: true

Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.

### `trial_from_plan`

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

Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.

## JSON Schema

```json
{"description":"Pending Updates store the changes pending from a previous update that will be applied\nto the Subscription upon successful payment.","properties":{"billing_cycle_anchor":{"description":"If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices.","format":"unix-time","nullable":true,"type":"integer"},"expires_at":{"description":"The point after which the changes reflected by this update will be discarded and no longer applied.","format":"unix-time","type":"integer"},"subscription_items":{"description":"List of subscription items, each with an attached plan, that will be set if the update is applied.","items":{"$ref":"#/components/schemas/subscription_item"},"nullable":true,"type":"array"},"trial_end":{"description":"Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.","format":"unix-time","nullable":true,"type":"integer"},"trial_from_plan":{"description":"Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.","nullable":true,"type":"boolean"}},"required":["expires_at"],"title":"SubscriptionsResourcePendingUpdate","type":"object","x-expandableFields":["subscription_items"]}
```
