Subscriptions
Update subscription
https://rcur.app/api/v2/subscriptions/{id}
Requires your API key as Authorization: Bearer <key>. See authentication.
Path parameters
-
idstring required
Request body
application/jsonSubscription data to update
-
namestringSubscription name
-
mollie_profile_idstringMollie profile ID
-
mollie_mandate_idstringMollie mandate ID
-
customer_portalstringCan the customer pause and cancel this subscription in the customer portal: inherit follows the customer portal settings, allow and deny overrule them. Defaults to inherit
One of
inheritallowdeny -
customer_portal_notice_periodstringNotice period when the customer cancels in the customer portal: inherit follows the customer portal settings. Defaults to inherit
One of
inheritnone14_days1_month2_months3_months1_year -
custom_fieldsobjectAnswers to custom fields, keyed by custom field id (see /custom-fields). A checkbox takes true or false, a number a number, a date YYYY-MM-DD. Send null or an empty string to clear an answer; fields you leave out stay as they are.
-
customer_portal_min_durationstringHow long the subscription has to run before the customer can cancel it in the customer portal: inherit follows the customer portal settings. Defaults to inherit
One of
inheritnone1_month3_months6_months1_year2_years
Responses
200 Subscription details Subscription object
-
idstring required -
namestring required -
statusstring requiredOne of
draftactivepausedcancelledcompleted -
start_datestring required -
mollie_mandate_idstring -
mollie_profile_idstring -
next_payment_atstring nullable -
next_amountstring nullable -
last_payment_created_atstring nullable -
resume_atstring nullable -
cancel_atstring nullable -
customer_portalstringCan the customer pause and cancel this subscription in the customer portal: inherit follows the customer portal settings, allow and deny overrule them
One of
inheritallowdeny -
customer_portal_notice_periodstringNotice period when the customer cancels in the customer portal: inherit follows the customer portal settings
One of
inheritnone14_days1_month2_months3_months1_year -
customer_portal_min_durationstringHow long the subscription has to run before the customer can cancel it in the customer portal: inherit follows the customer portal settings.
One of
inheritnone1_month3_months6_months1_year2_years -
planobject nullableThe subscription template the subscription runs on, when it can be switched in a subscription group
3 child attributes
-
template_idstring -
group_idstring nullable -
namestring
-
-
discountSubscriptionDiscount objectThe discount that lowers the next payments of the subscription
10 child attributes · SubscriptionDiscount
-
discount_idstring nullableThe discount code it came from; null for a discount without a code
-
codestring nullable -
typestring requiredOne of
percentagefixed -
valuestring required -
currencystring nullable -
durationstring requiredOne of
oncerepeatingforever -
periods_totalinteger nullable -
periods_usedinteger required -
total_discountedstring required -
created_atstring
-
-
created_atstring required -
rulesarray of SubscriptionRules8 child attributes · SubscriptionRule
-
idstring required -
amountstring required -
currencystring requiredOne of
AEDAUDBGNBRLCADCHFCZKDKKEURGBPHKDHUFILSISKJPYMXNMYRNOKNZDPHPPLNRONSEKSGDTHBTWDUSDZAR -
intervalstring requiredOne of
dayweekmonthyear -
interval_amountinteger required -
dayinteger required -
timesinteger nullable -
times_doneinteger required
-
-
customerobject -
custom_fieldsarray of CustomFieldValuesAnswers to custom fields. Only present when the organization has custom fields.
5 child attributes · CustomFieldValue
-
field_idstring nullableId of the custom field, empty when the field has been deleted since
-
labelstring requiredThe question as it was asked
-
typestring requiredOne of
texttextareanumberselectcheckboxdate -
valuestring nullable requiredThe answer: a boolean for a checkbox, a number for a number field, otherwise text (a date as YYYY-MM-DD)
-
displaystring requiredThe answer as readable text
-
404 Resource not found Error object
-
statusinteger required -
errorstring required
422 Validation error ValidationError object
-
statusinteger required -
errorstring required -
fieldsobject