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

# billing.subscription-request@1 · OpenVibe.Services

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

# BillingSubscriptionRequest `billing.subscription-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: billing
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/billing/subscription-request.v1.json`](/docs/contracts/billing.subscription-request.json)

billing.subscription-request@1: the body of POST /api/v1/subscriptions on OpenVibe.Billing (billing.subscription.manage): pay one period of subscriber → streamer, from the subscriber's credit (source credit, the default) or from a provider receipt (source receipt, which also needs billing.ledger.admin: claiming money was received is operator grade). POST /api/v1/subscriptions/:id/cancel (cancels at the period end, with the provider too) and the GETs take no body. Every mutating call needs an Idempotency-Key header (a replay with the same key and body returns the first answer) and is refused with 503 billing.frozen while the economy is frozen. Refusals are problem+json (billing.invalid\_input, billing.invalid\_amount, billing.insufficient\_funds, …).

## Fields

This schema has no named fields.

## Examples

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

 Valid: credit

~~~~
{
  "subscriber": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "streamer": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "source": "credit",
  "auto_renew": true
}
~~~~

Valid: tier

~~~~
{
  "subscriber": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "streamer": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "source": "credit",
  "tier": 2
}
~~~~

Rejected: unknown-source

~~~~
{
  "subscriber": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "streamer": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "source": "gift"
}
~~~~

## Validate

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