Skip to main content
PUT
Update subscription

Headers

x-environment
string<uuid>
required

Configure which environment the request will handle. If the provided credentials do not allow access to this specified environment, a 403 Forbidden response is returned.

Path Parameters

subscriptionId
string<uuid>
required

Id of the given subscription.

Body

application/json

Update request of subscription.

start
string<date>
required

Sets a start date for the subscription.

end
string<date> | null

Sets an end date for the subscription. Must be later than the Start.

autoRenewal
boolean | null

If set, the subscription will be automatically renewed. An End must be set to allow automatically renewal.

description
string | null

Sets a description for the subscription. 4000 characters maximum.

items
object[] | null

Items to update. If not set, the subscription will be updated without changing the items.

Pass an empty array to remove all charges.

Response

OK

id
string<uuid>

Id of subscription.

handle
string | null

A unique handle of the subscription.

currency
string<currency>

Currency of the subscription.

Example:

"USD"

term
object
autoRenewal
boolean

For termed subscription, auto renewal is optional and will automatically renew the subscription.

items
object[] | null

Items of the subscription.

createdAt
string<date-time>