billing

POST /v1/subscriptions/{subscriptionId}/renew-now

Get the ONE unpaid order that renews this subscription now.

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 POST https://api.zinndigital.com/v1/subscriptions/{subscriptionId}/renew-now \
  -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 "Renew now" button (ONEPAY-A2, owner 2026-11-19: "we need a proper renew now button at any time"). Works at any time: before the due date (pays the next period ahead), after it, and while the subscription is frozen (a hand-paid plan freezes on its due date with no grace; paying restores the same sites). ⛔⛔ No money is taken here: the client settles the returned order through POST /v1/orders/{orderId}/pay, which offers every rail. Creates or reuses exactly one unpaid order. The renewal order already waiting for the current period (the one the reminder mails link) is returned as it is; otherwise an unpaid prepayment for this period is returned; otherwise one is minted for the periods owed (at least one). Two clicks, two tabs or a retry therefore get the SAME order (reused: true, status 200). The amount is always computed by the server, in integer minor units with its currency; the request has no body. Requires billing.payment.manage (the same authority as paying an invoice). Another organisation's subscription is 404, never 403. 422 carries a code in its details: ALREADY_PAID (this period is paid and is being applied), SUBSCRIPTION_CANCELLED, NOT_RENEWABLE (ended for good, comped, free, or a trial with no paid plan: its details then carry checkout_url, the checkout for the trialled plan), and prepay's own RAIL_NOT_SUPPORTED / ORDER_IN_FLIGHT.

Parameters

NameTypeRequiredWhat it is
subscriptionId (path)UuidYesThe subscription to renew.

Response

NameTypeRequiredWhat it is
order_idUuidYesUUIDv7 identifier — sortable by creation time.
order_numberstringYes—
periodsintegerYes—
total_amount_minorintegerYesIncluding tax, server-computed.
currencystringYes—
statusstringYes—
reusedbooleanYesTrue when this order already existed.

Errors this endpoint can return

401 · 403 · 404 · 422 · 429