# SubscriptionEventObject

Subscription snapshot embedded in a `SubscriptionEvent`.

```
type SubscriptionEventObject {

  id: ID!

  accountId: ID!

  createdAt: AWSTimestamp

  updatedAt: AWSTimestamp

  amount: Int

  billingDetails: ContactDetails

  currency: String!

  allowedPaymentMethods: [SubscriptionPaymentMethods]

  customer: Customer

  description: String

  descriptor: String

  cancelAtPeriodEnd: Boolean

  pauseIntervalCount: Int

  pauseAtPeriodEnd: Boolean

  skipIntervalCount: Int

  currentPeriodStart: AWSTimestamp

  currentPeriodEnd: AWSTimestamp

  trialPeriodDays: Int

  trialPeriodEnd: AWSTimestamp

  livemode: Boolean

  storeId: ID

  pointOfSaleId: ID

  sequenceId: ID

  lastOrderId: ID

  lastPayment: LastPayment

  paymentMethod: PaymentMethod

  shippingDetails: ContactDetails

  status: SubscriptionStatus!

  traceDetails: TraceDetails

  interval: Interval!

  intervalCount: Int!

  retryCount: Int

  metadata: [KeyValueItem!]

}
```

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

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

Unique identifier for the subscription.

#### [`SubscriptionEventObject.accountId`](#account-id) ● [`ID!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) non-null scalar[​](#account-id "Enlace directo al account-id")

MONEI account identifier.

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

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

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

Time at which the subscription was last updated. Measured in seconds since the Unix epoch.

#### [`SubscriptionEventObject.amount`](#amount) ● [`Int`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) scalar[​](#amount "Enlace directo al amount")

A positive integer representing how much to charge in the smallest currency unit.

#### [`SubscriptionEventObject.billingDetails`](#billing-details) ● [`ContactDetails`](https://docs.monei.com/es/es/apis/graphql/types/objects/contact-details/.md) object[​](#billing-details "Enlace directo al billing-details")

Billing details.

#### [`SubscriptionEventObject.currency`](#currency) ● [`String!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/string/.md) non-null scalar[​](#currency "Enlace directo al currency")

Three-letter ISO 4217 currency code.

#### [`SubscriptionEventObject.allowedPaymentMethods`](#allowed-payment-methods) ● [`[SubscriptionPaymentMethods]`](https://docs.monei.com/es/es/apis/graphql/types/enums/subscription-payment-methods/.md) list enum[​](#allowed-payment-methods "Enlace directo al allowed-payment-methods")

List of payment methods allowed for subscriptions.

#### [`SubscriptionEventObject.customer`](#customer) ● [`Customer`](https://docs.monei.com/es/es/apis/graphql/types/objects/customer/.md) object[​](#customer "Enlace directo al customer")

Customer details.

#### [`SubscriptionEventObject.description`](#description) ● [`String`](https://docs.monei.com/es/es/apis/graphql/types/scalars/string/.md) scalar[​](#description "Enlace directo al description")

An arbitrary string attached to the subscription. Often useful for displaying to users.

#### [`SubscriptionEventObject.descriptor`](#descriptor) ● [`String`](https://docs.monei.com/es/es/apis/graphql/types/scalars/string/.md) scalar[​](#descriptor "Enlace directo al descriptor")

Statement descriptor shown on the customer's bank statement.

#### [`SubscriptionEventObject.cancelAtPeriodEnd`](#cancel-at-period-end) ● [`Boolean`](https://docs.monei.com/es/es/apis/graphql/types/scalars/boolean/.md) scalar[​](#cancel-at-period-end "Enlace directo al cancel-at-period-end")

If true, the subscription will be canceled at the end of the current period.

#### [`SubscriptionEventObject.pauseIntervalCount`](#pause-interval-count) ● [`Int`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) scalar[​](#pause-interval-count "Enlace directo al pause-interval-count")

Number of intervals when subscription will be paused before it activates again.

#### [`SubscriptionEventObject.pauseAtPeriodEnd`](#pause-at-period-end) ● [`Boolean`](https://docs.monei.com/es/es/apis/graphql/types/scalars/boolean/.md) scalar[​](#pause-at-period-end "Enlace directo al pause-at-period-end")

If true, the subscription will be paused at the end of the current period.

#### [`SubscriptionEventObject.skipIntervalCount`](#skip-interval-count) ● [`Int`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) scalar[​](#skip-interval-count "Enlace directo al skip-interval-count")

The number of intervals during which the subscription billing cycle will be skipped without altering the subscription status.

#### [`SubscriptionEventObject.currentPeriodStart`](#current-period-start) ● [`AWSTimestamp`](https://docs.monei.com/es/es/apis/graphql/types/scalars/awstimestamp/.md) scalar[​](#current-period-start "Enlace directo al current-period-start")

The start date of the current subscription period. Measured in seconds since the Unix epoch.

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

The end date of the current subscription period. Measured in seconds since the Unix epoch.

#### [`SubscriptionEventObject.trialPeriodDays`](#trial-period-days) ● [`Int`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) scalar[​](#trial-period-days "Enlace directo al trial-period-days")

Number of days the trial period lasts.

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

The end date of the trial period. Measured in seconds since the Unix epoch.

#### [`SubscriptionEventObject.livemode`](#livemode) ● [`Boolean`](https://docs.monei.com/es/es/apis/graphql/types/scalars/boolean/.md) scalar[​](#livemode "Enlace directo al livemode")

Whether the subscription was created in live mode (`true`) or test mode (`false`).

#### [`SubscriptionEventObject.storeId`](#store-id) ● [`ID`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) scalar[​](#store-id "Enlace directo al store-id")

Related store ID.

#### [`SubscriptionEventObject.pointOfSaleId`](#point-of-sale-id) ● [`ID`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) scalar[​](#point-of-sale-id "Enlace directo al point-of-sale-id")

Related point-of-sale ID.

#### [`SubscriptionEventObject.sequenceId`](#sequence-id) ● [`ID`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) scalar[​](#sequence-id "Enlace directo al sequence-id")

A unique identifier representing a series of subsequent recurring payments.

#### [`SubscriptionEventObject.lastOrderId`](#last-order-id) ● [`ID`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) scalar[​](#last-order-id "Enlace directo al last-order-id")

An order ID created by your system that is attached to the last subscription payment.

#### [`SubscriptionEventObject.lastPayment`](#last-payment) ● [`LastPayment`](https://docs.monei.com/es/es/apis/graphql/types/objects/last-payment/.md) object[​](#last-payment "Enlace directo al last-payment")

Details of the last payment for the subscription.

#### [`SubscriptionEventObject.paymentMethod`](#payment-method) ● [`PaymentMethod`](https://docs.monei.com/es/es/apis/graphql/types/objects/payment-method/.md) object[​](#payment-method "Enlace directo al payment-method")

Details about the payment method at the time of the transaction.

#### [`SubscriptionEventObject.shippingDetails`](#shipping-details) ● [`ContactDetails`](https://docs.monei.com/es/es/apis/graphql/types/objects/contact-details/.md) object[​](#shipping-details "Enlace directo al shipping-details")

Shipping details.

#### [`SubscriptionEventObject.status`](#status) ● [`SubscriptionStatus!`](https://docs.monei.com/es/es/apis/graphql/types/enums/subscription-status/.md) non-null enum[​](#status "Enlace directo al status")

The status of the subscription.

#### [`SubscriptionEventObject.traceDetails`](#trace-details) ● [`TraceDetails`](https://docs.monei.com/es/es/apis/graphql/types/objects/trace-details/.md) object[​](#trace-details "Enlace directo al trace-details")

Tracing details of the triggering action.

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

Subscription interval. The `minute` and `hour` intervals are only available in test mode.

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

Number of intervals between subscription payments.

#### [`SubscriptionEventObject.retryCount`](#retry-count) ● [`Int`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) scalar[​](#retry-count "Enlace directo al retry-count")

Number of retries left for the subscription.

#### [`SubscriptionEventObject.metadata`](#metadata) ● [`[KeyValueItem!]`](https://docs.monei.com/es/es/apis/graphql/types/objects/key-value-item/.md) list object[​](#metadata "Enlace directo al metadata")

A set of key-value pairs attached to the subscription.

### Member Of[​](#member-of "Enlace directo al Member Of")

[`SubscriptionEvent`](https://docs.monei.com/es/es/apis/graphql/types/objects/subscription-event/.md) object
