These docs are for v1.0. Click to read the latest docs for v2.0.
added

V2 - Billing subscriptions endpoints

We are happy to announce the introduction of the billing subscriptions management endpoints. This outlines all the available endpoints in the Pennylane V2 API. Refer to the api docs for more details.

Authentication & Scopes

All endpoints require OAuth2 authentication or a developer token with appropriate scopes:

  • Read Operations: billing_subscriptions:all OR billing_subscriptions:readonly
  • Write Operations: billing_subscriptions:all (read-only scope insufficient)

Billing subscriptions endpoints

1. List billing subscriptions

  • RouteGET /api/external/v2/billing_subscriptions
  • Scopesbilling_subscriptions:all OR billing_subscriptions:readonly

2. Get billing subscription details

  • RouteGET /api/external/v2/billing_subscriptions/:id
  • Scopesbilling_subscriptions:all OR billing_subscriptions:readonly

3. Create a billing subscription

  • RoutePOST /api/external/v2/billing_subscriptions
  • Scopesbilling_subscriptions:all

4. Update a billing subscription

  • RoutePUT /api/external/v2/billing_subscriptions/:id
  • Scopesbilling_subscriptions:all

5. List invoice lines for a billing subscription

  • RouteGET /api/external/v2/billing_subscriptions/:id/invoice_lines
  • Scopesbilling_subscriptions:all OR billing_subscriptions:readonly

6. List invoice line sections of a billing subscription

  • RouteGET /api/external/v2/billing_subscriptions/:id/invoice_line_sections
  • Scopesbilling_subscriptions:all OR billing_subscriptions:readonly