• Resolved neatdev

    (@neatdev)


    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.

    {'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

    (@tristan083)

    Hi @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).

    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

    (@neatdev)

    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

    (@d0153)

    Hi @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 on our Help Desk. This is for us to follow WordPress Forum Guidelines regarding premium users

    You’ll hear from one of my colleagues soon!

    Plugin Support Darian

    (@d0153)

    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.