Skip to main content
Once a subscription exists, you can update it to change its payment method, reschedule billing, pause or resume collection, schedule a cancellation, apply a coupon, and more. Only include the fields you want to change - fields you omit are left untouched.
Update a subscription
If the request completed successfully, the response contains the updated subscription object.
Subscription object

Change the default payment method

Set default_payment_method to the ID of a payment method belonging to the subscription’s customer. Pass null to remove the default payment method.
Change the default payment method
You can also switch how invoices are collected with collection_method (charge_automatically or send_invoice). Switching to send_invoice clears the default payment method type, since invoices are no longer charged automatically.

Reschedule billing

To move the point in the billing cycle that future periods are calculated from, set billing_anchor to a Unix timestamp. By default, this only affects the next period going forward.
Reanchor the next billing period
Set billing_cycle_reset to true to reset the entire current billing cycle around the new anchor, rather than only the next period.
To change when a subscription ends, set end_date to a Unix timestamp, or null to let it continue indefinitely.
Change the end date

Schedule a cancellation

Set cancel_at to a Unix timestamp to automatically cancel the subscription at a future date. The date must be at least one day in the future. Pass null to remove a scheduled cancellation.
Schedule a cancellation
You can also set credit_note_data on the same request to have Yorlet automatically issue a credit note when the subscription is later closed. To cancel a subscription immediately instead of scheduling it, use the Cancel a subscription endpoint.

Pause or resume collection

Set pause_collection to stop Yorlet from collecting payment on new invoices, while still generating them according to behavior. Pass null to resume collection immediately.
Pause collection

Apply a coupon

Set coupon to the ID of a coupon to apply a discount to the subscription.
Apply a coupon

Add a one-off invoice item

Use add_invoice_items to add one-time charges to the next invoice generated by the subscription, without changing the recurring items.
Add a one-off invoice item
To change the recurring items on a subscription (for example, updating the rent amount), use the Subscription Items API instead. Set proration_behavior on the subscription update to create_prorations or none to control whether prorated invoice items are generated when a subscription item changes.

Parameters

All parameters are optional - only include the fields you want to change.