curl --request POST \
--url https://api.unibee.dev/merchant/subscription/config/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"downgradeEffectImmediately": true,
"downgradeNonImmediatelyEffectBeforePeriodEnd": 123,
"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,
"downgradeNonImmediatelyEffectBeforePeriodEnd": 123,
"fiatExchangeApiKey": "<string>",
"gatewayVATRule": "<string>",
"incompleteExpireTime": 123,
"invoiceEmail": true,
"invoicePdfGenerate": true,
"showZeroInvoice": true,
"tryAutomaticPaymentBeforePeriodEnd": 123,
"upgradeProration": true
}
},
"merchantId": 123,
"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,
"downgradeNonImmediatelyEffectBeforePeriodEnd": 123,
"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,
"downgradeNonImmediatelyEffectBeforePeriodEnd": 123,
"fiatExchangeApiKey": "<string>",
"gatewayVATRule": "<string>",
"incompleteExpireTime": 123,
"invoiceEmail": true,
"invoicePdfGenerate": true,
"showZeroInvoice": true,
"tryAutomaticPaymentBeforePeriodEnd": 123,
"upgradeProration": true
}
},
"merchantId": 123,
"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 )
DowngradeNonImmediatelyEffectBeforePeriodEnd, seconds, For non-immediate downgrade, can take effect before period end (default 30 minutes, 1800 seconds)
Show child attributes
IncompleteExpireTime, seconds, Incomplete Status Duration(The period during which subscription remains in
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)