curl --request POST \
--url https://api.unibee.dev/merchant/subscription/config/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"downgradeEffectImmediately": true,
"gatewayVATRule": [
{
"gatewayNames": "<string>",
"ignoreVatNumber": true,
"taxPercentage": 123,
"validCountryCodes": "<string>"
}
],
"incompleteExpireTime": 123,
"invoiceEmail": true,
"showZeroInvoice": true,
"tryAutomaticPaymentBeforePeriodEnd": 123,
"upgradeProration": true
}
'{
"code": 123,
"data": {
"config": {
"downgradeEffectImmediately": true,
"fiatExchangeApiKey": "<string>",
"gatewayVATRule": "<string>",
"incompleteExpireTime": 123,
"invoiceEmail": true,
"invoicePdfGenerate": true,
"showZeroInvoice": true,
"tryAutomaticPaymentBeforePeriodEnd": 123,
"upgradeProration": true
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}curl --request POST \
--url https://api.unibee.dev/merchant/subscription/config/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"downgradeEffectImmediately": true,
"gatewayVATRule": [
{
"gatewayNames": "<string>",
"ignoreVatNumber": true,
"taxPercentage": 123,
"validCountryCodes": "<string>"
}
],
"incompleteExpireTime": 123,
"invoiceEmail": true,
"showZeroInvoice": true,
"tryAutomaticPaymentBeforePeriodEnd": 123,
"upgradeProration": true
}
'{
"code": 123,
"data": {
"config": {
"downgradeEffectImmediately": true,
"fiatExchangeApiKey": "<string>",
"gatewayVATRule": "<string>",
"incompleteExpireTime": 123,
"invoiceEmail": true,
"invoicePdfGenerate": true,
"showZeroInvoice": true,
"tryAutomaticPaymentBeforePeriodEnd": 123,
"upgradeProration": true
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
DowngradeEffectImmediately, Immediate Downgrade (by default, the downgrades takes effect at the end of the period )
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)
Show child attributes
Show child attributes
DowngradeEffectImmediately, whether subscription update should effect immediately or at period end, default at period end
IncompleteExpireTime, em.. default 1day for plan of month type
InvoiceEmail, whether to send invoice email to user, default yes
InvoicePdfGenerate, whether to generate invoice pdf to user, default yes
ShowZeroInvoice, show zero invoice or not, default no
TryAutomaticPaymentBeforePeriodEnd, default 30 min
UpgradeProration, whether subscription update generation proration invoice or not, default yes