Billing Subscriptions
Get a billing subscription
Changed onThis endpoint returns a specific billing subscription.
ℹ️ This endpoint requires one of the following scopes: billing_subscriptions:all, billing_subscriptions:readonly
get/api/external/v2/billing_subscriptions/{id}
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/billing_subscriptions/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: billing_subscriptions:all, billing_subscriptions:readonly
Path parameters
idinteger required
Example:42
The ID of the billing subscription to retrieve
Headers
X-Company-Idstring
Example:12345
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Response
Returns the requested billing subscription
Example response
{
"id": 42,
"next_occurrence": "2023-01-01",
"prev_occurrence": "2023-01-01",
"stopped_at": "2023-08-30T10:08:08.146343Z",
"start": "2023-01-01",
"finish": "2023-12-31",
"activated_at": "2023-08-30T10:08:08.146343Z",
"recurring_rule": {
"rule_type": "monthly",
"count": 12
},
"customer": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/customers/42"
},
"customer_invoice_data": {
"label": "Demo label",
"amount": "230.32",
"currency_amount": "230.32",
"currency_amount_before_tax": "196.32",
"exchange_rate": "1.0",
"currency_tax": "34.0",
"discount": {
"value": "25"
},
"pdf_invoice_free_text": "Thanks for paying this invoice",
"pdf_invoice_subject": "Invoice subject",
"pdf_description": "Invoice description",
"special_mention": "Additional details",
"invoice_line_sections": {
"url": "https://app.pennylane.com/api/external/v2/billing_subscriptions/42/invoice_line_sections"
},
"invoice_lines": {
"url": "https://app.pennylane.com/api/external/v2/billing_subscriptions/42/invoice_lines"
}
},
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}Changes
- warning
added the new
VESenum value to the/response property for the response status - warning
added the new
es_ESenum value to the/response property for the response status - info
added the new optional
headerrequest parameterX-Company-Id
- warning