Skip to navigation

Scheduled reserves

A platform that charges on behalf of its merchants (connected accounts) can keep the net of one payment, all of it or part, reserved in the merchant’s balance until a set time: before then it can’t be withdrawn or transferred. The merchant charges and invoices as usual, and the money never passes through the platform’s account. It is the same model as Stripe’s reserves (ReserveHold and ReserveRelease).

It is not escrow or a card authorization, and it does not prevent chargebacks.

One appointment, end to end

  1. An appointments platform creates the checkout in the doctor’s account (X-ACCOUNT-ID) with reserve.release_after: the end of the consultation plus the margin it agreed with the doctor.
  2. The patient pays. The platform receives reserve.created; the doctor sees the charge, but its net stays reserved.
  3. If the appointment moves, the platform moves the date. If it is cancelled, it refunds with POST /refunds, which is paid from the reserve first.
  4. At that time the reserve releases on its own: the net reaches the doctor’s balance, the checkout’s splits go out, and reserve_release.created and reserve.updated arrive.
  5. If the consultation ends early, the platform can release it right then, in full or in part.

Recurrente doesn’t know when the consultation ends: your platform sets the time.

Create the reserve

curl -X POST https://app.recurrente.com/api/checkouts \
-H "X-SECRET-KEY: $RECURRENTE_SECRET_KEY" \
-H "X-ACCOUNT-ID: ac_medico01" \
-H "Content-Type: application/json" \
-d '{
"items": [{ "name": "Consultation", "currency": "GTQ", "amount_in_cents": 40000, "quantity": 1, "charge_type": "one_time" }],
"reserve": { "release_after": "2027-01-15T10:15:00-06:00" },
"metadata": { "appointment_id": "appointment-1042" }
}'
  • release_after is an ISO 8601 timestamp with a time zone, in the future and no more than 180 days away, Stripe’s same ceiling.
  • amount_in_cents (optional) reserves only that part of the net, for example "reserve": { "release_after": "…", "amount_in_cents": 10000 } to hold Q100 as the appointment’s guarantee. The rest is available as soon as the payment arrives. Without it, or if it exceeds the net, the whole net is reserved.
  • One-time payments only, and not combined with the cash-on-delivery hold (payment_hold).
  • Accepts cards, bank transfers in Guatemala, digital dollars, Recurrente balance and Akisí when the account has them.

The reserve

GET /checkouts/{checkout_id}/reserve returns it, and the checkout carries it in reserve:

{
"status": "held",
"amount_in_cents": 36000,
"amount_releasable_in_cents": 26000,
"currency": "GTQ",
"release_after": "2027-01-15T16:15:00Z",
"released_at": null,
"checkout_id": "ch_lmgbvesmihkqzma3",
"releases": [
{ "id": "resrel_k3j9x2pd", "amount_in_cents": 10000, "currency": "GTQ", "reason": "hold_released_early",
"refund_id": null, "dispute_id": null, "restored_at": null, "created_at": "2027-01-15T15:40:00Z" }
]
}
  • amount_in_cents is what the payment left reserved, after fees and taxes: the net, or the part you asked for; amount_releasable_in_cents, what it still holds.
  • status: awaiting_payment before the payment, held while it is open, released once what was left reached the merchant, and reversed when a full refund or a lost chargeback took it. A reserve that paid a chargeback can stay held with nothing releasable until the chargeback is decided.
  • Every movement out is a release in releases, with its reason: hold_expired (the time came), hold_released_early (you released it earlier) or hold_reversed (it paid a refund or a chargeback).

Change the date

curl -X PATCH https://app.recurrente.com/api/checkouts/ch_lmgbvesmihkqzma3/reserve \
-H "X-SECRET-KEY: $RECURRENTE_SECRET_KEY" \
-H "X-ACCOUNT-ID: ac_medico01" \
-H "Content-Type: application/json" \
-d '{ "release_after": "2027-01-18T10:15:00-06:00" }'

It works before or after the payment. The date can’t be in the past or more than 180 days after the payment (release_after_out_of_range). A reserve already released or reversed answers 409 not_held.

Release before the date

curl -X POST https://app.recurrente.com/api/checkouts/ch_lmgbvesmihkqzma3/reserve/releases \
-H "X-SECRET-KEY: $RECURRENTE_SECRET_KEY" \
-H "X-ACCOUNT-ID: ac_medico01" \
-H "Idempotency-Key: visit-1042" \
-H "Content-Type: application/json" \
-d '{ "amount_in_cents": 10000 }'

Without amount_in_cents, it releases everything left. It answers 201 with the release. Whatever you don’t release stays reserved until its date. Once nothing is left, the reserve turns released and the splits go out.

It won’t release while a refund is in progress (refund_pending) or a chargeback is open (dispute_pending), up to 180 days after the payment. From then on, like Stripe, what’s left releases anyway: the refund or the chargeback already took its share out of the reserve.

Refunds

Use the usual refund, POST /refunds. It is paid from that payment’s reserve first, so the reserved money never becomes available in the merchant’s balance:

  • A full refund reverses the reserve (reversed).
  • If the reserve is smaller than the refund, the rest comes from the merchant’s available balance, like any refund.
  • A partial one keeps the rest reserved. Partial refunds follow each method’s rules: cards yes; other methods are refunded in full.
  • While a refund is in progress, the reserve doesn’t release, up to 180 days after the payment.
  • If the refund is rejected or voided, its share goes back to the reserve: its release is marked with restored_at and you receive reserve.updated.

To cancel your platform’s pending commission on a partial refund, send refund_application_fee: true: it cancels the whole commission, not a proportional share.

Chargebacks

A chargeback is paid from the reserve first, within a minute of opening (hold_reversed, with dispute_id), so the merchant never pays for the same money twice. Whatever the reserve still holds waits for the outcome:

  • Won: the money goes back to the merchant’s balance, not to the reserve, and the reserve releases on time with its splits.
  • Lost: the reserve turns reversed on its date and the splits don’t go out.

After the release, a chargeback is still possible and is charged like any other.

Who can do what

  • Read the reserve: any key that can see the checkout, the merchant’s included.
  • Change the date or release: only the account that created the checkout, with a key that moves money; with X-ACCOUNT-ID, the connection must also be active. The merchant can’t shorten what its platform set (reserve_creator_required).
  • Refund: like any refund.

Use Idempotency-Key when changing the date and releasing: a retry with the same key and body gets the same answer.

Webhooks

  • reserve.created: the payment arrived and its net, or the part you asked for, is reserved.
  • reserve.updated: the date or the status changed, or a rejected refund put its share back in the reserve.
  • reserve_release.created: money left the reserve (a release, a refund or a chargeback). It carries the reserve as it stands, so a partial movement needs no other event.

They carry the reserve and the checkout with your metadata. They may repeat or arrive out of order: confirm the state with GET /checkouts/{checkout_id}/reserve.

How it differs from Stripe

  • Released to the minute. Stripe releases at the first midnight UTC after release_after. Here it releases within the next minute, so an appointment can be released 15 minutes after it ends.
  • Created with the checkout. In Stripe, the platform creates the reserve after the charge. Here you ask for it when creating the checkout, and it is in place the moment the payment arrives, so the merchant can never withdraw that money first.

Try it in a Sandbox

In a Sandbox you can walk the whole flow with the test card, without real money.