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

# vip.membership.changed@1 · OpenVibe.Services

HTML: [vip.membership.changed@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vip.membership.changed)

# VipMembershipChangedPayload `vip.membership.changed@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
- Decision: [ADR-012](/docs/adr/ADR-012)
- Schema: [`https://openvibe.network/contracts/events/payloads/vip.membership.changed.v1.json`](/docs/contracts/vip.membership.changed.json)

vip.membership.changed v1 (OpenVibe.VIP server/domain/entitlements.js emitChanged). A member's standing with a creator changed as projected from Billing (granted, renewed, cancel scheduled, expired, refunded…): active, expires\_at or cancel\_at\_period\_end differ from before, or a first look found an active membership. Names the plan version the membership was bought under. Envelope: subject { type: membership, id: <member usr\_…>:<creator usr\_…> }, visibility internal, priority important, actor service:vip.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `member` | [identity.subject-ref](/docs/contracts/identity.subject-ref) | yes |  |  |
| `creator` | [identity.subject-ref](/docs/contracts/identity.subject-ref) | yes |  |  |
| `kind` | string | yes | Billing entitlement kind; channel\_subscription today. |  |
| `active` | boolean | yes |  |  |
| `expires_at` | string \| null | yes |  |  |
| `cancel_at_period_end` | boolean | yes |  |  |
| `previous` | object \| null | yes | The projection before the change; null on first sight. |  |
| `reason` | string \| null | yes | Billing's reason (granted, renewed, refund, expired…) or VIP's (checked, cancel\_scheduled). |  |
| `source` | enum | yes |  | - `one of "event", "billing_check", "import"` |
| `billing_event_id` | string \| null | yes | The Billing event (evt\_…) behind the change, when it came from one. |  |
| `membership_id` | string \| null | yes |  | - `pattern ^vms_[0-9A-HJKMNP-TV-Z]{26}$` |
| `plan_id` | string \| null | yes |  |  |
| `plan_version_id` | string \| null | yes |  |  |
| `plan_version` | integer \| null | yes |  | - `minimum 1` |
| `subscription_id` | string \| null | yes | The Billing subscription (sub\_…). |  |

## Examples

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

 Valid: cancel-scheduled

~~~~
{
  "member": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "creator": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "kind": "channel_subscription",
  "active": true,
  "expires_at": "2026-10-23T10:00:00.000Z",
  "cancel_at_period_end": true,
  "previous": {
    "active": true,
    "expires_at": "2026-10-23T10:00:00.000Z",
    "cancel_at_period_end": false
  },
  "reason": "cancel_scheduled",
  "source": "event",
  "billing_event_id": null,
  "membership_id": "vms_01JAB3C4D5E6F7G8H9J0K1MNPZ",
  "plan_id": "vpl_01JAB3C4D5E6F7G8H9J0K1MNPV",
  "plan_version_id": "vpv_01JAB3C4D5E6F7G8H9J0K1MNPW",
  "plan_version": 2,
  "subscription_id": "sub_01JAB3C4D5E6F7G8H9J0K1MNQ0"
}
~~~~

Valid: granted

~~~~
{
  "member": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "creator": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "kind": "channel_subscription",
  "active": true,
  "expires_at": "2026-10-23T10:00:00.000Z",
  "cancel_at_period_end": false,
  "previous": null,
  "reason": "granted",
  "source": "event",
  "billing_event_id": "evt_01JAB3C4D5E6F7G8H9J0K1MNPY",
  "membership_id": "vms_01JAB3C4D5E6F7G8H9J0K1MNPZ",
  "plan_id": "vpl_01JAB3C4D5E6F7G8H9J0K1MNPV",
  "plan_version_id": "vpv_01JAB3C4D5E6F7G8H9J0K1MNPW",
  "plan_version": 2,
  "subscription_id": "sub_01JAB3C4D5E6F7G8H9J0K1MNQ0"
}
~~~~

Rejected: unknown-source

~~~~
{
  "member": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "creator": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "kind": "channel_subscription",
  "active": true,
  "expires_at": "2026-10-23T10:00:00.000Z",
  "cancel_at_period_end": false,
  "previous": null,
  "reason": "granted",
  "source": "webhook",
  "billing_event_id": "evt_01JAB3C4D5E6F7G8H9J0K1MNPY",
  "membership_id": "vms_01JAB3C4D5E6F7G8H9J0K1MNPZ",
  "plan_id": "vpl_01JAB3C4D5E6F7G8H9J0K1MNPV",
  "plan_version_id": "vpv_01JAB3C4D5E6F7G8H9J0K1MNPW",
  "plan_version": 2,
  "subscription_id": "sub_01JAB3C4D5E6F7G8H9J0K1MNQ0"
}
~~~~

## Validate

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