Recurring bills
A recurring bill is an ordinary bill with a schedule. You create the first period as a payment,
with recurring terms. Once it is paid, Spleetz opens each later period as a bill of its own,
for the same amount, with the same reference, metadata and source, and split the same way.
Everything a bill can do, a recurring bill’s periods do the same way: one payer or several, shares or items, the pay page or the app.
Before you start
Section titled “Before you start”- The business must switch on Take new recurring payments in its dashboard. Until it does,
recurring terms are refused with
9975. - A connected app needs the
payments.recurringscope as well aspayments.create.
Create one
Section titled “Create one”Add recurring to POST /transactions:
curl https://api.spleetz.com/transactions \ -H "Authorization: ApiKey $SPLEETZ_KEY" \ -H "Content-Type: application/json" \ -d '{ "amountMinor": 3500, "currency": "GBP", "reference": "member-0042", "itemName": "Monthly plan", "returnUrl": "https://example.com/account/subscribed", "recurring": { "interval": "month", "intervalCount": 1, "description": "Monthly plan", "endAfterPeriods": 12, "retryDays": [1, 3, 5, 7] } }'The response’s recurring is the recurring bill, with its id (rec_...) and status
Pending. Send the payer to payUrl to pay the first period.
| Field | |
|---|---|
interval |
week, month or year. Required. |
intervalCount |
How many intervals one period spans: 1 to 52 weeks, 1 to 12 months, or 1 year. Defaults to 1. |
description |
What the payer agrees to, and what each charge is called on their receipt and statement. Required, up to 120 characters. |
endAfterPeriods |
Ends after this many paid periods, from 1 to 1000. Leave it out to run until cancelled. |
retryDays |
Days after a period’s due date to try a declined card again: rising, each 1 to 30, at most 6. Leave it out for [1, 3, 5, 7]. Send [] for no retries. |
Terms that don’t meet these rules are refused with 9972 and a message saying what to change.
The terms are fixed when the recurring bill opens: a later change to the defaults never changes
an existing one.
How payers pay each period
Section titled “How payers pay each period”Each payer pays their part one of two ways:
| Pays automatically | Pays by link | |
|---|---|---|
| Who | Someone signed in to the Spleetz app who chose “Pay this automatically” | Everyone else, including everyone who paid on the web |
| Each period | Their saved cards are charged their part | They are emailed once that it is due, with the pay link |
| If it fails | A declined card is retried on the bill’s retryDays |
Unpaid once the period’s last day passes |
The pay page never keeps a card. A payer who wants automatic payment chooses it in the app, at checkout or later from their recurring bills there. They can switch it off, or stop their own part, at any time from the app or from the link in their emails.
Where the business’s card provider can’t charge a saved card without the payer, everyone pays by link.
Split recurring bills
Section titled “Split recurring bills”When the first period is split, each later period is split the same way, with the same shares and amounts, and each share stays with its payer. Each payer pays their own share, automatically or by link.
What happens when one payer falls behind follows the business’s share setting:
- Taken once every share is in: a payer whose card declined holds up the period, and one out of time pauses the whole bill.
- Taken as each is paid: the others are paid and the bill carries on.
A payer sent their link is not behind until the period ends.
Statuses
Section titled “Statuses”| Status | Meaning |
|---|---|
Pending |
Opened. The first period is not paid yet. |
Active |
Paid up. The next period falls due on nextChargeAt. |
PastDue |
The period due failed to charge and will be tried again (nextRetryAt). |
Unpaid |
Retries ran out, or the payer didn’t act in time. Nothing more is charged until the open period is paid. statusReason says which: retries_exhausted or not_paid. |
Cancelled |
Stopped by the payer, the business or an app. Final. cancelledBy is payer, merchant or app. |
Ended |
Ran its course (endAfterPeriods), or its first period was never paid. Final. |
A split recurring bill lists its payers in payers, each with their own status, amountMinor,
periodsPaid, failedCharges, and the saved cards their part is charged to (brand, last four
digits and amount). Payers’ email addresses are never shown to connected apps.
Reading and cancelling
Section titled “Reading and cancelling”GET /recurring |
Recurring bills, newest first, a page at a time (page, pageSize). Filter by reference or status. A connected app sees only those its connection opened. |
GET /recurring/{id} |
One recurring bill. |
POST /recurring/{id}/cancel |
Stops every later period at once. |
curl -X POST https://api.spleetz.com/recurring/rec_.../cancel \ -H "Authorization: ApiKey $SPLEETZ_KEY"Cancelling doesn’t refund the current period. Refund its bill if you want to. A recurring bill
that has already ended or been cancelled answers 409 with 9973.
Each period’s bill
Section titled “Each period’s bill”Each period is a payment with its own transactionId. You hear about it with the usual
payment.* events, and those carry recurring:
"recurring": { "id": "rec_...", "periodStart": "2026-12-24T00:00:00Z", "periodEnd": "2027-01-24T00:00:00Z", "sequence": 2}sequence is 1 for the first period. On GET /transactions/{id}, a period’s bill carries
recurring with its id, status and sequence.
Recurring events
Section titled “Recurring events”These carry the recurring bill itself, the same object GET /recurring/{id} returns.
| Event | When |
|---|---|
recurring.activated |
The first period was paid. The schedule has started. |
recurring.past_due |
A period’s charge failed and will be tried again, or the business can’t take payments for now. |
recurring.action_required |
A period can’t be charged without the payer: their bank wants them, or the card can’t be used. They have been asked. |
recurring.unpaid |
Retries ran out, or the payer didn’t act in time. Nothing more is charged until they pay. |
recurring.cancelled |
Cancelled by the payer, the business or an app. Nothing more will be charged. |
recurring.ended |
It ran its course, or its first period was never paid. |
On a bill split between several payers, one payer’s own trouble doesn’t stop the others. Those
come as payer events, with that payer under payer:
| Event | When |
|---|---|
recurring.payer_past_due |
One payer’s charge failed and will be tried again. The bill goes on. |
recurring.payer_action_required |
One payer can’t be charged without them. They have been asked. The bill goes on. |
recurring.payer_unpaid |
One payer ran out of retries or time. |
recurring.payer_cancelled |
One payer stopped their own part. The bill goes on for the others. |
A payer event is followed by the bill’s own event only when the bill itself is now held, paused
or cancelled by it. So you can act on the event type alone: a recurring.payer_* event never
means the whole bill has stopped.