Skip to main content
POST
/
campaign-items
/
tickets
cURL
curl --request POST \
  --url https://api.givebutter.com/v1/campaign-items/tickets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "price": 1,
  "event_id": 123,
  "total_quantity": 1,
  "subtype": "physical",
  "active": true,
  "retail_price": 1,
  "description": "<string>",
  "bundle_only": true,
  "hide_remaining": true,
  "scope": "registrant",
  "bundles": [
    "<string>"
  ],
  "custom_fields": [
    "<string>"
  ],
  "pictures": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "campaign_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "price": "<string>",
  "total_quantity": "<string>",
  "subtype": "<string>",
  "active": "<string>",
  "retail_price": "<string>",
  "bundle_only": "<string>",
  "hide_remaining": "<string>",
  "scope": "<string>",
  "bundles": "<string>",
  "custom_fields": "<string>",
  "pictures": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Maximum string length: 255
price
number
required
Required range: x >= 0
event_id
integer
required
total_quantity
integer | null
Required range: x >= 0
subtype
enum<string> | null
Available options:
physical,
digital,
hybrid
Maximum string length: 255
active
boolean | null
retail_price
number | null
Required range: x >= 0
description
string | null
Maximum string length: 5000
bundle_only
boolean | null
hide_remaining
boolean | null
scope
enum<string> | null
Available options:
registrant,
event
Maximum string length: 255
bundles
string[] | null
custom_fields
string[] | null
pictures
string[] | null

Response

CampaignItemTicketResource

id
string
required
campaign_id
string
required
name
string
required
description
string
required
price
string
required
total_quantity
string
required
subtype
string
required
active
string
required
retail_price
string
required
bundle_only
string
required
hide_remaining
string
required
scope
string
required
bundles
string
required
custom_fields
string
required
pictures
string
required