Entrar

Remover campanha

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

Remove uma campanha pelo ID. Cartões de acúmulo já gerados pela campanha são mantidos — apenas a definição da campanha é apagada. Regras vinculadas (campaign_rule) são removidas em cascata pelo banco.

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

{
    "id": 1
}

Respostas

Copied to clipboard