Place a renewal order
Renew a subscription and collect recurring revenue using the 2Checkout Subscription Reference. You can renew subscriptions for both catalog and dynamic products.
Requirements
To place a renewal order, you need to provide a valid subscription reference number.
Payment methods
You can place renewal orders using the following payment methods:
Credit/Debit cards: Visa, Visa Electron, MasterCard, Maestro, Amex, Discover, Dankort, Carte Bleue, JCB. 2Checkout supports local Brazilian cards.
PayPal and PayPal Express
Purchase Order
Wire
Check
WeChat Pay
iDEAL
Alipay
Trustly
ApplePay
2Pay.js
Boleto/Pix
Google Pay
TEST orders
Free orders (no payment information required)
Previous order references - In addition to the payment methods enumerated above, 2Checkout also supports 1-click purchase flows in which you use valid previous order references belonging to returning customers to pay for new orders with their previously used cards and PayPal accounts.
Order with installments
Use the PaymentDetails object to change the payment method used in the ordering process.
Request parameters
sessionID
Required (string)
Session identifier, the output of the Login method. Include sessionID into all your requests. 2Checkout throws an exception if the values are incorrect. The sessionID expires in 10 minutes.
Required (Object) Object designed to collect all data necessary for an order, including billing, product/subscription plan and payment details.
To place an order with PayPal rather than PayPal Express, use PAYPAL as the type of the PaymentDetails object and send the shopper email and a return URL as part of the PaymentMethod object. See code sample.
SubscriptionReference
Required (String)
2Checkout generated subscription reference number. E.q. A8C5671BFE.
Request sample
Response parameters
Object
Renew a subscription with its addons
Use a single renewal order to renew a main subscription together with its addon subscriptions. 2Checkout charges the customer once for the whole order. Send one item with RenewalInformation.SubscriptionReference for the main subscription and one for each addon subscription to renew.
• Addon subscriptions are prorated to the main subscription’s next expiration date when the main subscription is renewed in the same order, and to its current expiration date otherwise.
• Active addon subscriptions that you leave out of the order have automatic renewal turned off after the payment succeeds.
• You cannot renew an addon subscription whose expiration date is not before its main subscription’s expiration date. Renew the main subscription first.
Request sample
Response parameters
Object
Error codes
ADDON_SUBSCRIPTION_NOT_FOUND
Addon subscription [subscription reference] was not found.
ADDON_SUBSCRIPTION_NOT_ACTIVE
Addon subscription [subscription reference] is not active.
ADDON_SUBSCRIPTION_NOT_LINKED
Addon subscription [subscription reference] is not linked to a main subscription.
ADDON_RENEWAL_EXCEEDS_MAIN_EXPIRATION
Addon subscription [subscription reference] cannot be renewed because its expiration date is not before its main subscription's expiration date. Renew the main subscription first.
INVALID_SUBSCRIPTION_STATE
Addon subscription [subscription reference] cannot be renewed. A cancellation request has been registered for it.
Last updated
Was this helpful?