Skip to main content
GET
/
raffles
/
user-entries
Get raffle user entries
curl --request GET \
  --url https://api.sprucecollective.co.uk/raffles/user-entries \
  --header 'Authorization: <api-key>'
{
  "entries": [
    {
      "admin_grant_entries": 123,
      "admin_grant_transaction_ids": [
        "<string>"
      ],
      "all_transaction_ids": [
        "<string>"
      ],
      "all_wf_form_ids": [
        "<string>"
      ],
      "created_at": "<string>",
      "email": "<string>",
      "free_entries": 123,
      "item_id": "<string>",
      "paid_entries": 123,
      "paid_transaction_ids": [
        "<string>"
      ],
      "point_entries": 123,
      "raffle_id": "<string>",
      "raffle_name": "<string>",
      "total_entries": 123,
      "user_id": "<string>",
      "webflow_entries": 123
    }
  ],
  "has_more": true,
  "page": 123,
  "page_size": 123,
  "total": 123
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Query Parameters

page
integer
default:1

Page number

page_size
integer
default:10

Page size

raffle_id
string

Filter by raffle ID

item_id
string

Filter by item ID

user_id
string

Filter by user ID

email
string

Filter by user email (partial match)

raffle_name
string

Filter by raffle name (partial match)

is_paid
string

Filter by payment status (true/false). True returns entries with paid_entries > 0, false returns entries with paid_entries = 0

created_after
string

Filter entries created after this date (ISO 8601 format: 2023-01-01T00:00:00Z)

created_before
string

Filter entries created before this date (ISO 8601 format: 2023-01-01T00:00:00Z)

days_ago
integer

Filter entries created within the last X days

Response

OK

entries
object[]
has_more
boolean
page
integer
page_size
integer
total
integer