Backoffice

Upcoming Raffles

Get Upcoming Raffles in selected language and currency.

GET /api/v1/raffles/upcoming

Upcoming Raffles

curl --request GET \
  --url 'https://api.example.com/api/v1/raffles/upcoming' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "count": 1,
  "next": "<string>",
  "previous": "<string>",
  "results": [
    {
      "id": 1,
      "campaign": {},
      "prizes": [
        {}
      ],
      "tasks": [
        {}
      ]
    }
  ]
}

Successful Response

Authorizations

  • Authorization string required header

Query Parameters

  • currency string

    Currency code Example: EUR

  • language string

    Two letters code of language according to ISO 639-1 standard Example: en

  • page integer

    Page number Example: 1

  • page_size integer

    Page size Example: 5

  • tenant_name string required

Response

application/json
  • count integer
  • next string
  • previous string
  • results[] object array
    + Show Child Attributes
    • id integer
    • campaign allOf
      + Show Child Attributes
      • id integer allOf
      • human_id string allOf
      • name string allOf
      • starts_at string (date-time) allOf
      • ends_at string (date-time) allOf
      • terms string allOf
      • content_info string allOf
    • prizes[] object array
      + Show Child Attributes
      • id integer
      • place_lower integer
      • place_upper integer
      • title string
    • tasks[] object array
      + Show Child Attributes
      • id integer
      • type allOf
        + Show Child Attributes
        • allOf 1 string enum allOfenum

          An enumeration. Allowed values: Login, Deposit, Turnover.

      • tickets_per_completion integer
      • quantity_to_complete integer
      • amount_to_complete string
      • max_tickets integer