Update a subscription
Patches metadata on a subscription: name, description, trial period, billing flags, subscription-level discount, spending thresholds, price escalation, and tags. This endpoint does not modify the priced item set. To change items, see the Updating a Subscription examples. When an edit of a sent subscription saves its terms but the offer is not reissued with them, the call fails with a message that says so and the terms stay saved but cannot be signed; send this request again with an empty body to retry issuing the saved terms. On an active or paused subscription, a change of auto-renewal, the renewal period, payment terms, additional terms, terms of service or the subscription-level discount applies as a subscription change, which can need approval; the discount of the change is written on every phase of the subscription when the change applies. When the change needs approval, the call answers 202 Accepted with the approval that it waits for, and the change does not apply before the approval, while the fields that need no approval are saved: approval.change_id names the subscription change that waits for it and approval.flow_id names the flow, and the subscription’s open_change reports the same change. While a change is open on the subscription, the call fails with approval.reason open_change and approval.change_id; repeating it returns the same answer until a dashboard user approves, rejects or withdraws that change. On a sent subscription, the edit is saved and the reissue of the offer waits for approval: the call answers 202 Accepted with approval.subscription_id and approval.operation send_quote, and the customer cannot sign the offer before the approval. See When a call needs approval.
Authorizations
Headers
A unique string that makes a retried write safe. If you send the same request with the same key within 24 hours, the API returns the stored response and does not run the request again. A 5xx or 429 response is not stored, so a retry with that key runs the request again.
255"ik_a1b2c3d4e5f6"
Body
Response
Success