added
V2 - Billing subscriptions endpoints
July 15th, 2025 by Integrations Squad
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
ORbilling_subscriptions:readonly
- Write Operations:
billing_subscriptions:all
(read-only scope insufficient)
Billing subscriptions endpoints
1. List billing subscriptions
- Route:
GET /api/external/v2/billing_subscriptions
- Scopes:
billing_subscriptions:all
ORbilling_subscriptions:readonly
2. Get billing subscription details
- Route:
GET /api/external/v2/billing_subscriptions/:id
- Scopes:
billing_subscriptions:all
ORbilling_subscriptions:readonly
3. Create a billing subscription
- Route:
POST /api/external/v2/billing_subscriptions
- Scopes:
billing_subscriptions:all
4. Update a billing subscription
- Route:
PUT /api/external/v2/billing_subscriptions/:id
- Scopes:
billing_subscriptions:all
5. List invoice lines for a billing subscription
- Route:
GET /api/external/v2/billing_subscriptions/:id/invoice_lines
- Scopes:
billing_subscriptions:all
ORbilling_subscriptions:readonly
6. List invoice line sections of a billing subscription
- Route:
GET /api/external/v2/billing_subscriptions/:id/invoice_line_sections
- Scopes:
billing_subscriptions:all
ORbilling_subscriptions:readonly