<!-- version: 1.4; effective_from: 2026-12-10; status: in force; drafted by the operator without legal review -->
# Refund Framework v1.4

## 1. What the merchant must publish

In the catalog, for every storefront:

- `refund_window_days` — the number of days after delivery in which a return or refund is accepted;
- `returns_accepted` — whether physical goods can be returned;
- for digital content — whether the buyer waives the right of withdrawal, where the law of the merchant's country allows it.

Returns follow the law of the merchant's country and cannot be narrower than that law.

## 2. How a refund is executed

The buyer's funds are with the merchant, so the merchant makes the refund in a transaction from its own wallet and reports the transaction hash. APIbase checks the amount, the recipient and the network on-chain and then marks the order as refunded. Partial refunds are several records, up to the order total.

## 3. Role of APIbase

APIbase is not an arbitrator. It records orders, refunds and dispute statements and passes them between the parties. The outcome of a dispute is between the buyer and the merchant.

On-chain payments are irreversible. An order placed by the buyer's agent binds the buyer; a refund of an order placed by mistake is made only under this Framework and the merchant's published policy.

## 4. Subscriptions and streams

- Subscription: a cancelled subscription is not charged again; the current paid period is not refunded unless the merchant's published policy says so. A renewal charged outside the renewal window or above the authorised amount is refunded in full within 7 days.
- Stream: the unconsumed deposit is returned through the payment channel when the stream closes; consumed seconds are refunded only under the merchant's published policy.

APIbase is a technology intermediary; buyer funds do not pass through APIbase; the fee is charged to the merchant. APIbase is operated by its operator, an individual independent open-source developer (the "Operator"), identified by the domain apibase.pro, the public repository github.com/whiteknightonhorse/APIbase and the address support@apibase.pro. There is no registered company. "APIbase" in these documents means the Operator. The Operator may transfer this role to a company or a successor operator of apibase.pro with 30 days' notice at /legal.

These documents were prepared without a lawyer and are not legal advice; a professional review is planned.

## 5. Refunds owed by APIbase (added 2026-11-09)

If APIbase owes a payer money (a paid call that was charged but not delivered, or APIbase's own fee share of an order payment that arrived twice or after the order had closed), the debt is recorded when it is detected and shown next to the receipt (`refund_url`) or in `shop.order.get`. It is sent automatically to the wallet that paid, in a weekly batch (Mondays, UTC), from a dedicated APIbase refund wallet, once the amount owed to that wallet exceeds ten times the network fee of sending it; smaller amounts carry forward and never expire. See https://apibase.pro/pricing#refunds. A duplicate or late order payment reached the merchant's payout wallet, so the merchant refunds the rest of it to the paying wallet within 7 days; refunds for returns and cancellations remain the merchant's duty as well.
