Sign in

Delete

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

Removes a campaign by ID. Cards already issued by the campaign are kept — only the campaign definition is deleted. Existing rules attached to the campaign (campaign_rule) are cascaded by the database.

Try-it values populated from environment ACME (Demo)


Authentication

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.

Headers

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.

Request body

Content-Type: application/json

{
    "id": 1
}

Responses

Copied to clipboard