billing
GET /v1/subscriptions/{subscriptionId}/renewal-method
Read how this plan renews (auto or by hand, and by which method).
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
| Name | Type | Required | What it is |
|---|---|---|---|
subscriptionId (path) | Uuid | Yes | The subscription whose "How this renews" choice is read or changed. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
subscription_id | Uuid | Yes | UUIDv7 identifier — sortable by creation time. |
mode | string<auto, by_hand> | Yes | — |
method | object | Yes | The 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_active | boolean | Yes | True when a PayPal agreement is bound to this plan. |
paypal_offered | boolean | No | Whether 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_until | string | Yes | The end of the paid period. No change of method moves it. |
approval_url | object | Yes | Where the buyer approves a new PayPal agreement; null otherwise. |
payment_method_id | Uuid | null | No | DAY-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_to | RenewalChargedTo | null | No | What 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