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
| Name | Type | Description |
|---|---|---|
| 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 https://cotlet.dev/api/v1/billetto/campaigns \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("billetto", "list_campaigns") const result = await cotlet.call('billetto', 'list_campaigns'); cotlet call billetto list_campaigns Example response
{
"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"
}
]
}