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_purchaseAuthorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idintegerrequiredRequest body
requiredapplication/jsonreference_codestringrequiredorder_amountintegerrequiredResponses
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
}'const response = await fetch("https://api.onbolder.com/v2/wallets/0/unregister_purchase", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"reference_code": "string",
"order_amount": 0
})
});import requests
response = requests.post(
"https://api.onbolder.com/v2/wallets/0/unregister_purchase",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"reference_code": "string",
"order_amount": 0
},
)Response
Points reversed (fully or partially)
Unable to complete this action