Entrar

Cancelar transacción y pedido

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

Cancela la transacción de loyalty y el pedido asociado — devuelve el cashback acumulado y revierte cualquier canje aplicado. Úsalo cuando se revierte toda la compra.

Try-it values populated from environment ACME (Demo)


Autenticación

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.

Encabezados

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.

Parámetros de ruta

Name Type Description
TID * string

Respuestas

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

Relacionados

Copied to clipboard