---
title: "Refund Deposit"
method: POST
path: "/api/v2/app/refund"
tags: ["v2-app"]
---

# Refund Deposit

`POST /api/v2/app/refund`

## Request

- Base URL: `https://api.getle.ad` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getle.ad/api/v2/app/refund`
- Auth: none declared

Hand back every unspent deposit still inside the window.

Order matters and is deliberate: the ledger is debited first, through
`_charge`, which takes the wallet lock and refuses to push the balance
negative. Only then is Stripe asked for the money. Doing it the other way
round would leave a customer who double-clicked with two real refunds and
one ledger line.

Each deposit is refunded at most once: the ledger ref is the PaymentIntent's
own id with a suffix, so a retry hits the unique index instead of Stripe.

## Request body

- RefundRequest
  - `token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getle/apis/lead-generator-pro-api.md) · [All operations](https://skmtc.dev/getle/apis/lead-generator-pro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getle/apis/lead-generator-pro-api/revisions/041155e6d905?raw)
