Sign in

Cancel Transaction and Order

POST https://{organization}.myguper.com/api/loyalty/cancelOrderByTransaction/{TID}

Cancels both the loyalty transaction and its order — refunds cashback that was earned and rolls back any redeemed reward. Use when the entire purchase is being reverted.

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header. Endpoints that support a Public mode (e.g. acúmulo and resgate previews) accept the same request without the header — Private mode adds customer data and a confirmation token to the response.

Headers

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

Path parameters

Name Type Description
TID * string

Responses

{
    "TID": "dcf33b4448d604033d12ce176253ee54851531212b29bde1468d359e82005b92",
    "order": 2467383,
    "reward": [
        {
            "cardId": 185840,
            "value": 0
        }
    ],
    "redemption": [
        {
            "cardId": 185839,
            "value": 1099
        }
    ]
}

Related

Copied to clipboard