{
"activated_at": "2023-08-30T10:08:08.146343Z",
"created_at": "2023-08-30T10:08:08.146343Z",
"customer": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/customers/42"
},
"customer_invoice_data": {
"amount": "230.32",
"currency": "EUR",
"currency_amount": "230.32",
"currency_amount_before_tax": "196.32",
"currency_tax": "34.0",
"customer_invoice_template": {
"id": -488901
},
"discount": {
"type": "relative",
"value": "25"
},
"exchange_rate": "1.0",
"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"
},
"label": "Demo label",
"language": "fr_FR",
"pdf_description": "Invoice description",
"pdf_invoice_free_text": "Thanks for paying this invoice",
"pdf_invoice_subject": "Invoice subject",
"special_mention": "Additional details"
},
"email_settings": {
"billing_email_template": {
"id": -39722384,
"label": "ad est"
},
"recipients": [
"vOdtU3Q@i.jhsd",
"LR12Gy@ptuBtYFUPraObbti.dpww"
]
},
"finish": "2023-12-31",
"id": 42,
"mode": "awaiting_validation",
"next_occurrence": "2023-01-01",
"payment_conditions": "45_days",
"payment_method": "gocardless_direct_debit",
"prev_occurrence": "2023-01-01",
"recurring_rule": {
"count": 12,
"day": [
-81685170.72863732,
39343460.08805153
],
"day_of_month": [
52407504.70488015,
-60172127.97687837
],
"interval": -16228956,
"rule_type": "monthly",
"until": "minim consectetur occaecat ad",
"week_start": -46920795.19710379
},
"start": "2023-01-01",
"status": "finished",
"stopped_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
This endpoint allows you to create a subscription. Pennylane will generate the customer invoice each month. You can also link the subscription to a GoCardless mandate.
ℹ️ This endpoint requires one of the following scopes:
billing_subscriptions:all
{
"activated_at": "2023-08-30T10:08:08.146343Z",
"created_at": "2023-08-30T10:08:08.146343Z",
"customer": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/customers/42"
},
"customer_invoice_data": {
"amount": "230.32",
"currency": "EUR",
"currency_amount": "230.32",
"currency_amount_before_tax": "196.32",
"currency_tax": "34.0",
"customer_invoice_template": {
"id": -488901
},
"discount": {
"type": "relative",
"value": "25"
},
"exchange_rate": "1.0",
"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"
},
"label": "Demo label",
"language": "fr_FR",
"pdf_description": "Invoice description",
"pdf_invoice_free_text": "Thanks for paying this invoice",
"pdf_invoice_subject": "Invoice subject",
"special_mention": "Additional details"
},
"email_settings": {
"billing_email_template": {
"id": -39722384,
"label": "ad est"
},
"recipients": [
"vOdtU3Q@i.jhsd",
"LR12Gy@ptuBtYFUPraObbti.dpww"
]
},
"finish": "2023-12-31",
"id": 42,
"mode": "awaiting_validation",
"next_occurrence": "2023-01-01",
"payment_conditions": "45_days",
"payment_method": "gocardless_direct_debit",
"prev_occurrence": "2023-01-01",
"recurring_rule": {
"count": 12,
"day": [
-81685170.72863732,
39343460.08805153
],
"day_of_month": [
52407504.70488015,
-60172127.97687837
],
"interval": -16228956,
"rule_type": "monthly",
"until": "minim consectetur occaecat ad",
"week_start": -46920795.19710379
},
"start": "2023-01-01",
"status": "finished",
"stopped_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
Renders the created billing subscription
The response is of type object
.