Skip to Content
API ReferenceWallet

Reverse a wallet transaction

Undo a top-up or manual adjustment with a reversal entry.

Undo one TOP_UP or MANUAL_ADJUSTMENT entry in a customer's wallet. SellApp writes a REVERSAL entry for the opposite amount in USD cents and returns it. Reversing a top-up also reverses its top-up bonus. This changes the wallet balance only: it does not refund a card payment, and the customer is not emailed.

Read the customer's history with List wallet transactions or the store-wide wallet ledger to find the entry ID, then send it as transaction with a note. Add expected_balance_cents with the balance you saw so the reversal applies only if nothing changed in between.

An entry can be reversed once. Money a checkout reserved or the customer already spent cannot be taken back, and cashback, rewards, support refunds, and purchases are reversed elsewhere; each refusal returns 422 on transaction and changes nothing. A reversal cannot be undone: to put money back afterwards, adjust the wallet.

POST
/v2/wallets/{customer}/transactions/{transaction}/reverse

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

customer*integer

The customer ID whose wallet holds the entry.

transaction*integer

The ID of the wallet entry to reverse, as listed by GET /v2/wallets/{customer}/transactions or GET /v2/wallet/transactions.

Header Parameters

Idempotency-Key?string

Optional. Your key for this one reversal, at most 255 characters. Repeat it with the same body within 24 hours to get the original response back; a different body returns 409.

Lengthlength <= 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
note*string

Why the entry is reversed. It must contain more than spaces and is saved on the reversal entry.

Length1 <= length <= 255
expected_balance_cents?integer

Optional. The wallet balance in integer USD cents that you read before deciding. If the balance is different now, nothing changes and the request returns 422 on expected_balance_cents.

Range0 <= value <= 999999999999

Response Body

The entry was reversed. The body is the new REVERSAL entry for the entry in the path.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/wallets/42/transactions/501/reverse' \  -H 'Idempotency-Key: reverse-wallet-entry-501' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "note": "Credit went to the wrong customer",  "expected_balance_cents": 2500}'
{  "data": {    "id": 502,    "wallet_id": 71,    "type": "REVERSAL",    "amount_cents": -2500,    "balance_after_cents": 0,    "currency_at_source": null,    "exchange_rate_to_usd": null,    "order_id": null,    "charge_id": null,    "reverses_entry_id": 501,    "note": "Credit went to the wrong customer",    "idempotency_key": null,    "expires_at": null,    "expired_at": null,    "created_by_user_id": 1,    "created_at": "2026-07-03T09:12:00.000000Z"  }}