v1
latestOpenAPI 3.0.02026-08-062903562.2 MBTicket Type
createTicketType
Create a Ticket Type for a given Campaign.
post/campaigns/{campaign}/ticket-types
Path parameters
campaigninteger required
Example:227362
Primary identifier of Campaign
Request body
Example request
{
"commitment": {
"deadline": "2016-02-01T00:00:00+0000",
"value": 100
},
"description": "Ticket Type description",
"ended_at": "2019-04-23T10:25:03Z",
"entries_per_ticket": 3,
"is_active": true,
"max_per_transaction": 1,
"name": "General Admission",
"org_percent": 100,
"deductible_amount": 5,
"deductible_percent": 100,
"price": 10,
"quantity_available": 2,
"started_at": "2016-01-01T12:00:00+0000",
"weight": 1
}Response
Success
Example response
{
"commitment": {
"deadline": "2016-02-01T00:00:00+0000",
"value": 100
},
"description": "Ticket Type description",
"ended_at": "2019-04-23T10:25:03Z",
"entries_per_ticket": 3,
"is_active": true,
"max_per_transaction": 1,
"name": "General Admission",
"org_percent": 100,
"deductible_amount": 5,
"deductible_percent": 100,
"price": 10,
"quantity_available": 2,
"started_at": "2016-01-01T12:00:00+0000",
"weight": 1,
"campaign_id": 227362,
"commitment_id": 98374,
"created_at": "2016-01-01T12:00:00+0000",
"id": 9978,
"min_per_transaction": 1,
"quantity_reserved": 1,
"quantity_sold": 1,
"updated_at": "2016-01-01T12:00:00+0000"
}