Update a subscription

View as Markdown

Updates an existing subscription. Only provided fields are changed. Setting status to “canceled” automatically sets canceled_at.

Authentication

AuthorizationBearer
API key obtained from the Afternoon dashboard

Path parameters

idstringRequiredformat: "cuid"

Request

This endpoint expects an object.
billing_anchor_dayintegerOptional1-31
Day of month for billing anchor
statusenumOptional
Subscription status
Allowed values:
next_renewal_datedatetime or nullOptional
ISO 8601 next renewal date

Response

Subscription updated
successboolean
subscriptionobject
request_idstring

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error