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.

Attribute

Description

invalidItems

it is a JSON array of invalid items list included its name, description, category, ticketsSubmitted, and many more.

validItems

it 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 Code

Error Description

200

OK

4030201

Only event admins can upload a CSV.

40600012

Upload file header names are not correct or not in proper sequence.

Language
Authentication
Header
Click Try It! to start a request and see the response here!