Entrar

Obter regra

GET https://{organization}.myguper.com/api/loyalty/rule/{id}

Returns a single the rule matching the given identifier.

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.

Parâmetros do caminho

Name Type Description
id * string

Respostas

{
    "id": 1,
    "name": "Compra de valor",
    "class": "Rule",
    "method": "value",
    "priority": 100
}
Copied to clipboard