Skip to Content
API ReferenceTickets

Reverse a ticket wallet refund

Take a wallet refund issued from a ticket back out of the customer's wallet.

A reversal removes the full refunded amount from the customer's wallet balance and makes that amount refundable again for the item. It does not message the customer; your reason is kept with the reversal for your records.

If the customer already spent part of the credit, the wallet no longer holds the full amount. The reversal is then refused with 422 on walletRefund and nothing changes; there is no partial reversal. Settle the difference with the customer another way.

Each refund can be reversed once. A second attempt returns 422 on walletRefund, so retrying never takes the money twice. Find the refund's id with List ticket wallet refunds. An ID that is not a wallet refund of this ticket returns 404.

Your API key needs both the ticket and support.refund abilities, and the store member who owns the key needs both the ticket and the support refund permissions.

POST
/v2/tickets/{ticket}/wallet-refunds/{walletRefund}/reverse

Take a wallet refund issued from this ticket back out of the customer's wallet, and return the refund with reversed true and its reversal. The reversal removes the full refunded amount from the wallet balance, records your reason, and makes that amount refundable again for the item. It does not message the customer. If the wallet no longer holds the full amount because the customer already spent some of it, the request returns 422 on walletRefund and nothing changes: there is no partial reversal. A refund that was already reversed also returns 422 on walletRefund, so the money is never taken back twice. An ID that is not a wallet refund of this ticket returns 404. Amounts are integer USD cents. Requires both the ticket and support.refund API-key abilities, and the store member needs both the ticket and the support refund permissions. To recover a lost response, retry with the same optional Idempotency-Key and identical body, or list the ticket's wallet refunds. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

ticket*integer

The ticket ID in the selected store.

walletRefund*integer

The wallet refund's id, from the ticket's wallet refunds.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. A replay returns Idempotent-Replayed: true.

Length8 <= length <= 255
X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
reason*string

Why the refund is reversed, 6 to 5000 characters. Kept with the reversal; not sent to the customer.

Length6 <= length <= 5000

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/tickets/312/wallet-refunds/7001/reverse' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "reason": "Issued on the wrong ticket."}'
{  "data": {    "id": 7001,    "ticket_id": 312,    "invoice_id": 5120,    "customer_id": 42,    "amount_cents": 500,    "currency": "USD",    "balance_after_cents": 500,    "customer_note": "We added $5.00 to your store wallet for the trouble with your download link.",    "automatic": false,    "reversed": true,    "reversal": {      "id": 7002,      "amount_cents": -500,      "balance_after_cents": 0,      "reason": "Issued on the wrong ticket.",      "created_at": "2026-09-04T11:05:00.000000Z"    },    "created_at": "2026-09-04T09:30:00.000000Z"  }}