List campaigns

Discount campaigns of an event or of the account, by status.

GET https://cotlet.dev/api/v1/billetto/campaigns

read

Returns the campaigns from Promotions & Offers with their name, status and what they do (a percentage discount, a set price per ticket type or an unlocked ticket type). Billetto groups campaigns as running, drafts, paused and completed. Leave event_id out for account-wide campaigns.

Parameters

Parameters: list_campaigns
NameTypeDescription
event_id string string Only campaigns of this event. Omit for account-wide campaigns.
status string string running, drafts, paused or completed. Omit for all.

Request

cURL
curl https://cotlet.dev/api/v1/billetto/campaigns \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("billetto", "list_campaigns")
Node.js
const result = await cotlet.call('billetto', 'list_campaigns');
CLI
cotlet call billetto list_campaigns

Example response

JSON

{
  "campaigns": [
    {
      "campaign_id": "30918",
      "name": "Early bird",
      "status": "running",
      "effect": "20% discount",
      "scope": "event"
    },
    {
      "campaign_id": "30650",
      "name": "Members week",
      "status": "paused",
      "effect": "30% discount",
      "scope": "account"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.