RCUR API docs
Back to RCURSupport
  • Getting Started
    • Authentication
    • Rate limits
  • Customers API
    • List customers
    • Get customer
    • Create customer
    • Update customer
    • Delete customer
  • Customer Mandates API
    • List mandates
    • Get mandate
    • Create mandate
    • Revoke mandate
  • Subscriptions API
    • List subscriptions
    • Get subscription
    • Create subscription
    • Cancel subscription
  • Links API
    • List links
    • Get link
    • Delete link
  • Follow-ups API
    • List follow-ups
    • Get follow-up
    • Update follow-up
  • Orders API
    • List orders
    • Get order
  • Products API
    • List products
    • Get product
    • Create product
    • Update product
    • Delete product
  • Payments API
    • List payments
    • Get payment
  • Organizations API
    • Me
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Subscriptions API

Create subscription

POST https://rcur.app/api/v2/subscriptions

Request Body

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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": "jdoe@doeco.org",
        "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"
    }
}
{
    "status": 422,
    "error": "Could not create subscription. Some fields contain invalid data",
    "fields": {
        "name": [
            "The name field is required."
        ]
    }
}

Last updated 3 months ago

Was this helpful?