Update a subscription
Update a subscription
Authorizations
API Key authentication. Use "Bearer YOUR_API_KEY".
Path Parameters
The id identifier.
Body
The collection method for the subscription.
charge_automatically, send_invoice A list of invoice items to add to invoices created by the subscription.
10The reference point that aligns future billing cycle dates.
Configuration for the billing anchor.
The identifier of the coupon to apply to the subscription.
Custom fields attached to the subscription invoices.
4The number of days before the due date to attempt collection.
0 <= x <= 7The number of days until the invoice is due.
x >= 0The identifier of the default payment method for the subscription.
The description of the subscription.
The end date of the subscription.
Configuration to compute the end date of the subscription.
Set of key-value pairs to attach to the subscription.
The payment settings for the subscription.
The phases of the subscription. Required when interval is custom.
1The start date of the subscription.
Configuration to compute the start date of the subscription.
Whether to reset the billing cycle anchor to the current time.
The date at which the subscription should be automatically canceled.
The credit note data for the subscription cancellation.
The pause collection settings for the subscription.
Whether to create prorations when updating the subscription.
create_prorations, none Response
Returns the subscription object if the update succeeded.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
subscription The identifier of the application associated with the subscription.
The reference point that aligns future billing cycle dates.
Configuration for the billing anchor.
The date at which the subscription will be automatically canceled.
The date the subscription was canceled.
The collection method for the subscription.
charge_automatically, send_invoice The identifier of the coupon applied to the subscription.
The currency of the subscription.
gbp, usd, eur, sek "gbp"
The end of the current billing period.
The start of the current billing period.
Custom fields attached to the subscription invoices.
4The customer associated with the subscription.
The number of days before the due date to attempt collection.
0 <= x <= 7The number of days until the invoice is due.
x >= 0The identifier of the default payment method for the subscription.
The description of the subscription.
The end date of the subscription.
The billing interval for the subscription.
month, week, custom The number of intervals between each billing cycle.
The end of the next billing period.
The start of the next billing period.
The pause collection settings for the subscription.
The payment settings for the subscription.
The phases of the subscription.
The start date of the subscription.
The status of the subscription.
active, canceled, complete, scheduled The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header.
Only returned if the object has been deleted.
Set of key-value pairs attached to the subscription.