Update subscription

PUT

Update a single subscription.

Path parameters

publicationIdstringRequiredformat: "^(pub_[0-9a-fA-F\-]+)$"

The prefixed ID of the publication object

subscriptionIdstringRequiredformat: "^(sub_[0-9a-fA-F\-]+)$"

The prefixed ID of the subscription object

Request

This endpoint expects an object.
tier"free" or "premium"Optional
Allowed values: freepremium

Optional parameter to set the tier for this subscription.

stripe_customer_idstringOptional

The Stripe Customer ID of the subscription (not required)

unsubscribebooleanOptional

A boolean value specifying whether to unsubscribe this subscription from the publication (not required)

custom_fieldslist of objectsOptional

An array of custom field objects to update

Response

OK

dataobject

The subscription object

Errors