Entrar

Reward Direto: Consumir

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

Debita pontos do saldo de reward de um cliente contra um payload de pedido. Calcula o valor como total_item / pointsDivisor * pointsDividend contra a policy resolvida, e executa o redeem nos cards correspondentes (FIFO por expiração).

Retorna os cards tocados e o valor de fato debitado.

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

{
    "interface": "generic",
    "storeId": "1",
    "client": 47,
    "value": 96390                                              // cents
}

Respostas

Copied to clipboard