Entrar

Fluxo

GET https://{organization}.myguper.com/api/register/person/{personId}/tier/flow

Retorna o ledger completo de pontos de tier de uma pessoa — todos os créditos/débitos com origem, validade e descrição. Use para renderizar uma tela de "histórico de tier".

Try-it values populated from environment ACME (Demo)


Autenticação

Token

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

Cabeçalhos

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.

Parâmetros do caminho

Name Type Description
personId * integer ID interno da pessoa no Guper.

Respostas

[
    {
        "id":          501,
        "person":      44,
        "tierConfig":  1,
        "source":      "rewardCampaign",
        "sourceId":    "tx_demo_a1b2c3d4",
        "operation":   "credit",
        "points":      150,
        "expireAt":    "2027-05-01T00:00:00-03:00",
        "description": "Cashback ord_2026_001",
        "createdAt":   "2026-05-01T12:34:56-03:00"
    },
    {
        "id":          502,
        "person":      44,
        "tierConfig":  1,
        "source":      "manual",
        "sourceId":    "ops-44-bonus",
        "operation":   "credit",
        "points":      500,
        "expireAt":    null,
        "description": "Welcome bonus",
        "createdAt":   "2026-05-02T09:00:00-03:00"
    }
]
Copied to clipboard