Parse and upload valid raffle Items from CSV

This API is used to add raffle items using an uploaded CSV file. To upload a CSV file, you have to enter an Item Name, Item Code, Item Category, Item Description in a CSV file. This API can be accessed by event admin and super admin. We need to pass an authentication token to authorize the user and need to upload the file object.

Here is the description of response attributes, which returns to the form of JSON.

AttributeDescription
invalidItemsit is a JSON array of invalid items list included its name, description, category, ticketsSubmitted, and many more.
validItemsit is a JSON array of valid items list including its name, description, category, ticketsSubmitted, and many more.

Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.

Error CodeError Description
200OK
4030201Only event admins can upload a CSV.
40600012Upload file header names are not correct or not in proper sequence.
Language
Authorization
Header
Click Try It! to start a request and see the response here!