Sign in

Remove points

DELETE https://{organization}.myguper.com/api/register/person/{personId}/tier/points/{sourceId}

Reverses a tier-points entry. Use this to undo points credited earlier — for example when the underlying loyalty transaction was cancelled. The reversal keeps an audit row in Flow (operation: debit) so the history stays auditable.

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Path parameters

Name Type Description
personId * integer Internal Guper person ID.
sourceId * string The same `sourceId` used when adding the points (e.g. the loyalty transaction ID).

Request body

Content-Type: application/json

{
    "source": "rewardCampaign"                                  // optional
}

Responses

{
    "success":        true,
    "pointsCanceled": 150,
    "activePoints":   2200
}
Copied to clipboard