Sprutgaming API
  • Welcome
  • Information
    • Authorization
  • Core
    • Media
      • Get Banners By Category
      • Get Gallery By Category
    • Stories
      • Get Story List
    • Site Blocks
      • Get News
        • Get Stock News List
        • Get Bonuses With News
        • Get Slot Templates?
      • Get Sections
      • Get Settings
      • Get Languages List
      • Get FAQ List
      • Get Language by slug
      • Get Site Section List
      • Get Site Section by slug
      • Get SIte Footer
    • Sportbook
      • Open Session
      • Close Session
    • Promocodes
      • Activate Promocode
    • Chat
      • Get Chats List
      • Get Ads
      • Get Rules
      • Get Messages In Chat
      • Send Message
  • Services
    • User Service
      • Authorization
        • Recovery
          • Send Code
          • Verify Code
          • Update
        • Password Reset
          • Send Code
          • Update
        • Confirmation
          • Send Code
          • Verify Code
        • Login
        • Register
        • Refresh Token
        • Me
        • Self Block
        • Update
      • Fingerprint
        • Get Widget
        • Get Balance
        • Get Transactions
      • Ranks
      • Avatars
        • Get Avatars
        • Update User Avatar
        • Remove User Avatar
      • Countries
      • Promocodes
    • Game Service
      • Session
        • 🎮Open Demo Session
        • 🎲Open Real Session
      • Sections
        • 🖇️Get Available Sections
        • 📦Get Games By Section
        • 🎲Get Section By Id
      • Themes
        • 🎨Get Available Themes
        • 📦Get Games By Theme
      • Favourites
        • Get Favourites
        • Add To Favourites
        • Remove From Favourites
      • Casino Games
        • Get last played games
        • Get Casino games List
      • Providers
        • Get Providers List
      • Misc
        • Get Game By UUID
        • Get Last Played Games
      • User Big Wins
    • Wallet Service
      • Exchanger
        • ➡️Get Output Pairs
        • ⬅️Get Input Pairs
      • 👉Prerequisites
      • 🗃️Get Wallets
      • 💲Get Wallet By Currency
      • 🗳️Get Transactions
      • 💱Get Available Currencies
      • True Play
        • Get True Play Balance
        • Get True Play Widget
        • Get True Play Exchange transactions
    • Bonus Service
      • Lucky Spin
        • Get Available Spins
        • Spin
      • Get Available Bonuses
      • Get Active Bonuses
      • Get Bonus History
      • Activate Bonus
      • Cancel Active Bonus
      • Get Bonus Categories
      • Get Bonus By Id
    • Tournament Service
      • Get Tournaments
      • Get Tournament by ID
      • Get Tournament Users
      • Get Tournament Games
      • Get User Tournament History
    • Jackpot Service
      • Get Jackpot Groups
      • Get Jackpot Group
      • Get Jackpot Group Winners History
      • Get Jackpot Group Games
      • Get User Jackpot Win History
    • Achievement Service
      • Get List of Achievement Categories
      • Get List of Achievements
      • Get User Achievement Points
    • Store Service
      • Get Products List
      • Get Product Categories
      • Get User Products
      • Purchase Bonus
    • Loyalty Store Service
    • Notification Service
      • User Notifications
        • Get notifications
        • Read Notifications
        • Read All Notifications
        • Delete Notifications
    • SSO (OAuth2) Service
    • Payment Serive
      • Payment Methods Groups
        • List
        • Get By Id
      • Payment Actions
        • Pay
        • Withdraw
        • Cancel
      • Payment Orders
        • List
      • Aggregate
        • Aggregate by currencies
    • Config Service
      • Settings
        • List Public Settings
Powered by GitBook
On this page
  1. Services
  2. Achievement Service

Get List of Achievements

GET /achievement-service/v1/achievements

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description
Optional

page

integer

Page number for pagination

Yes

per_page

integer

Number of records per page

Yes

category_id

string

Filter achievements by category ID

Yes

is_completed

boolean

Filter achievements by completion status

Yes

Response

{
  "data": [
    {
      "id": 26,
      "name": "Withdrawal of 300 USD",
      "description": "It's always nice to win, and withdrawing money for your desires is even nicer. Make a withdrawal of 300 USD and receive an additional 30 achievement points.",
      "status": true,
      "reward_loyalty_points": "30",
      "achievement_category_id": 3,
      "achievementable_type": "App\\Models\\Achievement\\AchievementForTransactionRule",
      "achievementable_id": 23,
      "achievementable": {
        "id": 23,
        "type": "tx_withdraw",
        "count": 1,
        "sum": 30000,
        "currency": {
          "id": 13,
          "enabled": true,
          "name": "US Dollar",
          "code": "USD",
          "sign": "$",
          "type": "fiat"
        },
        "total_amount": null
      },
      "userAchievements": {
        "completed": false,
        "progress": 0,
        "required_progress": 1,
        "progress_type": "count"
      },
      "priority": 10,
      "media": [
        {
          "id": 362,
          "name": "01JKDTWA8VCR101ZJHKTRPHP5M.webp",
          "original_url": "https://dev-cdn-rmc.garillahub.com/laravel/362/01JKDTWA8VCR101ZJHKTRPHP5M.webp"
        }
      ]
    },
    {
      "id": 24,
      "name": "1,000 Wins",
      "description": "Claim 30 achievement points for 1,000 wins in the game.",
      "status": true,
      "reward_loyalty_points": "30",
      "achievement_category_id": 3,
      "achievementable_type": "App\\Models\\Achievement\\AchievementForTransactionRule",
      "achievementable_id": 21,
      "achievementable": {
        "id": 21,
        "type": "tx_win",
        "count": 1000,
        "sum": 1,
        "currency": {
          "id": 13,
          "enabled": true,
          "name": "US Dollar",
          "code": "USD",
          "sign": "$",
          "type": "fiat"
        },
        "total_amount": null
      },
      "userAchievements": {
        "completed": false,
        "progress": 0,
        "required_progress": 1000,
        "progress_type": "count"
      },
      "priority": 10,
      "media": [
        {
          "id": 311,
          "name": "01JKDF7D64085E9R0YTJNY4S4Z.webp",
          "original_url": "https://dev-cdn-rmc.garillahub.com/laravel/311/01JKDF7D64085E9R0YTJNY4S4Z.webp"
        }
      ]
    }
  ],
  "links": {
    "first": "http://127.0.0.1:8001/api/achievement?page=1",
    "last": "http://127.0.0.1:8001/api/achievement?page=2",
    "prev": null,
    "next": "http://127.0.0.1:8001/api/achievement?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 2,
    "per_page": 25,
    "to": 25,
    "total": 28
  }
}
{
  "error": "Invalid request"
}

PreviousGet List of Achievement CategoriesNextGet User Achievement Points

Last updated 2 months ago