Sign in

By Order

GET https://{organization}.myguper.com/api/loyalty/transaction/byOrder/{idOrder}

Returns every transaction tied to a given order. An order can carry more than one transaction — accrual and redemption issued through separate flows, partial cancellations, retries on the same checkout — so the response is a list, oldest first.

Useful when you have the order identifier and need the TIDs to feed other endpoints (/transaction/{TID}, /transaction/cancel/{TID}, /cancelOrderByTransaction/{TID}, /cancelPartial/{TID}).

Two URL forms are supported — pick the one that matches the identifier you have. Returns 404 when no transaction exists for the order.

Try-it values populated from environment ACME (Demo)

Modes

Looks up transactions directly by Guper's internal orderId.

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
idOrder * string Internal Guper `orderId`

Responses

{
    "order": 2467383,
    "transactions": [
        {
            "TID":        "dcf33b4448d604033d12ce176253ee54851531212b29bde1468d359e82005b92",
            "person":     570971,
            "canceledAt": null,
            "createdAt":  "2026-01-15T16:21:44-03:00"
        },
        {
            "TID":        "8c91a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1",
            "person":     570971,
            "canceledAt": "2026-01-20T09:14:00-03:00",
            "createdAt":  "2026-01-15T17:02:11-03:00"
        }
    ]
}
Copied to clipboard