Entrar

Reward Directo: Crear

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

Emite manualmente un reward card a un cliente, omitiendo el flujo de pedido/engine. Casos típicos: créditos de soporte, acciones puntuales de marketing, reconciliación manual.

Vinculado a una policy — el card hereda las reglas de expiración y el modo de agregación de la policy.

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.

Cuerpo de la petición

Content-Type: application/json

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

Respuestas

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