#xmnlab-subscription-bill-now
1 messages ยท Page 1 of 1 (latest)
thank you so much. I appreciate that
Thanks for waiting, how exactly are you changing the units? What API are you calling?
Can you share an example request ID?
Are you trying to charge the user as soon as a usage record is created?
this is the configuration we are using:
"currency": "eur",
"active": True,
"tax_behavior": "exclusive",
"recurring": {
"interval": "month",
"interval_count": 1,
"usage_type": "licensed",
},
"billing_scheme": "tiered",
"tiers_mode": "graduated",
"tiers": [
{"up_to": 50, "unit_amount": 350, "flat_amount": 0},
{"up_to": 150, "unit_amount": 300, "flat_amount": 0},
{"up_to": "inf", "unit_amount": 250, "flat_amount": 0},
],
additionally, we are using python with stripe api and djstripe. also we are using stripe checkout
When you make the change, you can pass proration_behavior: 'always_invoice' to immediately invoice the difference