Create subscription
POST
https://rcur.app/api/v2/subscriptions
Request Body
name*
String
The name of the subscription
customer_id*
String
The ID of the customer
mollie_profile_id*
String
The ID of the Mollie profile
mollie_mandate_id*
String
The ID of the Mollie customer mandate
start_date*
Date (yyyy-mm-dd)
The start date of the subscription. Must be equal to or after today
workflow_id
Integer
The workflow ID of Moneybird. Required if the Moneybird invoice integration is enabled
docstyle_id
Integer
The docstyle ID of Moneybird. Required if the Moneybird invoice integration is enabled
rules*
Array
The rules of the subscription
Rules object
amount*
Amount
The amount of the rule in EUR. Not required if an invoice integration is active
interval*
String
The interval of the rule. Possible options: day
week
month
year
interval_amount*
Integer
The interval amount of the rule. Minimum amount: 1
day*
Integer
The day of charging the rule. Value depends on the chosen interval. 0
is the day of the start date
times
Integer
The number of times a rule will charge the customer. Leave out for an ongoing rule
invoice_rules
Array
The invoice rules of the subscription rule. Required if an invoice integration is enabled
Invoice rules object
quantity*
Integer
The quantity of the invoice rule
description*
String
The description of the invoice rule
amount*
Amount
The amount of the invoice rule of a single quantity
vat*
String or Integer
The VAT of the invoice rule. Type depends on the invoice integration
ledger_account_id
String
The ledger account ID of Moneybird. Required if the Moneybird invoice integration is enabled
{
"id": "DjqJBKQ4b7",
"name": "Monthly Suprise box",
"status": "active",
"start_date": "2025-01-06",
"mollie_mandate_id": "mdt_k239Fnf3n",
"mollie_profile_id": "pfl_f9WnBF92X",
"next_payment_at": "2025-02-06",
"next_amount": 19.99,
"last_payment_created_at": "2025-01-06 06:01:05",
"resume_at": null,
"cancel_at": null,
"created_at": "2025-01-02 16:12:49",
"rules": [
{
"id": "maJ3rGqMqz",
"amount": 19.99,
"currency": "EUR",
"interval": "month",
"interval_amount": 1,
"day": 0,
"times": null,
"times_done": 1
}
],
"customer": {
"id": "YJRQAMRQ6y",
"number": "RC1234",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone": "+31612345678",
"organization_name": "Doe Co.",
"address": "Street name 123",
"postal_code": "1234AB",
"city": "City name",
"country": "NL",
"vat_number": "NL123456789B01",
"locale": "nl",
"mollie_customer_id": "cst_xDjnf3Kdx",
"created_at": "2022-02-24 12:34:56"
}
}
Last updated
Was this helpful?