billing

POST /v1/subscriptions/{subscriptionId}/renewal-method

Change how this plan renews, with nothing charged.

All billing endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The endpoint checks billing.payment.manage; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/subscriptions/{subscriptionId}/renewal-method \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "mode": <string<auto, by_hand>> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Switch between renewing automatically and paying by hand (by hand KEEPS the plan: each renewal is invoiced ahead with a pay link and no stored card or PayPal agreement is charged; account credit still settles it), and choose the method an automatic renewal uses: card or paypal. P6c-026: crypto is a preference INSIDE paying by hand, never an automatic charge. method: crypto is always stored as by_hand whatever mode is sent (an older client posting auto + crypto gets by hand): each renewal is invoiced ahead and the invoice e-mail carries a crypto payment link that opens the order's pay step on crypto. Moving the plan to auto with card or paypal ends the crypto preference. ⛔⛔ The old provider is cancelled first (a PayPal agreement is cancelled at PayPal before the plan is unbound; a crypto auto-renew plan is stopped), the paid-until date is kept and nothing is charged by this call. Choosing paypal returns an approval_url and grants nothing until PayPal's signed activation webhook arrives. change_account: true with method: paypal cancels the current agreement and opens a new one for a different PayPal account in the same call. Changing the card itself is the SCA/3-D Secure setup flow on the payment-methods surface. A method the account's market row withholds (DAY-0039) is refused 422 BEFORE the old provider is cancelled, so the plan keeps renewing as it did: PAYPAL_NOT_OFFERED (refusal refusal.billing.paypalNotOffered) or the crypto auto-renew codes. PayPal is then not offered by GET (paypal_offered: false) nor by renewal-options.

Parameters

NameTypeRequiredWhat it is
subscriptionId (path)UuidYesThe subscription whose "How this renews" choice is read or changed.

Request body

NameTypeRequiredWhat it is
modestring<auto, by_hand>YesRenew automatically, or pay each renewal by hand and keep the plan.
methodstring<card, paypal, crypto>NoRequired when mode is auto (card or paypal). crypto is accepted with either mode and always stored by hand (a crypto link with each renewal invoice); other methods are…
change_accountbooleanNoWith method paypal, cancel the current agreement and approve a new PayPal account.
emailstringNoWith method crypto, where the renewal links are e-mailed (defaults to the billing e-mail).
payment_method_idUuid | nullNoWith method card only (422 otherwise): which of this account's saved cards pays this plan; null switches back to the primary; omitted keeps the current choice. A card that…

Response

NameTypeRequiredWhat it is
subscription_idUuidYesUUIDv7 identifier — sortable by creation time.
modestring<auto, by_hand>Yes—
methodobjectYesThe automatic method (card, paypal); crypto while the plan renews by hand with a crypto payment link on each renewal invoice; null when by hand otherwise.
paypal_agreement_activebooleanYesTrue when a PayPal agreement is bound to this plan.
paypal_offeredbooleanNoWhether PayPal may be chosen as this plan's automatic method. False where the account's market row withholds PayPal renewals (DAY-0039); choosing it then answers 422…
paid_untilstringYesThe end of the paid period. No change of method moves it.
approval_urlobjectYesWhere the buyer approves a new PayPal agreement; null otherwise.
payment_method_idUuid | nullNoDAY-0031: the saved card the customer chose to pay THIS plan; null = the account's primary card (every plan until one is chosen). Only set while method is card. The renewal…
charged_toRenewalChargedTo | nullNoWhat the automatic renewal is charged to (display only, never a full card number): the chosen card's (payment_method_id) or else the primary card's brand, last four and expiry;…

Errors this endpoint can return

400 · 401 · 403 · 404 · 422 · 429 · 503