Hanzo
OpenapiBilling

Put a canceled subscription back on its plan

Puts a canceled subscription back on its plan.

POST /v1/billing/subscriptions/{id}/reactivate

Addresshttps://api.hanzo.ai/v1/billing/subscriptions/{id}/reactivate
MethodPOST
OperationreactivateSubscription
AuthAuthorization: Bearer $HANZO_API_KEY

Puts a canceled subscription back on its plan.

What asks for this is usually a recovered payment method or a support tool rather than a browser, which is most of the argument for it having an address at all. The engine decides whether the move is legal; a row it will not reactivate comes back with its own reason.

A named handler, not a closure, so zipdoc can lift this prose into the registry.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
atPeriodEndbodybooleanAtPeriodEnd cancels at the end of the paid period rather than at once.
idbodystring

Response

StatusBodyMeaning
200Subscriptionok

200 body — 23 fields.

FieldInTypeAlwaysDescription
cancelAtPeriodEndbodyboolean
canceledAtbodystring
createdAtbodystring
currentPeriodEndbodystring
currentPeriodStartbodystring
defaultPaymentMethodbodystring
endedAtbodystring
idbodystring
mrrCentsbodyintegerMRRCents is what this subscription contributes per month — commerce's own figure, interval-normalized and multiplied by its seats, so no reader re-derives it…
planbodySubscriptionPlan
plan.currencybodystring
plan.idbodystring
plan.intervalbodystring
plan.namebodystring
plan.pricebodyinteger
planIdbodystring
providerTypebodystring
quantitybodyinteger
statusbodystring
trialEndbodystring
trialStartbodystring
updatedAtbodystring
userIdbodystring

Failure carries the platform error shape — see Errors.

Examples

hanzo billing subscriptions reactivate <id>

Billing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page