Skip to content

Refunds ​

Return a captured payment through the Maytes merchant portal or merchant API. Refunds settle asynchronously, so keep your order record in sync with the checkout status.

Partial refunds are portal-only for now

The API refunds the full captured amount. Partial refunds (one buyer's share, or part of the order) can be issued from the merchant portal, or by Maytes on your behalf. Partial refunds from the API are planned.

Requirements:

  • Only a captured checkout can be refunded. For an order that's merely authorized, cancel it instead — no money has moved yet.
  • Money goes back to the same card each buyer paid with. On a split order, a full refund returns every buyer's share; a partial refund returns what was chosen in the portal.
  • Refunds settle asynchronously with the payment provider. A full refund takes the checkout through refunding to refunded; a partial refund leaves it captured and raises refunded_amount.
  • API requests require a unique merchant_refund_ref. Reusing the same value safely returns the existing refund.

Issue a refund ​

In the portal, find the captured checkout. Its Refund section has two buttons: Refund full order returns everything that's left, and Refund part is for partial refunds.

To refund through the API, call POST /api/merchant/v1/checkouts/{checkout_uuid}/refund with a unique reference:

bash
curl -sX POST https://api.maytes.co/api/merchant/v1/checkouts/$CHECKOUT_UUID/refund \
  -H "authorization: Bearer $ACCESS_TOKEN" \
  -H 'content-type: application/json' \
  -d '{
    "merchant_refund_ref": "refund_order_1001",
    "reason": "Customer requested a refund"
  }'

The endpoint returns 204 when the refund is accepted. Use RefundCheckout in the backend SDK for the same operation. To learn when the money has gone back, subscribe to the refund webhooks, or read the checkout until it reaches refunded.

Partial refunds ​

A split order is paid by several people, so a partial refund has to say whose payment it comes from. That's why partial refunds are made in the portal, where each payment is listed:

  1. Open the order and click Refund part.
  2. Pick the payment to send money back on: the organiser's, or a friend's. Each one shows what's still refundable on it.
  3. Enter the amount and an optional reason. The reason is kept with the refund in your portal and isn't shown to the customer.
  4. Click Refund. The refund appears on the order straight away as processing, and as refunded once the payment provider confirms it.

One refund comes from one payment. To refund two people, make a second refund once the first has gone through.

When part of the order is still on hold ​

On a split order, the organiser pays their share and the rest is held on their card for up to 48 hours while friends pay. Until that hold is taken, the unpaid part of the order hasn't been charged to anyone.

A partial refund in that window can come off the hold instead of off a card:

  • Nothing is sent back to a card, because that money was never taken. The organiser's hold is simply taken for that much less.
  • It still counts as a refund everywhere: refunded_amount goes up, remaining_amount goes down, and the refund webhooks fire with method: "hold_reduction".
  • It completes immediately. There's no settling period and no matching refund in your payment provider's dashboard.

The portal lists the hold with the other payments, marked On hold, with the most that can come off it. Its button reads Reduce by instead of Refund.

When a payment has a chargeback ​

If a buyer has disputed a payment with their bank (a chargeback), the bank has already taken that money back, or may still. Refunding it as well could pay the buyer twice, so Maytes doesn't allow it while the chargeback is open or after it's lost:

  • That payment can't be refunded. In the portal it's shown as having a chargeback and can't be picked.
  • A full refund of the order isn't possible either, because it would include that payment. The API returns 409 payment_has_chargeback. Refund the other payments one at a time in the portal instead.
  • An inquiry from the bank, or a chargeback you won, doesn't block a refund.

A full refund while a hold is open ​

A full refund returns every captured payment to its card and releases whatever is left of the hold. The released part was never charged, so it isn't counted in refunded_amount. The order page lists it as "hold released" so the figures add up to the order total.

What your integration sees ​

After a full refund is issued, the checkout moves from captured → refunding → refunded. After a partial refund it stays captured; only the amounts change. The GET checkout response includes these refund fields:

json
{
  "data": {
    "checkout_uuid": "019fbb9e-ecd1-7059-99f3-f8bf47b63931",
    "status": "refunded",
    "amount": 4500,
    "currency": "AUD",
    "refunded_amount": 4500,
    "remaining_amount": 0,
    "merchant_processor_fee": 0,
    "merchant_service_fee": 0,
    "last_refund_at": "2026-09-14T10:14:33.000Z"
  }
}
FieldWhat it means
statusFull refund: refunding while settling, refunded once the payment provider confirms. Partial refund: stays captured.
refunded_amountEverything returned so far (minor units), whoever paid it — including refunds to friends who paid a share, and amounts taken off the hold. Counts only completed refunds. Changed with the refund webhooks release: it used to count only refunds of the organiser's own charges, so on a split order it can now be higher than before for the same refund.
remaining_amountamount minus refunded_amount.
last_refund_atISO timestamp of the most recent confirmed refund. null while pending.
merchant_processor_feeReserved for processor cost billed to you on the refund. Currently always 0 — refund fee billing is not yet applied.
merchant_service_feeReserved for the Maytes service fee billed to you on the refund. Currently always 0.

Fees are never taken from the buyer

If refund fee billing is introduced, merchant_processor_fee and merchant_service_fee will be billed to you. They will never be deducted from what the buyer gets back.

Keeping your records in sync ​

The order balance is remaining_amount, not status: a partially refunded order stays captured, and refunded only means nothing is left to return. Keep your records in sync in one of these ways, in order of preference:

  1. Subscribe to the refund webhooks — checkout.refund.initiated, checkout.refunded and checkout.refund.failed. They cover every refund on your checkouts, whoever started it (your API, your team in the portal, or Maytes), and tell you when money could not be returned. Update the order balance from checkout.remaining_amount on each event.
  2. When reading a checkout — in support tools and reconciliation jobs, read refunded_amount and remaining_amount. Do not infer the balance from checkout status alone. See Reading the checkout status.
  3. When issuing the refund — update your order record when the API accepts the request. If you need confirmation without webhooks, poll GET /checkouts/{uuid} until last_refund_at moves (a full refund also reaches status: refunded).

What's next ​