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
nextPaymentAt: AWSTimestamp
lastProrationAt: AWSTimestamp
lastProration: LastProration
trialPeriodDays: Int
trialPeriodEnd: AWSTimestamp
trialAmount: Int
trialIntervalCount: Int
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
SubscriptionEventObject.id ● ID! non-null scalar
Unique identifier for the subscription.
SubscriptionEventObject.accountId ● ID! non-null scalar
MONEI account identifier.
SubscriptionEventObject.createdAt ● AWSTimestamp scalar
Time at which the subscription was created. Measured in seconds since the Unix epoch.
SubscriptionEventObject.updatedAt ● AWSTimestamp scalar
Time at which the subscription was last updated. Measured in seconds since the Unix epoch.
SubscriptionEventObject.amount ● Int scalar
A positive integer representing how much to charge in the smallest currency unit.
SubscriptionEventObject.billingDetails ● ContactDetails object
Billing details.
SubscriptionEventObject.currency ● String! non-null scalar
Three-letter ISO 4217 currency code.
SubscriptionEventObject.allowedPaymentMethods ● [SubscriptionPaymentMethods] list enum
List of payment methods allowed for subscriptions.
SubscriptionEventObject.customer ● Customer object
Customer details.
SubscriptionEventObject.description ● String scalar
An arbitrary string attached to the subscription. Often useful for displaying to users.
SubscriptionEventObject.descriptor ● String scalar
Statement descriptor shown on the customer's bank statement.
SubscriptionEventObject.cancelAtPeriodEnd ● Boolean scalar
If true, the subscription will be canceled at the end of the current period.
SubscriptionEventObject.pauseIntervalCount ● Int scalar
Number of billing periods left to skip while the subscription is paused.
SubscriptionEventObject.pauseAtPeriodEnd ● Boolean scalar
If true, the subscription will be paused at the end of the current period.
SubscriptionEventObject.skipIntervalCount ● Int scalar
Number of upcoming payments to skip. The status does not change.
SubscriptionEventObject.currentPeriodStart ● AWSTimestamp scalar
The start date of the current subscription period. Measured in seconds since the Unix epoch.
SubscriptionEventObject.currentPeriodEnd ● AWSTimestamp scalar
The end date of the current subscription period. Measured in seconds since the Unix epoch.
SubscriptionEventObject.nextPaymentAt ● AWSTimestamp scalar
When the next payment will be made. While PAST_DUE, the time of the next retry. Measured in seconds since the Unix epoch.
SubscriptionEventObject.lastProrationAt ● AWSTimestamp scalar
Time of the most recent prorated change. Measured in seconds since the Unix epoch.
SubscriptionEventObject.lastProration ● LastProration object
Amounts settled by the most recent prorated change.
SubscriptionEventObject.trialPeriodDays ● Int scalar
Number of days the trial period lasts.
SubscriptionEventObject.trialPeriodEnd ● AWSTimestamp scalar
The end date of the trial period. Measured in seconds since the Unix epoch.
SubscriptionEventObject.trialAmount ● Int scalar
Amount charged for each billing period of the trial, as a positive integer in the smallest currency unit. Once the trial ends, the regular amount is charged.
SubscriptionEventObject.trialIntervalCount ● Int scalar
Number of trial billing periods left, counting the current one. It is removed when the trial ends.
SubscriptionEventObject.livemode ● Boolean scalar
Whether the subscription was created in live mode (true) or test mode (false).
SubscriptionEventObject.storeId ● ID scalar
Related store ID.
SubscriptionEventObject.pointOfSaleId ● ID scalar
ID of the point of sale the subscription was created for.
SubscriptionEventObject.sequenceId ● ID scalar
ID of the first payment of the recurring sequence that renewal payments charge.
SubscriptionEventObject.lastOrderId ● ID scalar
Order ID of the last activation or renewal payment. MONEI generates it.
SubscriptionEventObject.lastPayment ● LastPayment object
The last activation or renewal payment, including a failed one.
SubscriptionEventObject.paymentMethod ● PaymentMethod object
Payment method of the last payment.
SubscriptionEventObject.shippingDetails ● ContactDetails object
Shipping details.
SubscriptionEventObject.status ● SubscriptionStatus! non-null enum
The status of the subscription.
SubscriptionEventObject.traceDetails ● TraceDetails object
Tracing details of the triggering action.
SubscriptionEventObject.interval ● Interval! non-null enum
Unit of the billing period. The period is intervalCount of this unit.
SubscriptionEventObject.intervalCount ● Int! non-null scalar
Number of intervals between subscription payments.
SubscriptionEventObject.retryCount ● Int scalar
Number of retries scheduled so far for a failed payment. A successful payment clears it.
SubscriptionEventObject.metadata ● [KeyValueItem!] list object
A set of key-value pairs attached to the subscription.
Member Of
SubscriptionEvent object