Entrar

Eliminar campaña

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

Elimina una campaña por ID. Las tarjetas de acumulación ya generadas por la campaña se mantienen — solo se elimina la definición de la campaña. Las reglas vinculadas (campaign_rule) se borran en cascada por la base de datos.

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

{
    "id": 1
}

Respuestas

Copied to clipboard