Skill: Manage Academy Payment Plans
When to Use
- Use when staff must create or update sellable plans (bootcamp financing, subscriptions, onboarding packages).
- Use Path A for end-to-end plan setup (cohort/event/mentorship sets, consumables, pricing, financing, activation).
- Use Path B to configure plan upgrade offers (original plan → suggested plan).
- Use Path C to unlist, discontinue, or delete plans and related offers.
- Do NOT use for
main_currencyor checkout payment methods — usebc-payments-manage-academy-payment-methods. - Do NOT use for Stripe keys, subscription cancel/refund, or marketing course pages.
Concepts
- Resource sets — bundles sold through the plan:
cohort_set,mentorship_service_set,event_type_set(FK ids on the plan). - Consumables — quotas students spend (
service_itemson the plan).how_many: -1= unlimited. - Pricing —
price_per_month,price_per_quarter,price_per_half,price_per_yearin plancurrency. - Country adjustments —
pricing_ratio_exceptionson the plan (and on financing options). Keys are lowercase country codes. Each entry may useratio, directprice_per_*overrides, and optionalcurrency. - Financing — installment options (
financing_optionsids) whenis_renewable: false. - Billing model —
is_renewable: true→ subscription;false→ plan financing (requirestime_of_life+time_of_life_unit). - Capabilities — plan CRUD:
read_subscription/crud_subscription; sets + service-item link:crud_plan.Academyheader required on all/academy/routes.
Workflow
Phase 0 — Prerequisites
- Load
bc-payments-manage-academy-payment-methodsand complete Step 0 (main_currencyset). - Configure checkout payment methods if customers will pay online (same skill).
Path A — Create and activate a sellable plan
Order matters: create sets and service items before referencing them on the plan.
Phase 1 — Resource sets (crud_plan)
- Cohort set (if selling cohort access):
POST /v1/payments/academy/cohortset→ saveid. - Add cohorts:
PUT /v1/payments/academy/cohortset/{slug}/cohort?id=123,456— pass cohort ids or slugs as query params (idorslug, comma-separated). - Mentorship set (optional):
POST /v1/payments/academy/mentorshipservicesetwithslugandmentorship_service_ids. - Event type set (optional):
POST /v1/payments/academy/eventtypesetwithslugandevent_type_ids.
Phase 2 — Consumables (crud_service to create, crud_plan to link)
- Create service items:
POST /v1/payments/academy/serviceitemper consumable (serviceid,how_many, optionalis_renewable). - Or list existing:
GET /v1/payments/serviceitem(paginated).
Phase 3 — Financing options (optional, bootcamps)
POST /v1/payments/academy/financingoptionwithmonthly_price,how_many_months,currency, optionalpricing_ratio_exceptions.- Save returned ids for Phase 4.
Phase 4 — Create plan (crud_subscription)
POST /v1/payments/academy/plan with status: DRAFT, set FKs from Phase 1, pricing, pricing_ratio_exceptions, and financing_options ids.
Phase 5 — Link consumables (crud_plan)
POST /v1/payments/academy/plan/serviceitem with plan (slug or id) and service_item (id or array).
Phase 6 — Activate and verify
PUT /v1/payments/academy/plan/{slug}→{"status": "ACTIVE"}.- Staff:
GET /v1/payments/academy/plan/{slug}?country_code=ES. - Public:
GET /v1/payments/plan/{slug}?country_code=ES.
Phase 7 — Marketing
Load bc-marketing-create-or-clone-course with plan_slug from Phase 4.
Path B — Configure upgrade / upsell offer
GET /v1/payments/academy/plan— pickoriginal_plan(academy-owned) andsuggested_plan.POST /v1/payments/academy/planofferwith both plans andtranslations[](at least one).- Verify:
GET /v1/payments/planoffer?original_plan={slug}(public, no auth).
Path C — Retire or discontinue
PUTplanstatus: UNLISTEDorDISCONTINUED(discontinued_reasonrequired forDISCONTINUED).- Or
DELETE /v1/payments/academy/plan/{slug}(soft delete →status: DELETED). PUTplan offer with pastexpires_at, orDELETE /v1/payments/academy/planoffer/{id}.
Endpoints
Create cohort set
- POST
/v1/payments/academy/cohortset - Headers:
Authorization,Academy: <academy_id> - Permissions:
crud_plan
Request:
{
"slug": "full-stack-bootcamp-2025"
}
Response 201: { "id": 5, "slug": "full-stack-bootcamp-2025", "cohorts": [] }
Add cohorts to cohort set
- PUT
/v1/payments/academy/cohortset/{cohort_set_slug}/cohort?id=123,456 - Query params:
id(comma-separated cohort ids) orslug(comma-separated cohort slugs) - Permissions:
crud_plan
Response 200 or 201: { "status": "ok" }
Create mentorship service set
- POST
/v1/payments/academy/mentorshipserviceset - Permissions:
crud_plan
Request:
{
"slug": "premium-mentorship",
"mentorship_service_ids": [1, 2]
}
Create event type set
- POST
/v1/payments/academy/eventtypeset - Permissions:
crud_plan
Request:
{
"slug": "workshops-2025",
"event_type_ids": [3, 4]
}
Create service item (consumable)
- POST
/v1/payments/academy/serviceitem - Permissions:
crud_service
Request:
{
"service": 12,
"how_many": -1,
"sort_priority": 1
}
Response 201: includes id — use in plan serviceitem link.
Create financing option
- POST
/v1/payments/academy/financingoption - Permissions:
crud_subscription
Request:
{
"monthly_price": 299.0,
"how_many_months": 12,
"currency": "USD",
"pricing_ratio_exceptions": {
"mx": { "ratio": 0.7 },
"es": { "ratio": 0.85 }
}
}
Create plan
- POST
/v1/payments/academy/plan - Permissions:
crud_subscription - Pagination: N/A
Request:
{
"slug": "web-dev-bootcamp-2025",
"title": "Web Development Bootcamp 2025",
"currency": "USD",
"status": "DRAFT",
"is_renewable": false,
"is_onboarding": true,
"time_of_life": 6,
"time_of_life_unit": "MONTH",
"trial_duration": 0,
"trial_duration_unit": "DAY",
"price_per_month": 299.0,
"price_per_quarter": 799.0,
"price_per_half": 1499.0,
"price_per_year": 2499.0,
"pricing_ratio_exceptions": {
"es": { "ratio": 0.85 },
"mx": { "ratio": 0.7 },
"pe": { "price_per_month": 199.0, "currency": "USD" }
},
"cohort_set": 5,
"mentorship_service_set": 2,
"event_type_set": 3,
"financing_options": [10, 11],
"consumption_strategy": "PER_SEAT"
}
owner is set from the Academy header. Non-renewable plans require time_of_life + time_of_life_unit.
Link service items to plan
- POST
/v1/payments/academy/plan/serviceitem - Permissions:
crud_plan
Request:
{
"plan": "web-dev-bootcamp-2025",
"service_item": [456, 52, 93]
}
Unlink service item
- DELETE
/v1/payments/academy/plan/{plan_id}/serviceitem/{service_item_id} - Permissions:
crud_plan
List / get plans (staff)
- GET
/v1/payments/academy/plan(paginated) - GET
/v1/payments/academy/plan/{id_or_slug} - Permissions:
read_subscription - Query:
country_code,like,cohort,status, etc.
Use country_code to verify regional pricing adjustments on GET.
Update / activate plan
- PUT
/v1/payments/academy/plan/{id_or_slug}(partial OK) - Permissions:
crud_subscription
Request (activate):
{
"status": "ACTIVE"
}
Request (attach financing):
{
"financing_options": [10, 11]
}
Create plan offer
- POST
/v1/payments/academy/planoffer - Permissions:
crud_subscription
Request:
{
"original_plan": "basic-bootcamp",
"suggested_plan": "premium-bootcamp",
"show_modal": true,
"expires_at": null,
"translations": [
{
"lang": "en",
"title": "Upgrade to Premium",
"description": "Get mentorship and career support.",
"short_description": "Unlock premium features"
},
{
"lang": "es",
"title": "Mejora a Premium",
"description": "Obtén mentoría y apoyo profesional.",
"short_description": "Desbloquea funciones premium"
}
]
}
Response 201: includes id, nested original_plan, suggested_plan, and translations[].
original_planmust be owned by the academy.suggested_planmay be academy-owned or global (owner=null).- Only one active offer per
original_plan(slugactive-plan-offer-existson conflict).
List / update / delete plan offers (staff)
- GET
/v1/payments/academy/planoffer(paginated; filtersoriginal_plan,suggested_plan,like) - GET
/v1/payments/academy/planoffer/{id} - PUT
/v1/payments/academy/planoffer/{id}— upsertstranslationsbylang - DELETE
/v1/payments/academy/planoffer/{id} - Permissions:
read_subscription(GET),crud_subscription(write)
List filters:
| Query param | Behavior |
|-------------|----------|
| original_plan | Exact match on original plan id or slug (comma-separated) |
| suggested_plan | Exact match on suggested plan id or slug (comma-separated) |
| like | Case-insensitive partial match on original plan slug or title |
Verify public catalog
- GET
/v1/payments/plan/{slug}?country_code=ES— no auth - GET
/v1/payments/planoffer?original_plan={slug}— no auth - GET
/v1/payments/planoffer?like=bootcamp— no auth; partial match on original plan slug/title
Edge Cases
main_currencynull: stop and completebc-payments-manage-academy-payment-methodsStep 0.- Cohort add fails: cohorts must belong to the same academy; use
id/slugquery params on PUT, not JSON body. - Plan validation on renewable vs financing: do not set
time_of_lifeon priced renewable subscriptions; financing plans needtime_of_life. - DISCONTINUED plan:
discontinued_reasonis required (slugdiscontinued-reason-required). - Duplicate plan offer: only one active offer per original plan — update existing offer or expire/delete before creating another.
- Foreign original plan on offer: returns
403slugplan-not-belonging-to-academy. - Empty translations on POST offer: returns
400slugtranslations-required.
Checklist
main_currencyconfirmed.- Resource sets created and populated (if needed).
- Service items created and linked to plan.
- Financing options created and attached (if bootcamp installments).
- Plan created in
DRAFT, thenACTIVE. - Country pricing verified with
?country_code=on staff and public GET. - Plan offer created (Path B) and verified on public
GET /planoffer(if upsell configured). - Marketing course linked via
bc-marketing-create-or-clone-course(Path A Phase 7).
Next steps
After plans are active, load bc-marketing-create-or-clone-course to publish the course catalog entry with plan_slug.
For checkout issues, confirm payment methods via bc-payments-manage-academy-payment-methods.
Operational maintenance (consumables / plan financing)
When consumables are duplicated or issued for a future unpaid period (e.g. after catch-up charges or renew bugs), use the Django command prune_plan_consumables — do not delete rows manually without listing first.