Update Merchant Subscription Config
Endpoint Overview
POSThttps://api.unibee.dev/merchant/subscription/config/update
Update Merchant Subscription Config
Authorization
All UniBee Merchant API requests require authentication via API key.Parameters
Parameters for this endpoint are listed below. The schema is also shown in the Try it panel.Request body
Request examples
cURL
Sandbox
Response
Success responses return a JSON envelope withcode, data, message, redirect, and requestId. code 0 indicates success.
Error handling
code in the response body is non-zero, check message for details. Use requestId when contacting support.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
AutoChargeMaxRetryCount, max automatic-charge attempts for one invoice including the first automatic attempt; 0 = unlimited (current behavior). Omit to leave unchanged.
AutoChargeRetryInterval, seconds to wait before retrying a failed auto-charge within the window (default 12h). Omit to leave unchanged.
DiscountNewUserIgnoreFreeZeroInvoice, when true ignore only true free-plan zeros (no discount code / discount amount / promo credit) for new-user scope; default false = legacy any paid invoice. Omit to leave unchanged.
DowngradeEffectImmediately, Immediate Downgrade (by default, the downgrades takes effect at the end of the period )
DowngradeNonImmediatelyEffectBeforePeriodEnd, seconds, For non-immediate downgrade, can take effect before period end (default 30 minutes, 1800 seconds)
IncompleteExpireTime, seconds, Incomplete Status Duration(The period during which subscription remains in 'incomplete')
InvoiceEmail, Enable Invoice Email (Toggle to send invoice email to customers)
ShowZeroInvoice, Display Invoices With Zero Amount (Invoice With Zero Amount will hidden in list by default)
TryAutomaticPaymentBeforePeriodEnd, Auto-charge Start Before Period End (Time Difference for Auto-Payment Activation Before Period End)
UpgradeProration, Prorated Upgrade Invoices(Upgrades will generate prorated invoice by default)
UpgradeResetBillingCycle, same-interval upgrades only: full new-plan cycle from upgrade time and reset due day when true (default); legacy fixed-end proration when false. Omit on update to leave unchanged.

