---
search:
  tags:
    - Wallets
    - POST
seo:
  description: >-
    Points wallets only. Reverses the earning transfer outright when the…
    Reference for the POST /wallets/{id}/unregister_purchase endpoint in the
    Bolder API v2.
sidebar:
  label: Reverse points earned from a purchase (e.g. on order cancellation)
  badge: POST
title: Reverse points earned from a purchase (e.g. on order cancellation)
type: openapi-operation
---
Points wallets only. Reverses the earning transfer outright when the full amount is still available; otherwise drains whatever remains so the points can't be spent again (a partial reversal).

`POST /wallets/{id}/unregister_purchase`

**Request body** (`application/json`, required)

- `reference_code` (string, required)
- `order_amount` (integer, required)

Request body example:

```json
{
  "reference_code": "string",
  "order_amount": 0
}
```

**Responses**

- `200` — Points reversed (fully or partially)
- `422` — Unable to complete this action
