# SubscriptionUpdatePreview

What a prorated mid-cycle change would settle, computed without changing anything. Nothing is persisted or reserved: executing the change recomputes the figures, so a preview taken long before the change may differ.

```
type SubscriptionUpdatePreview {

  credit: Int!

  charge: Int!

  net: Int!

  direction: ProrationDirection!

  refundCapped: Boolean!

  effectiveAt: AWSTimestamp!

  currentPeriodEnd: AWSTimestamp!

  newPeriodEnd: AWSTimestamp

  nextPaymentAt: AWSTimestamp

}
```

### Fields[​](#fields "Enlace directo al Fields")

#### [`SubscriptionUpdatePreview.credit`](#credit) ● [`Int!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) non-null scalar[​](#credit "Enlace directo al credit")

Unused time that would be credited at the current amount, in the smallest currency unit.

#### [`SubscriptionUpdatePreview.charge`](#charge) ● [`Int!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) non-null scalar[​](#charge "Enlace directo al charge")

Time that would be charged at the new amount, in the smallest currency unit. An interval change charges the full new amount.

#### [`SubscriptionUpdatePreview.net`](#net) ● [`Int!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) non-null scalar[​](#net "Enlace directo al net")

Net that would be settled, `charge - credit`. Positive means a charge, negative a refund.

#### [`SubscriptionUpdatePreview.direction`](#direction) ● [`ProrationDirection!`](https://docs.monei.com/es/es/apis/graphql/types/enums/proration-direction/.md) non-null enum[​](#direction "Enlace directo al direction")

Whether the net would be charged, refunded, or neither.

#### [`SubscriptionUpdatePreview.refundCapped`](#refund-capped) ● [`Boolean!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/boolean/.md) non-null scalar[​](#refund-capped "Enlace directo al refund-capped")

Whether a refund would be capped below the net by the amount actually paid on the last payment.

#### [`SubscriptionUpdatePreview.effectiveAt`](#effective-at) ● [`AWSTimestamp!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/awstimestamp/.md) non-null scalar[​](#effective-at "Enlace directo al effective-at")

Time the change would take effect. Measured in seconds since the Unix epoch.

#### [`SubscriptionUpdatePreview.currentPeriodEnd`](#current-period-end) ● [`AWSTimestamp!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/awstimestamp/.md) non-null scalar[​](#current-period-end "Enlace directo al current-period-end")

End of the current billing period. Measured in seconds since the Unix epoch.

#### [`SubscriptionUpdatePreview.newPeriodEnd`](#new-period-end) ● [`AWSTimestamp`](https://docs.monei.com/es/es/apis/graphql/types/scalars/awstimestamp/.md) scalar[​](#new-period-end "Enlace directo al new-period-end")

End of the billing period the change would start; only present for an interval change. Measured in seconds since the Unix epoch.

#### [`SubscriptionUpdatePreview.nextPaymentAt`](#next-payment-at) ● [`AWSTimestamp`](https://docs.monei.com/es/es/apis/graphql/types/scalars/awstimestamp/.md) scalar[​](#next-payment-at "Enlace directo al next-payment-at")

When the next payment would be taken; only present for an interval change. Measured in seconds since the Unix epoch.

### Returned By[​](#returned-by "Enlace directo al Returned By")

[`previewSubscriptionUpdate`](https://docs.monei.com/es/es/apis/graphql/operations/queries/preview-subscription-update/.md) query
