API Reference

Get Host Raffle Details

This API is used to get host raffle details like the number of tickets purchased, collected amount, total items, items with tickets, total buyer, etc. The event admin, super admin, and organizer admin can access this API. We need to pass an authorization token here which is generated after successful login into the account.

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

Attribute

Description

endDate

End date of the raffle.

collectedAmount

Collected amount from this raffle.

numberOfTicketPurchased

Number of raffle tickets purchased.

totalTicketPurchased

Number of total tickets purchased.

active

Is the module active or not?

status

Module status, the possible value will be EVENT_HAPPENING, PROCESSING_WINNER, WINNER_ANNOUNED, ERROR, EXTENDED_BIDDING, EVENT_MODULE_DELETED.

totalItems

Total number of items in the raffle.

itemsWithTickets

Total number of items that have submitted tickets in the raffle.

totalBuyers

Total number of buyers in the raffle.

days

Total number of event days.

  • Here are the possible error messages that return if any condition fails or required data is missing for processing.

Error Code

Description

400

The request could not be understood by the server due to malformed syntax.

401

You are not authorized to view the resource.

500

Internal server error.

4030201

Not event host.

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