Saltar al contenido principal

activateSubscription

Activates a subscription of the current account, or replaces its payment method, with a payment that it returns. For a PENDING subscription, the payment charges amount plus addAmount. With a trial, it charges trialAmount plus addAmount, or without trialAmount it only verifies the payment method, for an amount of addAmount (default 0). When the payment succeeds, the subscription becomes ACTIVE, or TRIALING with a trial. For an ACTIVE subscription, the payment only verifies a new payment method and charges nothing. For a PAST_DUE subscription, it charges amount plus addAmount with the new payment method, and on success the subscription becomes ACTIVE again. A CANCELED or EXPIRED subscription fails. Arguments: - input: The activation to perform.

activateSubscription(
input: ActivateSubscriptionInput!
): Payment

Arguments​

activateSubscription.input ● ActivateSubscriptionInput! non-null input​

Type​

Payment object​

A payment as the payment mutations return it (createPayment, refundPayment, capturePayment, cancelPayment and the send mutations). Amounts are integers in the smallest unit of the currency: cents for EUR, whole yen for JPY. To read a payment later, use charge.