Creates a ticket definition. Allowed to create up to 100 definitions per event.
You can only call this method when authenticated as a Wix app or Wix user identity.
Ticket definition info.
Predefined sets of fields to return.
Created ticket definition.
curl -X POST 'cv3/ticket-definitions' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
"ticketDefinition": {
"eventId": "9d720f99-1b5a-4141-9877-d32985391e18",
"name": "Leather Workshop",
"description": "Step into the world of fine craftsmanship and explore the artistry of handcrafted leather goods at our captivating Leather Workshop. Join us for a hands-on experience that delves into the intricate process of transforming raw leather into exquisite creations. Immerse yourself in a creative atmosphere where seasoned leather artisans will guide you through the journey of mastering age-old techniques and unlocking your inner artisan.",
"policyText": "This is your event ticket. Ticket holders must present their tickets on entry. You can either print your ticket or present this digital version. You can find all the details about this event on our website. If you have any questions, issues or wish to get a refund, contact the event host. If you can’t attend the event, please get in touch. Looking forward to seeing you there!",
"hidden": false,
"initialLimit": 3,
"pricingMethod": {
"fixedPrice": {
"value": "200",
"currency": "USD"
}
},
"feeType": "FEE_INCLUDED",
"salePeriod": {
"startDate": "2023-06-07T10:00:00Z",
"endDate": "2023-06-30T00:00:00Z",
"displayNotOnSale": false
}
},
"fields": ["SALES_DETAILS"]
}'
{
"ticketDefinition": {
"id": "aaf51c30-a61c-473e-96be-a42dfa5064c0",
"eventId": "9d720f99-1b5a-4141-9877-d32985391e18",
"revision": "1",
"createdDate": "2023-05-25T11:39:26.108Z",
"updatedDate": "2023-05-25T11:39:26.108Z",
"name": "Leather Workshop",
"description": "Step into the world of fine craftsmanship and explore the artistry of handcrafted leather goods at our captivating Leather Workshop. Join us for a hands-on experience that delves into the intricate process of transforming raw leather into exquisite creations. Immerse yourself in a creative atmosphere where seasoned leather artisans will guide you through the journey of mastering age-old techniques and unlocking your inner artisan.",
"policyText": "This is your event ticket. Ticket holders must present their tickets on entry. You can either print your ticket or present this digital version. You can find all the details about this event on our website. If you have any questions, issues or wish to get a refund, contact the event host. If you can’t attend the event, please get in touch. Looking forward to seeing you there!",
"hidden": false,
"limited": true,
"initialLimit": 3,
"actualLimit": 3,
"pricingMethod": {
"fixedPrice": {
"value": "200.00",
"currency": "USD"
},
"pricingType": "STANDARD",
"free": false
},
"feeType": "FEE_INCLUDED",
"salePeriod": {
"startDate": "2023-06-07T10:00:00Z",
"endDate": "2023-06-30T00:00:00Z",
"displayNotOnSale": false
},
"saleStatus": "SALE_ENDED",
"salesDetails": {
"unsoldCount": 3,
"soldCount": 0,
"reservedCount": 0,
"soldOut": false
}
}
}
There are 3 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.