Billing settings

Update billing settings

PUT/api/v1/billing/settings

Replaces your settings. A field you leave out takes its default, and leaving out paymentInstructions or supportEmail clears it. Subscriptions keep the step already scheduled for them, and the new values apply from the step after. A new invoiceStartAccess applies to subscriptions started after it.

Authorization

bearerAuth
AuthorizationBearer <token>

An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.

In: header

Header Parameters

FlexMalipo-Version?"2026-11-06"

The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.

Value in

  • "2026-11-06"

Request Body

application/json

How your subscriptions renew. Fields you leave out take their default.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://api-malipo.flex.co.tz/api/v1/billing/settings" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06" \  -H "Content-Type: application/json" \  -d '{}'
{  "renewalNoticeDays": 7,  "daysToPay": 3,  "accessWhileUnpaid": true,  "afterIssueReminders": [    -1,    0,    3  ],  "usageGraceMinutes": 60,  "upgradeTiming": "now",  "upgradeProration": "create_prorations",  "downgradeTiming": "period_end",  "downgradeProration": "create_prorations",  "oneSubscriptionPerCustomer": false,  "paymentInstructions": "Pay by bank transfer to Example Bank, account 0123456789, and quote the invoice number.",  "supportEmail": "billing@example.com",  "invoiceStartAccess": "immediately",  "trialUsage": {    "mode": "free_up_to",    "amount": 5000,    "currency": "TZS"  },  "includePayLink": true,  "zeroUsageInvoice": "issue"}