---
title: "vip.plan-create-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/vip.plan-create-request"
updated: null
---

# vip.plan-create-request@1 · OpenVibe.Services

HTML: [vip.plan-create-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vip.plan-create-request)

# VipPlanCreateRequest `vip.plan-create-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: vip
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/vip/plan-create-request.v1.json`](/docs/contracts/vip.plan-create-request.json)

vip.plan-create-request@1: the body of vip.plan.create on OpenVibe.VIP. POST /api/v1/plans: { creator?, name, slug?, description?, benefits?, perks?, billing\_kind?, publish?, change\_note? } creates a plan and its version 1 (published at once with publish). A service must name the creator (a user SubjectRef or network); a person creates for themselves (staff may name another creator or network). billing\_kind defaults to channel\_subscription for a creator and null for the network (Billing has no network product yet). Refusals are problem+json: 422 vip.invalid\_input (no name, a bad slug or billing\_kind), vip.text\_too\_long, vip.perk\_not\_found or vip.invalid\_subject; 409 vip.plan\_exists (the slug is taken) or vip.plan.billing\_product\_taken (the creator already has a published plan sold as a channel subscription); 403 capability.denied or vip.not\_yours. Unknown fields are ignored.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `creator` | one of |  | The creator the plan belongs to (a user SubjectRef, or network for staff). |  |
| `name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `slug` | string |  | Default: made from the name. | - `pattern ^[a-z0-9][a-z0-9-]{0,47}$` |
| `description` | string \| null |  |  | - `maxLength 2000` |
| `benefits` | one of |  | At most 20, each at most 200 characters: a list, or one string with one benefit per line. |  |
| `perks` | array of string |  | Perk ids (vpk\_…) or keys: the creator's own active perks or the network's (422 vip.perk\_not\_found otherwise). | - `maxItems 30` |
| `billing_kind` | enum |  |  | - `one of "channel_subscription", null` |
| `publish` | boolean \| integer \| string |  | true (or 1, yes, on) publishes version 1 at once. |  |
| `change_note` | string \| null |  | Default: created. |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: person-draft

~~~~
{
  "name": "Superfan",
  "benefits": "Badge\nEmotes"
}
~~~~

Valid: service

~~~~
{
  "creator": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "name": "Supporter",
  "slug": "supporter",
  "description": "Back the stream every month.",
  "benefits": [
    "Supporter badge in chat"
  ],
  "perks": [
    "chat-badge"
  ],
  "publish": true
}
~~~~

Rejected: bad-billing-kind

~~~~
{
  "name": "Supporter",
  "billing_kind": "one_time"
}
~~~~

Rejected: no-name

~~~~
{
  "slug": "supporter",
  "publish": true
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('vip.plan-create-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
