CSV Import & Export
Instant prize CSV
Section titled “Instant prize CSV”Use the instant ticket import control in the competition editor. The current importer accepts comma-separated files with two to five columns in this order:
ticket_number,prize_description,value,image_url,category1,Gift voucher,100,,Vouchers2,Headphones,79.99,,ElectronicsThe first two columns are required. The header above is recognized. Download the plugin’s sample instant prize CSV.
| Column | Validation |
|---|---|
ticket_number |
Unique positive integer within the competition’s maximum ticket count |
prize_description |
Non-empty prize description |
value |
Optional non-negative numeric amount |
image_url |
Optional HTTP or HTTPS URL |
category |
Optional prize category |
Use quotes around fields containing commas. If you use a decimal comma, quote the numeric field so it remains one column.
Each prize description, value, image URL, and category must fit within 255 characters. Ticket numbers must be unique across the whole file.
The file is validated before replacing the prize pool. A successful import replaces the competition’s configured instant prizes rather than merely appending rows. Back up the existing data before importing and check the saved pool afterward.
If validation or replacement fails, the existing prize pool stays in place. Correct the reported problem before retrying. If another import is already running for the competition, wait for it to finish.
Participant exports
Section titled “Participant exports”Use the competition’s available participant export controls to retain entries before relisting or deleting logs. Automatic relisting can also be configured to save participants to CSV.
Participant exports and instant prize imports serve different data structures. Do not upload a participant export as an instant prize definition.
Each export uses a unique filename to avoid replacing an earlier export. If an automatic relist cannot finish its required export, it reports an error and does not relist the competition. Check the export folder permissions before retrying.
For custom importers or export filters, see CSV processing.
Administration examples
Section titled “Administration examples”Instant prize import
Section titled “Instant prize import”
The CSV upload control is at the top of the Competition Instant Prizes panel.
