Skip to content

Reverse a redemption

POST /redemptions/{redemption_id}/reverse
Scoperedemptions:write
Customer session tokenNot accepted: call from your server with an API key
Rate limit classwrite_shopify (limits)
Idempotency keyRequired (idempotency)
MCP toolcharm_reverse_redemption

Deactivates the discount code and returns the points to the customer.

NameInTypeDescription
redemption_idpathstringThe id returned when the redemption was created.

Returns RedemptionReversal.

FieldTypeDescription
changedtrue
idstring
reversedtrue
points_returnednumber
balance_afternumber or null(nullable)
{
"changed": true,
"id": "id",
"reversed": true,
"points_returned": 120,
"balance_after": 120
}
Terminal window
curl -X POST "https://charm.appfleece.app/api/v1/redemptions/<redemption_id>/reverse" \
-H "Authorization: Bearer chrm_live_..." \
-H "Idempotency-Key: $(uuidgen)"

unauthorized · invalid_token · insufficient_scope · access_required · not_found · validation_error · rate_limited · idempotency_conflict · shopify_unavailable · insufficient_points

Every error body carries code, message, request_id and a doc_url pointing at the matching entry in the error catalog.