Entrar

Obter campanha

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

Returns a single the campaign 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": "My Campaign",
    "aliquot": 5,
    "aliquotType": 1,
    "recurrentByOrder": 0,
    "expiryTime": 5184000,
    "initAt": {
        "date": "2023-07-01 06:00:00.000000",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
    },
    "finishAt": {
        "date": "2023-12-31 18:00:00.000000",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
    }
}
Copied to clipboard