OpenVibe.Billing API

Generated at from openvibe-contracts v0.454.0 and openvibe-sdk v0.193.0.

Server https://billing.openvibe.network. 48 routes performing 19 capabilities. OpenAPI 3.1 document.

POST /api/v1/admin/adjustments

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Request body
application/json billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

GET /api/v1/admin/freeze

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Input
billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

POST /api/v1/admin/freeze

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Request body
application/json billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

GET /api/v1/admin/import-holds

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Input
billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

GET /api/v1/admin/provider-events

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Input
billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

POST /api/v1/admin/provider-events/{id}/reprocess

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

GET /api/v1/admin/reconcile

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Input
billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

POST /api/v1/admin/sweep

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Request body
application/json billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

GET /api/v1/balances/{subject}

Read a subject's balances (spendable credit, creator payable, pending payouts) and transaction history.

Capabilities
billing.balance.read
Visibility
internal
Parameters
  • subject (path, required)
Response
application/json billing.balance-read-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.balance.read</strong> (internal): Read a subject&#39;s balances (spendable credit, creator payable, pending payouts) and transaction history.</p>

GET /api/v1/cashouts

Operator payouts: list cashouts, approve one after its escrow period with the payout reference from the provider (required), or deny it (reversal back to creator payable).

Capabilities
billing.cashout.manage
Visibility
internal
Input
billing.cashout-decision@1
Response
application/json billing.cashout-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.cashout.manage</strong> (internal): Operator payouts: list cashouts, approve one after its escrow period with the payout reference from the provider (required), or deny it (reversal back to creator payable). Separately controlled from every other capability (ADR-012 rule 10).</p>

POST /api/v1/cashouts

Request a cashout of creator payable into escrow (minimum and escrow period enforced by Billing), or recycle creator payable into the subject's own spendable credit.

Capabilities
billing.cashout.request
Visibility
internal
Request body
application/json billing.cashout-request@1
Response
application/json billing.cashout-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.cashout.request</strong> (internal): Request a cashout of creator payable into escrow (minimum and escrow period enforced by Billing), or recycle creator payable into the subject&#39;s own spendable credit. Bought credit is never withdrawable.</p>

GET /api/v1/cashouts/{id}

Request a cashout of creator payable into escrow (minimum and escrow period enforced by Billing), or recycle creator payable into the subject's own spendable credit.

Capabilities
billing.cashout.request
Visibility
internal
Parameters
  • id (path, required)
Input
billing.cashout-request@1
Response
application/json billing.cashout-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.cashout.request</strong> (internal): Request a cashout of creator payable into escrow (minimum and escrow period enforced by Billing), or recycle creator payable into the subject&#39;s own spendable credit. Bought credit is never withdrawable.</p>

POST /api/v1/cashouts/{id}/approve

Operator payouts: list cashouts, approve one after its escrow period with the payout reference from the provider (required), or deny it (reversal back to creator payable).

Capabilities
billing.cashout.manage
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.cashout-decision@1
Response
application/json billing.cashout-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.cashout.manage</strong> (internal): Operator payouts: list cashouts, approve one after its escrow period with the payout reference from the provider (required), or deny it (reversal back to creator payable). Separately controlled from every other capability (ADR-012 rule 10).</p>

POST /api/v1/cashouts/{id}/deny

Operator payouts: list cashouts, approve one after its escrow period with the payout reference from the provider (required), or deny it (reversal back to creator payable).

Capabilities
billing.cashout.manage
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.cashout-decision@1
Response
application/json billing.cashout-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.cashout.manage</strong> (internal): Operator payouts: list cashouts, approve one after its escrow period with the payout reference from the provider (required), or deny it (reversal back to creator payable). Separately controlled from every other capability (ADR-012 rule 10).</p>

GET /api/v1/entitlements/{subject}

Is a subject entitled to a streamer's subscription right now, and until when.

Capabilities
billing.entitlement.check
Visibility
internal
Parameters
  • subject (path, required)
Response
application/json billing.entitlement-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.entitlement.check</strong> (internal): Is a subject entitled to a streamer&#39;s subscription right now, and until when. Answered from Billing alone (works with Live offline).</p>

POST /api/v1/intents

Start a checkout: create a payment intent priced by Billing (never by the client) for a Vibes purchase or a channel subscription, and get the provider checkout URL or PowerChat app_ref.

Capabilities
billing.intent.create
Visibility
internal
Request body
application/json billing.intent-request@1
Response
application/json billing.intent-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.intent.create</strong> (internal): Start a checkout: create a payment intent priced by Billing (never by the client) for a Vibes purchase or a channel subscription, and get the provider checkout URL or PowerChat app_ref. Also reads intents and captures approved PayPal orders.</p>

GET /api/v1/intents/{id}

Start a checkout: create a payment intent priced by Billing (never by the client) for a Vibes purchase or a channel subscription, and get the provider checkout URL or PowerChat app_ref.

Capabilities
billing.intent.create
Visibility
internal
Parameters
  • id (path, required)
Input
billing.intent-request@1
Response
application/json billing.intent-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.intent.create</strong> (internal): Start a checkout: create a payment intent priced by Billing (never by the client) for a Vibes purchase or a channel subscription, and get the provider checkout URL or PowerChat app_ref. Also reads intents and captures approved PayPal orders.</p>

POST /api/v1/intents/{id}/capture

Start a checkout: create a payment intent priced by Billing (never by the client) for a Vibes purchase or a channel subscription, and get the provider checkout URL or PowerChat app_ref.

Capabilities
billing.intent.create
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.intent-request@1
Response
application/json billing.intent-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.intent.create</strong> (internal): Start a checkout: create a payment intent priced by Billing (never by the client) for a Vibes purchase or a channel subscription, and get the provider checkout URL or PowerChat app_ref. Also reads intents and captures approved PayPal orders.</p>

POST /api/v1/purchases/settle

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Request body
application/json billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

POST /api/v1/recycle

Request a cashout of creator payable into escrow (minimum and escrow period enforced by Billing), or recycle creator payable into the subject's own spendable credit.

Capabilities
billing.cashout.request
Visibility
internal
Request body
application/json billing.cashout-request@1
Response
application/json billing.cashout-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.cashout.request</strong> (internal): Request a cashout of creator payable into escrow (minimum and escrow period enforced by Billing), or recycle creator payable into the subject&#39;s own spendable credit. Bought credit is never withdrawable.</p>

GET /api/v1/stats

Network-wide money counts with no person in them, for a product's public stats: Vibes bought with money (all time, recent windows and a daily series) and channel subscriptions (active now, started in

Capabilities
billing.stats.read
Visibility
internal
Response
application/json billing.stats-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.stats.read</strong> (internal): Network-wide money counts with no person in them, for a product&#39;s public stats: Vibes bought with money (all time, recent windows and a daily series) and channel subscriptions (active now, started in recent windows and a daily series). Test and imported rows are left out of the windows and series.</p>

GET /api/v1/subscriptions

Is a subject entitled to a streamer's subscription right now, and until when.

Capabilities
billing.entitlement.check, billing.subscription.manage
Visibility
internal
Input
billing.subscription-request@1
Response
application/json one of billing.entitlement-result@1, billing.subscription-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.entitlement.check</strong> (internal): Is a subject entitled to a streamer&#39;s subscription right now, and until when. Answered from Billing alone (works with Live offline).</p> <p><strong>billing.subscription.manage</strong> (internal): Start or renew a channel subscription paid from credit (the streamer share is credited on every period), and cancel at period end (Stripe subscriptions are cancelled at Stripe). Receipt-paid subscriptions through the API additionally need billing.ledger.admin.</p>

POST /api/v1/subscriptions

Start or renew a channel subscription paid from credit (the streamer share is credited on every period), and cancel at period end (Stripe subscriptions are cancelled at Stripe).

Capabilities
billing.subscription.manage
Visibility
internal
Request body
application/json billing.subscription-request@1
Response
application/json billing.subscription-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.subscription.manage</strong> (internal): Start or renew a channel subscription paid from credit (the streamer share is credited on every period), and cancel at period end (Stripe subscriptions are cancelled at Stripe). Receipt-paid subscriptions through the API additionally need billing.ledger.admin.</p>

GET /api/v1/subscriptions/{id}

Is a subject entitled to a streamer's subscription right now, and until when.

Capabilities
billing.entitlement.check, billing.subscription.manage
Visibility
internal
Parameters
  • id (path, required)
Input
billing.subscription-request@1
Response
application/json one of billing.entitlement-result@1, billing.subscription-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.entitlement.check</strong> (internal): Is a subject entitled to a streamer&#39;s subscription right now, and until when. Answered from Billing alone (works with Live offline).</p> <p><strong>billing.subscription.manage</strong> (internal): Start or renew a channel subscription paid from credit (the streamer share is credited on every period), and cancel at period end (Stripe subscriptions are cancelled at Stripe). Receipt-paid subscriptions through the API additionally need billing.ledger.admin.</p>

POST /api/v1/subscriptions/{id}/cancel

Start or renew a channel subscription paid from credit (the streamer share is credited on every period), and cancel at period end (Stripe subscriptions are cancelled at Stripe).

Capabilities
billing.subscription.manage
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.subscription-request@1
Response
application/json billing.subscription-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.subscription.manage</strong> (internal): Start or renew a channel subscription paid from credit (the streamer share is credited on every period), and cancel at period end (Stripe subscriptions are cancelled at Stripe). Receipt-paid subscriptions through the API additionally need billing.ledger.admin.</p>

GET /api/v1/tiers/{streamer}

Read and set the monthly prices of a creator's subscription tiers, for the product where the creator sells them (OpenVibe.VIP), within Billing's bounds.

Capabilities
billing.tier.manage
Visibility
internal
Parameters
  • streamer (path, required)
  • price_cents (query, required) — USD cents per period (a month).
  • status (query) — active (the default) sells the tier; archived sells it no more.
Input
billing.tier-request@1
Response
application/json billing.tier-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.tier.manage</strong> (internal): Read and set the monthly prices of a creator&#39;s subscription tiers, for the product where the creator sells them (OpenVibe.VIP), within Billing&#39;s bounds. Billing keeps the price and charges it: new subscriptions to a tier pay its price, running ones renew at the price they were bought at.</p>

PUT /api/v1/tiers/{streamer}/{tier}

Read and set the monthly prices of a creator's subscription tiers, for the product where the creator sells them (OpenVibe.VIP), within Billing's bounds.

Capabilities
billing.tier.manage
Visibility
internal
Parameters
  • streamer (path, required)
  • tier (path, required)
Request body
application/json billing.tier-request@1
Response
application/json billing.tier-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.tier.manage</strong> (internal): Read and set the monthly prices of a creator&#39;s subscription tiers, for the product where the creator sells them (OpenVibe.VIP), within Billing&#39;s bounds. Billing keeps the price and charges it: new subscriptions to a tier pay its price, running ones renew at the price they were bought at.</p>

GET /api/v1/transactions

Read a subject's balances (spendable credit, creator payable, pending payouts) and transaction history.

Capabilities
billing.balance.read
Visibility
internal
Response
application/json billing.balance-read-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.balance.read</strong> (internal): Read a subject&#39;s balances (spendable credit, creator payable, pending payouts) and transaction history.</p>

GET /api/v1/transactions/{id}

Read a subject's balances (spendable credit, creator payable, pending payouts) and transaction history.

Capabilities
billing.balance.read
Visibility
internal
Parameters
  • id (path, required)
Response
application/json billing.balance-read-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.balance.read</strong> (internal): Read a subject&#39;s balances (spendable credit, creator payable, pending payouts) and transaction history.</p>

POST /api/v1/transfers

Give CREDIT to someone (tip, donation, paid interaction): user_credit of the giver to creator_payable of the recipient.

Capabilities
billing.transfer.create
Visibility
internal
Request body
application/json billing.transfer-request@1
Response
application/json billing.transfer-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.transfer.create</strong> (internal): Give CREDIT to someone (tip, donation, paid interaction): user_credit of the giver to creator_payable of the recipient. Self-dealing is refused by subject. Also refunds a credit-funded transfer back to its giver (e.g. a media request that never played). Idempotent by Idempotency-Key.</p>

POST /api/v1/transfers/{id}/refund

Give CREDIT to someone (tip, donation, paid interaction): user_credit of the giver to creator_payable of the recipient.

Capabilities
billing.transfer.create
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.transfer-request@1
Response
application/json billing.transfer-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.transfer.create</strong> (internal): Give CREDIT to someone (tip, donation, paid interaction): user_credit of the giver to creator_payable of the recipient. Self-dealing is refused by subject. Also refunds a credit-funded transfer back to its giver (e.g. a media request that never played). Idempotent by Idempotency-Key.</p>

GET /api/v1/usage

Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provide

Capabilities
billing.ledger.admin
Visibility
internal
Input
billing.admin-request@1
Response
application/json billing.admin-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.ledger.admin</strong> (internal): Operate the ledger: economy freeze switch (writes refused, reads served, webhooks queued), reconciliation runs, balanced manual adjustments with a reason, settling a verified provider receipt, provider-event reprocessing, the renewal sweep and import holds.</p>

POST /api/v1/usage

The only money input to Billing: record a platform.usage-sample@1 reading without moving money.

Capabilities
billing.usage.record
Visibility
internal
Request body
application/json platform.usage-sample@1
Response
application/json billing.usage-record-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.usage.record</strong> (internal): The only money input to Billing: record a platform.usage-sample@1 reading without moving money. The reading&#39;s idempotency_key deduplicates retries. Listing all readings requires billing.ledger.admin.</p>

POST /api/v1/vibes/charges

Sell something for Vibes as a developer app (Vibes Pay, D12).

Capabilities
billing.vibes.charge
Visibility
public
Request body
application/json billing.vibes-charge-create-request@1
Response
application/json billing.vibes-charge@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.vibes.charge</strong> (public): Sell something for Vibes as a developer app (Vibes Pay, D12). POST /api/v1/vibes/charges creates a charge from the app&#39;s token (billing.vibes-charge-create-request@1; idempotent on the app&#39;s reference) and answers billing.vibes-charge@1 with a pay_url; GET /api/v1/vibes/charges/:id reads it; POST /api/v1/vibes/charges/:id/refund returns the Vibes from the project&#39;s Vibes wallet to the person (billing.vibes-charge-refund-request@1). The person pays on OpenVibe&#39;s pay sheet; Billing moves the Vibes atomically and once to the app&#39;s project Vibes wallet, then POSTs a signed webhook (HMAC-SHA256 with the app&#39;s webhook secret, retried with backoff) whose body is billing.vibes.charge.paid@1 or billing.vibes.charge.refunded@1 — no person id or email, only an opaque payer_ref stable per app. A sandbox app charges sandbox Vibes only (test grants, worth nothing). The owner&#39;s billing.vibes settings cap the amount, the daily per-person spend and whether Vibes Pay is on.</p>

GET /api/v1/vibes/charges/{id}

Sell something for Vibes as a developer app (Vibes Pay, D12).

Capabilities
billing.vibes.charge
Visibility
public
Parameters
  • id (path, required)
  • amount (query, required) — Price in whole Vibes, a positive integer; never a fraction or a nano-USD amount.
  • description (query, required) — What the person is paying for.
  • reference (query, required) — The app's own reference; it is the idempotency key.
  • return_url (query) — Where the browser returns after paying. Optional; the app may instead poll the charge or wait for the webhook.
Input
billing.vibes-charge-create-request@1
Response
application/json billing.vibes-charge@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.vibes.charge</strong> (public): Sell something for Vibes as a developer app (Vibes Pay, D12). POST /api/v1/vibes/charges creates a charge from the app&#39;s token (billing.vibes-charge-create-request@1; idempotent on the app&#39;s reference) and answers billing.vibes-charge@1 with a pay_url; GET /api/v1/vibes/charges/:id reads it; POST /api/v1/vibes/charges/:id/refund returns the Vibes from the project&#39;s Vibes wallet to the person (billing.vibes-charge-refund-request@1). The person pays on OpenVibe&#39;s pay sheet; Billing moves the Vibes atomically and once to the app&#39;s project Vibes wallet, then POSTs a signed webhook (HMAC-SHA256 with the app&#39;s webhook secret, retried with backoff) whose body is billing.vibes.charge.paid@1 or billing.vibes.charge.refunded@1 — no person id or email, only an opaque payer_ref stable per app. A sandbox app charges sandbox Vibes only (test grants, worth nothing). The owner&#39;s billing.vibes settings cap the amount, the daily per-person spend and whether Vibes Pay is on.</p>

POST /api/v1/vibes/charges/{id}/refund

Sell something for Vibes as a developer app (Vibes Pay, D12).

Capabilities
billing.vibes.charge
Visibility
public
Parameters
  • id (path, required)
Request body
application/json billing.vibes-charge-create-request@1
Response
application/json billing.vibes-charge@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.vibes.charge</strong> (public): Sell something for Vibes as a developer app (Vibes Pay, D12). POST /api/v1/vibes/charges creates a charge from the app&#39;s token (billing.vibes-charge-create-request@1; idempotent on the app&#39;s reference) and answers billing.vibes-charge@1 with a pay_url; GET /api/v1/vibes/charges/:id reads it; POST /api/v1/vibes/charges/:id/refund returns the Vibes from the project&#39;s Vibes wallet to the person (billing.vibes-charge-refund-request@1). The person pays on OpenVibe&#39;s pay sheet; Billing moves the Vibes atomically and once to the app&#39;s project Vibes wallet, then POSTs a signed webhook (HMAC-SHA256 with the app&#39;s webhook secret, retried with backoff) whose body is billing.vibes.charge.paid@1 or billing.vibes.charge.refunded@1 — no person id or email, only an opaque payer_ref stable per app. A sandbox app charges sandbox Vibes only (test grants, worth nothing). The owner&#39;s billing.vibes settings cap the amount, the daily per-person spend and whether Vibes Pay is on.</p>

GET /api/v1/vibes/me

Read a person's own Vibes as an app the person approved (D12): GET /api/v1/vibes/me with a person-delegated app token answers billing.vibes-wallet@1 — the Vibes to spend, the creator payable that can

Capabilities
billing.vibes.read
Visibility
public
Response
application/json billing.vibes-wallet@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.vibes.read</strong> (public): Read a person&#39;s own Vibes as an app the person approved (D12): GET /api/v1/vibes/me with a person-delegated app token answers billing.vibes-wallet@1 — the Vibes to spend, the creator payable that can be cashed out (never into Balance) and today&#39;s bits_per_usd. The app sees only the person who approved it, never another person&#39;s Vibes.</p>

GET /internal/config

Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common

Capabilities
billing.config.manage
Visibility
internal
Parameters
  • values (query, required) — The new values, one member per key. The store validates them against the namespace schema; a secret-class value here is refused.
  • reason (query, required) — Why the change is made; it is the revision's reason in the history.
  • merge (query) — Merge into the active values instead of replacing them.
  • unset (query) — Keys to remove from the new revision.
Input
common.config-change@1
Response
application/json common.config-namespace@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.config.manage</strong> (internal): Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common.config-namespace@1, POST applies common.config-change@1, and PUT /internal/config/:namespace/secrets/:key sets a secret with common.config-secret-put@1 (write-only; the answer is the marker) while DELETE removes it. POST /internal/config/:namespace/test/:key asks the service&#39;s tester to try a stored value with the provider on the server, answering { ok, message } in one line that never carries a secret (the owner&#39;s Setup tab). Only Network&#39;s admin proxy, acting for the owner, holds this capability; it is never grantable to apps. Each request carries the owner as actor, and the service audits every write with that actor and key, never a secret value.</p>

GET /internal/config/{namespace}

Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common

Capabilities
billing.config.manage
Visibility
internal
Parameters
  • namespace (path, required)
  • values (query, required) — The new values, one member per key. The store validates them against the namespace schema; a secret-class value here is refused.
  • reason (query, required) — Why the change is made; it is the revision's reason in the history.
  • merge (query) — Merge into the active values instead of replacing them.
  • unset (query) — Keys to remove from the new revision.
Input
common.config-change@1
Response
application/json common.config-namespace@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.config.manage</strong> (internal): Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common.config-namespace@1, POST applies common.config-change@1, and PUT /internal/config/:namespace/secrets/:key sets a secret with common.config-secret-put@1 (write-only; the answer is the marker) while DELETE removes it. POST /internal/config/:namespace/test/:key asks the service&#39;s tester to try a stored value with the provider on the server, answering { ok, message } in one line that never carries a secret (the owner&#39;s Setup tab). Only Network&#39;s admin proxy, acting for the owner, holds this capability; it is never grantable to apps. Each request carries the owner as actor, and the service audits every write with that actor and key, never a secret value.</p>

POST /internal/config/{namespace}

Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common

Capabilities
billing.config.manage
Visibility
internal
Parameters
  • namespace (path, required)
Request body
application/json common.config-change@1
Response
application/json common.config-namespace@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.config.manage</strong> (internal): Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common.config-namespace@1, POST applies common.config-change@1, and PUT /internal/config/:namespace/secrets/:key sets a secret with common.config-secret-put@1 (write-only; the answer is the marker) while DELETE removes it. POST /internal/config/:namespace/test/:key asks the service&#39;s tester to try a stored value with the provider on the server, answering { ok, message } in one line that never carries a secret (the owner&#39;s Setup tab). Only Network&#39;s admin proxy, acting for the owner, holds this capability; it is never grantable to apps. Each request carries the owner as actor, and the service audits every write with that actor and key, never a secret value.</p>

PUT /internal/config/{namespace}/secrets/{key}

Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common

Capabilities
billing.config.manage
Visibility
internal
Parameters
  • namespace (path, required)
  • key (path, required)
Request body
application/json common.config-change@1
Response
application/json common.config-namespace@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.config.manage</strong> (internal): Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common.config-namespace@1, POST applies common.config-change@1, and PUT /internal/config/:namespace/secrets/:key sets a secret with common.config-secret-put@1 (write-only; the answer is the marker) while DELETE removes it. POST /internal/config/:namespace/test/:key asks the service&#39;s tester to try a stored value with the provider on the server, answering { ok, message } in one line that never carries a secret (the owner&#39;s Setup tab). Only Network&#39;s admin proxy, acting for the owner, holds this capability; it is never grantable to apps. Each request carries the owner as actor, and the service audits every write with that actor and key, never a secret value.</p>

DELETE /internal/config/{namespace}/secrets/{key}

Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common

Capabilities
billing.config.manage
Visibility
internal
Parameters
  • namespace (path, required)
  • key (path, required)
  • values (query, required) — The new values, one member per key. The store validates them against the namespace schema; a secret-class value here is refused.
  • reason (query, required) — Why the change is made; it is the revision's reason in the history.
  • merge (query) — Merge into the active values instead of replacing them.
  • unset (query) — Keys to remove from the new revision.
Input
common.config-change@1
Response
application/json common.config-namespace@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.config.manage</strong> (internal): Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common.config-namespace@1, POST applies common.config-change@1, and PUT /internal/config/:namespace/secrets/:key sets a secret with common.config-secret-put@1 (write-only; the answer is the marker) while DELETE removes it. POST /internal/config/:namespace/test/:key asks the service&#39;s tester to try a stored value with the provider on the server, answering { ok, message } in one line that never carries a secret (the owner&#39;s Setup tab). Only Network&#39;s admin proxy, acting for the owner, holds this capability; it is never grantable to apps. Each request carries the owner as actor, and the service audits every write with that actor and key, never a secret value.</p>

POST /internal/config/{namespace}/test/{key}

Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common

Capabilities
billing.config.manage
Visibility
internal
Parameters
  • namespace (path, required)
  • key (path, required)
Request body
application/json common.config-change@1
Response
application/json common.config-namespace@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.config.manage</strong> (internal): Manage the billing.credits namespace of OpenVibe.Billing through openvibe-shared/config (D11): GET /internal/config lists the namespace summaries, GET /internal/config/:namespace returns one as common.config-namespace@1, POST applies common.config-change@1, and PUT /internal/config/:namespace/secrets/:key sets a secret with common.config-secret-put@1 (write-only; the answer is the marker) while DELETE removes it. POST /internal/config/:namespace/test/:key asks the service&#39;s tester to try a stored value with the provider on the server, answering { ok, message } in one line that never carries a secret (the owner&#39;s Setup tab). Only Network&#39;s admin proxy, acting for the owner, holds this capability; it is never grantable to apps. Each request carries the owner as actor, and the service audits every write with that actor and key, never a secret value.</p>

POST /internal/credits/holds

Create an inference credit hold (D2): POST /internal/credits/holds.

Capabilities
billing.credit.hold.create
Visibility
internal
Request body
application/json billing.credit-hold-create-request@1
Response
application/json billing.credit-hold-create-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.credit.hold.create</strong> (internal): Create an inference credit hold (D2): POST /internal/credits/holds. Service-authenticated; reserves up to max_nano_usd against a (subject, project_id) account.</p>

POST /internal/credits/holds/{id}/extend

Extend an active inference hold (D2): POST /internal/credits/holds/:id/extend.

Capabilities
billing.credit.hold.extend
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.credit-hold-extend-request@1
Response
application/json billing.credit-hold-create-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.credit.hold.extend</strong> (internal): Extend an active inference hold (D2): POST /internal/credits/holds/:id/extend. Grows the held amount mid-stream; returns 402 billing.insufficient_funds if the balance is short.</p>

POST /internal/credits/holds/{id}/release

Release a credit hold (D2): POST /internal/credits/holds/:id/release.

Capabilities
billing.credit.hold.release
Visibility
internal
Parameters
  • id (path, required)
Response
application/json billing.credit-hold-release-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.credit.hold.release</strong> (internal): Release a credit hold (D2): POST /internal/credits/holds/:id/release. Releases the remaining held amount with nothing charged.</p>

POST /internal/credits/holds/{id}/settle

Settle a credit hold (D2): POST /internal/credits/holds/:id/settle.

Capabilities
billing.credit.hold.settle
Visibility
internal
Parameters
  • id (path, required)
Request body
application/json billing.credit-hold-settle-request@1
Response
application/json billing.credit-hold-settle-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.credit.hold.settle</strong> (internal): Settle a credit hold (D2): POST /internal/credits/holds/:id/settle. Records measured usage and the immutable retail rate version, charges the project account and releases the unused hold. Idempotent: replays return the same settlement.</p>

POST /internal/credits/sandbox/grants

Grant synthetic credit to a (subject, project) for tests and staging (D9): POST /internal/credits/sandbox/grants.

Capabilities
billing.credit.sandbox.grant
Visibility
internal
Request body
application/json billing.credit-sandbox-grant-request@1
Response
application/json billing.credit-sandbox-grant-result@1
Errors
errors.problem@1 (application/problem+json)
Description<p><strong>billing.credit.sandbox.grant</strong> (internal): Grant synthetic credit to a (subject, project) for tests and staging (D9): POST /internal/credits/sandbox/grants. Refused unless BILLING_CREDITS_SANDBOX=1; a test transaction, never money.</p>