Skip to main content
Update, amend, or modify a Subscription. See Subscription Scenarios in the Subscribe Product Description. REST approaches for the following most common modifications are below (see “Accepts” section for this operation).
  • Billing Plan Change
  • Add or Remove a Subscription Item
  • Replace an existing Subscription Item with a new one

HTTP Request

POST https://api.vindicia.com/subscriptions/:subscription

Route (URL) Parameters

Query Parameters

Accepts

JSON - This request supports the same arguments as ‘create’ (a full Subscription object) excepting the behavior of the id. Providing an id or vid in the URL indicates to Subscribe that this is an update, not a create call. Therefore, id and vid cannot be updated. The following changes will modify the subscribed service:
  • Plan Change: Providing a new Billing Plan will change the billing plan/schedule for the subscription as of the effective_date.
  • Replacing an existing/active Item with a new Item: Include a new Subscription Item populating the `replaces` attribute (in the Subscription Item) with the id of the existing item being replaced.
  • Add a new Item: Include a new Subscription Item (leaving undefined the `replaced_by` and `replaces` parameters in the Subscription Item).
  • Remove an existing Item: Include a new but empty/undefined Subscription Item populating **ONLY** the `replaces` attribute with the id of the existing item being removed. All changes will take effect as of the effective_date provided; Proration calculations, when required, will use the period between the last scheduled billing and the `effective_date` (calculated to whole days).
  • Apply a Campaign Code to a Subscription Item: Use the `replaced_by` and `replaces` attributes (in the Subscription Item) to apply a Campaign Code to a Subscription Item by replacing the existing item with the same item and including the Campaign Code.

Returns

JSON - A full Subscription object representing the new version of the Subscription.

Example Request (multiple modifications)

Billing Plan Change, Replace an Item, Remove an Item, add an Item
Parent topic:Subscriptions