# ActivateSubscriptionInput

Input for `activateSubscription`. Generates the initial payment that establishes the recurring mandate.

```
input ActivateSubscriptionInput {

  paymentToken: String

  addAmount: Int

  allowedPaymentMethods: [SubscriptionPaymentMethods]

  sequenceId: ID

  sessionId: ID

  completeUrl: String

  cancelUrl: String

  failUrl: String

  id: ID!

  metadata: [KeyValueInput!]

  expireAt: AWSTimestamp

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`ActivateSubscriptionInput.paymentToken`](#payment-token) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#payment-token "Direct link to payment-token")

A payment token generated by monei.js Components or a paymentToken saved after a previous successful payment. In case of the first one, you will also need to send the `sessionId` used to generate the token in the first place.

#### [`ActivateSubscriptionInput.addAmount`](#add-amount) ● [`Int`](https://docs.monei.com/apis/graphql/types/scalars/int/.md) scalar[​](#add-amount "Direct link to add-amount")

The amount to be added to the subscription's initial payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge 1.00 USD).

#### [`ActivateSubscriptionInput.allowedPaymentMethods`](#allowed-payment-methods) ● [`[SubscriptionPaymentMethods]`](https://docs.monei.com/apis/graphql/types/enums/subscription-payment-methods/.md) list enum[​](#allowed-payment-methods "Direct link to allowed-payment-methods")

List of payment methods allowed for this activation payment.

#### [`ActivateSubscriptionInput.sequenceId`](#sequence-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#sequence-id "Direct link to sequence-id")

A unique identifier representing a series of subsequent recurring payments (e.g. when migrating).

#### [`ActivateSubscriptionInput.sessionId`](#session-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#session-id "Direct link to session-id")

Existing payment session ID to reuse.

#### [`ActivateSubscriptionInput.completeUrl`](#complete-url) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#complete-url "Direct link to complete-url")

The URL the customer is redirected to after a successful payment.

#### [`ActivateSubscriptionInput.cancelUrl`](#cancel-url) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#cancel-url "Direct link to cancel-url")

The URL the customer is redirected to when they cancel the payment.

#### [`ActivateSubscriptionInput.failUrl`](#fail-url) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#fail-url "Direct link to fail-url")

The URL the customer is redirected to after a failed payment.

#### [`ActivateSubscriptionInput.id`](#id) ● [`ID!`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) non-null scalar[​](#id "Direct link to id")

Unique identifier for the subscription to activate.

#### [`ActivateSubscriptionInput.metadata`](#metadata) ● [`[KeyValueInput!]`](https://docs.monei.com/apis/graphql/types/inputs/key-value-input/.md) list input[​](#metadata "Direct link to metadata")

A set of key-value pairs merged into the payment metadata.

#### [`ActivateSubscriptionInput.expireAt`](#expire-at) ● [`AWSTimestamp`](https://docs.monei.com/apis/graphql/types/scalars/awstimestamp/.md) scalar[​](#expire-at "Direct link to expire-at")

Activation payment expiration. Measured in seconds since the Unix epoch. Cannot exceed `trialPeriodEnd` minus a 15-minute safety buffer.

### Member Of[​](#member-of "Direct link to Member Of")

[`activateSubscription`](https://docs.monei.com/apis/graphql/operations/mutations/activate-subscription/.md) mutation
