Skip to content
BolderBolder API
Esc
navigateopen⌘Jpreview

Reverse points earned from a purchase (e.g. on order cancellation)

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
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idintegerrequired
Request body
requiredapplication/json
reference_codestringrequired
order_amountintegerrequired
Responses
200Points reversed (fully or partially)
422Unable to complete this action
Request
curl -X POST "https://api.onbolder.com/v2/wallets/0/unregister_purchase" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "reference_code": "string",
  "order_amount": 0
}'
Response
Points reversed (fully or partially)