Create or update a Straventa plan (platform admin)
Plan 2026-06-03-harmonization-sprint T050. Creates or updates a catalog plan. Platform-admin only (platform.payments.plans.write). The catalog is global; any tenant may read it to choose a plan.
Plan 2026-06-03-harmonization-sprint T050. Creates or updates a catalog plan. Platform-admin only (platform.payments.plans.write). The catalog is global; any tenant may read it to choose a plan.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/payments/admin/plans" \ -H "Content-Type: application/json" \ -d '{ "plan_key": "starter_monthly", "name": "Starter (Monthly)", "cadence": "monthly", "amount_cents": 250000, "active": true }'{
"plan_key": "starter_monthly",
"name": "Starter (Monthly)",
"cadence": "monthly",
"amount_cents": 250000,
"currency": "IDR",
"active": true
}{
"error": "validation_failed",
"message": "amount_idr is required",
"request_id": "req_018f4d9f"
}{
"error": "validation_failed",
"message": "amount_idr is required",
"request_id": "req_018f4d9f"
}Was this page helpful?