Title: Rest API create tickets
Last modified: December 27, 2024

---

# Rest API create tickets

 *  Resolved [neatdev](https://wordpress.org/support/users/neatdev/)
 * (@neatdev)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-create-tickets/)
 * I’m trying to build a simple script to ease some administrative pain I’m dealing
   with. I manage a few different sites that sell tickets for their events. each
   of these sites has different tickets and pricing requirements.
 * Manually adding tickets each time has been a huge frustration. Since there is
   no way to create a ticket package template (which would be a nice feature). I
   decided to try and roll my own method by utilizing a simple script I can run 
   locally and leverage the API to try and create my events and tickets.
 * Problem is I keep running into nonce errors.
 * Each event is created without issue. However, ticket creation results in.
 *     ```wp-block-code
       {'code': 'forbidden', 'message': 'Invalid nonce', 'data': {'status': 403}}Failed to create ticket 'General Admission': 403
       ```
   
 * I’m using generated application passwords. I understand the application password
   isn’t supposed to require a nonce, which makes me believe that the issue is somewhere
   else entirely or I’m completely missing something.
 * Curious if anyone has any ideas.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-create-tickets/#post-18218090)
 * Hi [@neatdev](https://wordpress.org/support/users/neatdev/) ,
 * Thank you for reaching out.
 * I regret to inform you that it is not currently possible to create tickets via
   API due to the complexities involved with ticket creation. At this time, tickets
   can only be created via the admin dashboard or through CSV import (see [CSV File Formatting and Examples | Tickets Fields](https://theeventscalendar.com/knowledgebase/csv-file-examples-for-importing/#ticket-fields)).
 * However, I can see your point of having the ability to create tickets via the
   API, which might be useful for other users, too. Since we are a customer-driven
   platform, I have shared this with our product team. The team reviews feedback
   regularly to plan out our product roadmaps.
 *  Thread Starter [neatdev](https://wordpress.org/support/users/neatdev/)
 * (@neatdev)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-create-tickets/#post-18219020)
 * Well,
 * I took your suggestion, begrudgingly because I really wanted to incorporate this
   into my own management systems. Using csv is just another step I’d need to take.
 * After 2 and a half hours of setup up all of my events in a csv (I haven’t even
   gotten to the tickets yet!) I’m hit with an absolutely useless error.
 * **There was an error fetching the results from your import:** Unknown service
   message
 * After an hour of troubleshooting this, thinking there must be something wrong
   or incorrect about my csv, I decided to try something, I uploaded your very own
   example csv from your website. and what do you know…. same error.
 * So having no idea what’s wrong, how can one expect to fix this?
 * It’s things like this that remind me I really need to get to work on a different
   solution.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-create-tickets/#post-18221625)
 * Hi [@neatdev](https://wordpress.org/support/users/neatdev/)
 * Thanks for your response.
 * Importing Tickets through CSV is only possible if you have _Event Tickets PLUS
   _which you can integrate with _WooCommerce_. Unfortunately, if you’re exporting
   tickets using _Tickets Commerce_, it won’t work.
 * If you already have Event Tickets PLUS and you are already using WooCommerce 
   integration, please make sure you have a **Tickets Price** column on your CSV
   file, and ensure the **Event Name, ID, or Slug** column is mapped to an existing
   event.
 * If you need any more help and you have a premium license, please open a [Support Ticket](https://theeventscalendar.com/support/#contact)
   on our Help Desk. This is for us to follow [WordPress Forum Guidelines](https://wordpress.org/support/guidelines)
   regarding premium users
 * You’ll hear from one of my colleagues soon!
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-create-tickets/#post-18223954)
 * Hi there,
 * It appears that there hasn’t been any recent activity on this thread, so we’ll
   consider it resolved. However, if you have any additional questions or concerns,
   feel free to start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Rest API create tickets’ is closed to new replies.

 * ![](https://ps.w.org/event-tickets/assets/icon.svg?rev=2259340)
 * [Event Tickets and Registration](https://wordpress.org/plugins/event-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/event-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-tickets/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-create-tickets/#post-18223954)
 * Status: resolved