Skip to main content
POST /v1/refunds returns money to the customer for a Checkout payment: a website session, a payment link, or a subscription charge. Refund the whole payment or just part of it, more than once, until nothing is left.
Scope: refunds.write to create, checkout.read to listThe Easner fee on the payment is not returned when you refund. Refunds go back to the customer’s original payment method. A bank debit refund can stay pending for a few days.You can refund through the API until the payment has been credited to your Easner balance. After that the call returns 409 already_settled and support does the refund.

Create a refund

Identify the payment with checkout_session (the cs_… id you already store) or with payment (the payment id in refund.* and dispute.* webhooks). Send one of them. If you send both, payment wins when it is a UUID; otherwise checkout_session is used. A payment that is not a UUID is ignored, and with no usable value the call is 404 payment_not_found.
Response, 201:
The request and response fields are on Create a refund. That page is the contract. Send checkout_session (the cs_… you store) unless you only have the payment id from a refund.* or dispute.* webhook. Omit amount to refund everything still left. reason is requested_by_customer, duplicate or fraudulent. Response status is succeeded or pending (bank debits). amount_refunded_total is the sum refunded on this payment so far. fully_refunded is true once nothing is left. amount is rounded to the nearest whole cent before it is used (25.5 becomes 26, a numeric string such as "2500" is read as a number). Anything that rounds to zero or below, or is not a number, is 400 invalid_amount. Send whole cents and you will never see this. reason in the response is the value you sent, or null; it is not stored as a label for the customer.

Ids

A refund has one id everywhere: the provider refund id (re_…). Match a list row to a POST response or a webhook by id. A refund that has no provider id yet (a pending row that never reached the provider) is listed with Easner’s internal row id (a UUID) until it has one. payment is the same UUID everywhere: the payment field here and payment_id in webhooks.

Partial refunds

Send a smaller amount each time. Each call is its own refund. Easner stops you at the remaining balance with 400 amount_too_large, and with 409 already_refunded once the payment is fully refunded.
Use a different Idempotency-Key for each refund you intend to make. Easner computes the amount at the time of the call: an omitted amount refunds whatever is left then.

List refunds

GET /v1/refunds?checkout_session=cs_… (or ?payment=…) lists the refunds on one payment, oldest first. It includes refunds that are pending, failed or canceled, and refunds made in Console or by the payment provider. A GET with neither parameter is 400 invalid_request (fields names payment). A value that matches nothing in this mode is 404 payment_not_found. There is no refund list across payments and no retrieve by id.

Idempotency

Idempotency-Key makes a retry return the refund it already made, never a second one. A replay returns 201 (not 200) with the original id, amount and status as they were stored, and amount_refunded_total as it is now. A replay still answers even if nothing is left to refund. The same key with a different payment, or a different amount when you send one, is 409 idempotency_mismatch; a different reason is not compared. Keys are scoped to your business. See Authentication.

Errors

Full list: Errors.

Events

refund.created, refund.updated and refund.failed are sent to your webhook, including refunds you make in Console. Dedupe on refund_id plus status. refund_id is the re_… id from the POST response and the list. Every refund event carries payment_id and fully_refunded. See Webhooks and Webhook events.

Test and live

A test key refunds test payments. A live key refunds live payments. A payment from the other mode is 404 payment_not_found.

Customer portal

Let customers see receipts and refunds themselves.
Last modified on November 13, 2026