billing

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

Read how this plan renews (auto or by hand, and by which method).

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 key must carry the billing.payment.manage permission; 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 GET https://api.zinndigital.com/v1/subscriptions/{subscriptionId}/renewal-method \
  -H "Authorization: Bearer zdk_live_…"

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

The one per-plan "How this renews" read: mode (auto or by_hand), the method an automatic renewal uses (card or paypal), or crypto under by_hand when the customer asked for a crypto payment link with each renewal invoice (P6c-026; null when by hand otherwise), and the paid-until date, which no change of method ever moves. Requires billing.payment.manage; another tenant's plan is 404.

Parameters

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

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

401 · 403 · 404 · 429