योजना परिवर्तन पूर्वावलोकन
योजना परिवर्तन के प्रभावों का पूर्वावलोकन करें इससे पहले कि आप इसे स्वीकार करें। तत्काल चार्ज राशि और नई सदस्यता विवरण लौटाता है बिना किसी वास्तविक परिवर्तन किए।
उपयोग के मामले
- चेकआउट पुष्टि: ग्राहकों को योजना परिवर्तन की पुष्टि करने से पहले प्रोरेटेड चार्ज दिखाएं
- मूल्य निर्धारण कैलकुलेटर: अपने एप्लिकेशन में अपग्रेड/डाउनग्रेड कैलकुलेटर बनाएं
- ग्राहक स्व-सेवा: ग्राहकों को सटीक मूल्य निर्धारण के साथ योजना विकल्पों का पता लगाने दें
- डिस्काउंट सत्यापन: पूर्वावलोकन करें कि कैसे स्टैक्ड डिस्काउंट कोड योजना परिवर्तन मूल्य को प्रभावित करते हैं
discount_codes (20 तक कोडों की एक श्रृंखला, क्रम में लागू) शामिल कर सकते हैं। एकल discount_code फ़ील्ड अप्रचलित है लेकिन पिछड़ी संगतता के लिए अभी भी समर्थित है; हम आगे बढ़ने के लिए discount_codes की सिफारिश करते हैं।प्रतिक्रिया फ़ील्ड
पूर्वावलोकन प्रतिक्रिया में शामिल है:| फ़ील्ड | विवरण |
|---|---|
immediate_charge | वह चार्ज जो तुरंत बनाया जाएगा, जिसमें लाइन आइटम और सारांश शामिल है |
new_plan | पूर्ण सब्सक्रिप्शन वस्तु दिखाते हुए कि योजना परिवर्तन के बाद यह कैसा दिखेगा |
प्राधिकरण
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
पथ पैरामीटर
Subscription Id
बॉडी
Unique identifier of the product to subscribe to
Proration Billing Mode
prorated_immediately, full_immediately, difference_immediately, do_not_bill Number of units to subscribe for. Must be at least 1.
x >= 0Whether adaptive currency fees should be included in the price (true) or added on top (false). If not specified, uses the subscription's stored setting.
Addons for the new plan. Note : Leaving this empty would remove any existing addons
DEPRECATED: Use discount_codes instead. Cannot be used together with discount_codes.
Stacked discount codes to apply to the new plan. Max 20. Cannot be used together with discount_code. If provided, replaces any existing discount codes. Empty array removes all discounts. If not provided (None), existing discounts with preserve_on_plan_change=true are preserved.
When to apply the plan change.
immediately(default): Apply the plan change right awaynext_billing_date: Schedule the change for the next billing date
immediately, next_billing_date Metadata for the payment. If not passed, the metadata of the subscription will be taken
Controls behavior when the plan change payment fails.
prevent_change: Keep subscription on current plan until payment succeedsapply_change(default): Apply plan change immediately regardless of payment outcome
If not specified, uses the business-level default setting.
prevent_change, apply_change