patch
https://api.benjipays.com/v2/organizations//plan
Access: Requires DISTRIBUTOR actor type
Changes the billing plan assigned to an Organization. Used when an MSP upgrades or downgrades a customer's subscription.
Workflow:
- Validates organization belongs to authenticated distributor
- Validates new plan is visible to distributor (in their plan catalog)
- Checks that new plan is different from current plan
- Updates
billing.planIdandbilling.detailson organization - Creates activity log entry with previous and new plan details
Billing Implications:
- Plan change takes effect immediately
- Current month billed at new plan rate (no proration for now)
- Usage/overages calculated against new plan's included transactions
Validations:
- Cannot change to the same plan (returns 409)
- New plan must belong to distributor's catalog (returns 404 if not)
- Organization must belong to distributor (returns 404 if not)
Requires JWT authentication and 'partners:organizations:change-plan' scope.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
