Entrar

Reward Direto: Criar

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

Emite manualmente um reward card para um cliente, pulando o fluxo de pedido/engine. Casos típicos: créditos de suporte, ações pontuais de marketing, reconciliação manual.

Vinculado a uma policy — o card herda as regras de expiração e o modo de agregação dela.

Try-it values populated from environment ACME (Demo)


Autenticação

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.

Cabeçalhos

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.

Corpo da requisição

Content-Type: application/json

{
    "policy": 1,
    "client": 47,
    "value": 5000,                                              // cents
    "expiresAt": "2026-12-31",
    "startsAt": "2026-05-04"                                    // optional
}

Respostas

{ "cardId": 9182, "policy": 1, "client": 47, "value": 5000, "expiresAt": "2026-12-31T23:59:59-03:00" }
Copied to clipboard