Introduction
This documentation aims to provide all the information you need to work with our FantasySpin Mobile App API.
Base URL
https://apiqa.bettorfantasy.comAuthenticating requests
Authenticate requests to this API's endpoints by sending an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Login.
Admin-Auth
Admin Sign In
Use this end point to sign in for admin portal
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/admin/sign-in" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"quibusdam","password":"commodi"}'
Example response (200):
{
"message": "Credentials are correct, please provide OTP sent to your mobile.",
"data": {
"email": "admin@bettorfantasy.com"
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"email": [
"The email field is required."
],
"password": [
"The password field is required."
]
}
}
Received response:
Request failed with error:
Sign Out
requires authentication
Use this end point to sign out.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/admin/sign-out" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Sign out successfull!"
}
Received response:
Request failed with error:
Admin Verify OTP
Use this end point to verify OTP for admin portal
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/admin/verify-otp" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"nemo","otp":"voluptatem"}'
Example response (200):
{
"message": "Sign in successfull",
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC8xMjcuMC4wLjE6ODAwMFwvYWRtaW5cL3ZlcmlmeS1vdHAiLCJpYXQiOjE2NjEzMjMyNTgsImV4cCI6MTY5Mjg1OTI1OCwibmJmIjoxNjYxMzIzMjU4LCJqdGkiOiI1NnI0VjRwcUJhUVo2NHNoIiwic3ViIjoxLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.-1u-aTU1_dCox95RM_83K7TqPoDt3M3Gf1RxpRwxCdE",
"token_type": "bearer",
"expires_in": 31536000,
"user": {
"id": 1,
"email": "admin@bettorfantasy.com",
"username": "admin"
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"otp": [
"Verification code is invalid"
]
}
}
Received response:
Request failed with error:
Admin Resend OTP
Use this end point to resend OTP for admin portal
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/admin/resend-otp" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"voluptas"}'
Example response (200):
{
"message": "OTP sent!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"email": [
"The email field is required."
]
}
}
Received response:
Request failed with error:
App Version
List
requires authentication
Use this end point to get the list of app versions
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/app-version?search=ios" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "App version list",
"data": {
"appVersions": {
"current_page": 1,
"data": [
{
"id": 4,
"platform": "ios",
"version": "19.2",
"date": "2025-01-28 06:59:14",
"is_force_update": 1,
"created_at": "2025-01-28T11:59:14.000000Z",
"updated_at": "2025-01-28T11:59:14.000000Z"
"release_notes": [
{
"title": "🚀 Featured Contests",
"description": "View and easily enter the top contests that are available on FantasySpin"
},
{
"title": "🚀 Referral Tier Bonuses",
"description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
}
]
},
{
"id": 3,
"platform": "android",
"version": "74.0",
"date": "2025-01-28 06:59:14",
"is_force_update": 1,
"created_at": "2025-01-28T11:59:14.000000Z",
"updated_at": "2025-01-28T11:59:14.000000Z"
"release_notes": [
{
"title": "🚀 Featured Contests",
"description": "View and easily enter the top contests that are available on FantasySpin"
},
{
"title": "🚀 Referral Tier Bonuses",
"description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
}
]
},
},
],
"first_page_url": "http://127.0.0.1:8000/app-version?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/app-version?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/app-version?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/app-version",
"per_page": 10,
"prev_page_url": null,
"to": 4,
"total": 4
}
}
}
Received response:
Request failed with error:
Store
requires authentication
Use this end point to store app version
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/app-version/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"platform":"ios.","version":"19.0","date":"Y-m-d H:i:s","is_force_update":true}'
Example response (200):
{
"message": "App version created successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"platform": [
"The platform field is required."
],
"version": [
"The version field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
View
requires authentication
Use this end point to view a App Version
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/app-version/data/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "App Version",
"data": {
{
"id": 4,
"platform": "ios",
"version": "19.2",
"date": "2025-01-28 06:59:14",
"is_force_update": 1,
"created_at": "2025-01-28T11:59:14.000000Z",
"updated_at": "2025-01-28T11:59:14.000000Z",
"release_notes": [
{
"title": "🚀 Featured Contests",
"description": "View and easily enter the top contests that are available on FantasySpin"
},
{
"title": "🚀 Referral Tier Bonuses",
"description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
}
]
},
Example response (404):
{
"message": "App version not found!"
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update app version
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/app-version/mollitia/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"platform":"ios.","version":"19.0","date":"Y-m-d H:i:s","is_force_update":true,"status":1}'
Example response (200):
{
"message": "App version updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"platform": [
"The platform field is required."
],
"version": [
"The version field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete a app version
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/app-version/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "App version deleted successfully!",
}
}
Example response (404):
{
"message": "App version not found!"
}
Received response:
Request failed with error:
Latest Version
requires authentication
Use this end point to view a Latest App Version
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/app-version/get-latest-version-data/soluta" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"platform":"ios"}'
Example response (200):
{
"message": "Latest App Version",
"data": {
"latestVersion": {
"id": 4,
"platform": "ios",
"version": "19.2",
"is_force_update": 1,
"release_notes": [
{
"title": "🚀 Featured Contests",
"description": "View and easily enter the top contests that are available on FantasySpin"
},
{
"title": "🚀 Referral Tier Bonuses",
"description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
}
]
},
Example response (422):
{
"message": "Please enter required information",
"errors": {
"platform": [
"The platform field is required."
]
}
}
Received response:
Request failed with error:
Auth
Forgot Password
Use this end point to request verification code when the user forgets the password
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/forgot-password" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"reiciendis"}'
Example response (200):
{
"message": "You will receive a verification code on your registered email. This code will be valid for 24 hours."
}
Example response (404):
{
"message": "User not found!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"email": [
"The email field is required."
]
}
}
Received response:
Request failed with error:
Reset Password
Use this end point to reset the password
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/reset-password" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"user_id":19,"otp":"non","password":"id","password_confirmation":"ea"}'
Example response (200):
{
"message": "Your password has been changed!"
}
Example response (404):
{
"message": "User not found!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"user_id": [
"The user id field is required."
],
"otp": [
"The otp field is required."
],
"password": [
"The password field is required."
]
}
}
Received response:
Request failed with error:
Verify Code
Use this end point to verify the code (OTP)
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/verify-code" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"otp":"recusandae","email":"accusamus","type":"quisquam"}'
Example response (200):
{
"message": "Verification successfull!",
"data": {
"otp": "2633",
"type": "10",
"user": {
"id": 2,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala"
}
}
}
Example response (404):
{
"message": "Email is not registered"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"otp ": [
"The otp field is required."
],
"type": [
"The type field is required."
]
}
}
Received response:
Request failed with error:
Reactivate Account Send OTP
Use this end point to send otp to reactivate deleted account
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/reactivate-account-send-otp" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"phone":"voluptatem","otp_signature":"FtSl93sVi2G"}'
Example response (201):
{
"message": "OTP Sent Successfully"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"phone ": [
"The phone field is required."
]
}
}
Received response:
Request failed with error:
Send Verification Mail
requires authentication
Use this end point to send a mail to user to verify email.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/user/send-verification-mail" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"aut"}'
Example response (200):
{
"message": "Verification mail sent successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"email": [
"The email field is required."
],
}
}
Received response:
Request failed with error:
Get Current Versions Of App
requires authentication
Use this end point to get current versions of app
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/check-app-update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Current Versions",
"data": {
"android_version": "90",
"android_force_update": "1",
"ios_version": "19.0",
"ios_force_update": "1"
}
}
Received response:
Request failed with error:
Check Maintenance Mode for App
requires authentication
Use this end point to check maintenance mode for app
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/check-maintenance-mode" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
* "maintenance_mode": "disabled"
}
Received response:
Request failed with error:
Update FCM token
requires authentication
Use this end point to update FCM token
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/update-fcm-token" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fcm_token":"aliquam"}'
Example response (200):
{
"message": "FCM token updated successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"fcm_token": [
"The fcm token is required"
]
}
}
Received response:
Request failed with error:
Balance
requires authentication
Use this end point to get balance
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/balance" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "My Balance!",
"data": {
"available_bucks": "0",
"available_credits": "950",
"available_cash": "0",
"reward_earned_credits": "0",
"challenges_won": [],
"flag_feature_bettorlive": 1,
"kyc_status": {
"id": 1,
"name": "Not performed",
"created_at": "2022-05-16T06:02:06.000000Z",
"updated_at": "2022-05-16T06:02:06.000000Z"
},
"geo_location_status": {
"id": 4,
"name": "DENIED",
"created_at": "2022-05-17T07:31:13.000000Z",
"updated_at": "2022-05-17T07:31:13.000000Z"
},
"is_dfs_geolocation_step_passed": 0,
"cash_deposit_min": "10",
"cash_deposit_max": "5000",
"cash_transaction": null,
"xpoint_client_key": "bettorfantasy15423dev",
"games": [
{
"id": 4,
"name": "Ice Hockey (NHL)",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-icehockey.png",
"status": "Active",
"sequence": 0,
"created_at": null,
"updated_at": null
},
{
"id": 3,
"name": "Baseball (MLB)",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-baseball.png",
"status": "Active",
"sequence": 1,
"created_at": null,
"updated_at": "2022-07-15T06:53:42.000000Z"
},
{
"id": 2,
"name": "Basketball (NBA)",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-basketball.png",
"status": "Paused",
"sequence": 2,
"created_at": null,
"updated_at": "2022-07-15T06:53:59.000000Z"
}
],
"kyc_dob": null,
"websocket_host": null,
"websocket_port": "6001",
"websocket_key": "34864a25-3910-408d-8527-7f8aea0f9ccf",
"privacy_show_recent_picks": 1,
"navigations": [
{
"id": 1,
"name": "Fantasy",
"status": "Active",
"sequence": 1
},
{
"id": 2,
"name": "Props",
"status": "Active",
"sequence": 2
},
{
"id": 3,
"name": "Survival",
"status": "Active",
"sequence": 3
},
{
"id": 4,
"name": "Pools",
"status": "Active",
"sequence": 4
}
]
}
}
Received response:
Request failed with error:
Balance V2
requires authentication
Use this end point to get balance
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/balance/v2" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
{
"message": "My Balance!",
"data": {
"username": "uemswati150920251",
"available_bucks": "0",
"available_credits": "6960",
"available_cash": "0",
"available_cash_excluding_site_credits": "0",
"available_site_credits": "0",
"reward_earned_credits": "0",
"kyc_status": {
"id": 1,
"name": "Not performed"
},
"kyc_upload_url": null,
"kyc_url_days_passed": null,
"kyc_url_expiry": 14,
"geo_location_status": {
"id": 3,
"name": "ALLOWED"
},
"cash_deposit_min": "10",
"cash_deposit_max": "5000",
"xpoint_client_key": "bettorfantasy15423dev",
"games": [
{
"id": 1,
"name": "NFL",
"image": "http://127.0.0.1:8000/images/icon-football-v2.png",
"status": "Active",
"sequence": 0,
"created_at": null,
"updated_at": "2025-02-27T12:13:56.000000Z",
"featured_contest_image": "nfl_feature_contest.png",
"featured_contest_color1": "0xFF003EFF",
"featured_contest_color2": "0xFF001864",
"featured_contest_btn_color": "0xFF012084",
"featured_contest_color3": "0xFF0F2BB0",
"big_wins_color1": "0xFF1A44C8",
"big_wins_color2": "0xFF1A3482",
"big_wins_image": "nfl_big_wins.png",
"big_wins_arrow": "nfl_arrows.png",
"big_wins_text_color": "0xFFD1D8EE",
"cron_status": 1
}
],
"kyc_dob": null,
"privacy_show_recent_picks": 1,
"is_appsflyer_withdrawal_done_recently": 0,
"is_appsflyer_deposit": 0,
"is_appsflyer_first_deposit": 0,
"is_appsflyer_second_deposit": 0,
"is_appsflyer_first_time_cash_entry": 0,
"experience_level": "Beginner",
"is_self_exclusion": 0,
"trivia_reset_seconds": "20h 29m",
"is_trivia_done": 0,
"is_scoring_notice_dsa": 1,
"reward_value": 20,
"deposit_checkout_url": "http://127.0.0.1:8000/v2/payments/deposit/checkout?user_id=854&token=uK0ANI4bEXnf5tgD",
"payment_methods_count": 3,
"payment_methods": [
{
"id": 9,
"userPaymentOptionId": "135394628",
"payment_method": "apmgw_eCheckSelect",
"cardType": null,
"method_image": "http://127.0.0.1:8000/images/payments/ibt-white.png",
"method_name": "Online Banking",
"method_masked_number": "Online Banking ****6196",
"method_masked_number_new": "Online Banking ****6196",
"is_default": 0,
"expMonth": "--",
"expYear": "--",
"lastFourDigits": "--",
"firstName": "Taha",
"lastName": "EM",
"address": "Address 1",
"phone": "+11234567890",
"zip": "12344",
"city": "Abad",
"country": "US",
"state": "KY",
"email": "accountholder0@example.com",
"created_at": "2024-12-12T11:18:39.000000Z"
}
],
"deposit_validations": {
"minimum_deposit_limit": "25",
"daily_deposit_limit": "250",
"week_deposit_limit": "500",
"month_deposit_limit": "1000",
"today_deposit": "0",
"week_deposit": "0",
"month_deposit": "0"
},
"referral_code_appsflyer": "https://fantasyspin1.onelink.me/kjUP/uemswati150920251",
"is_email_verified_new": 1,
"kyc_attempts": null,
"fcm_token": null,
"enjoying_fs_status": "not_eligible",
"maintenance_mode": "disabled",
"is_gameplay_sound_enabled": 1,
"next_sound_key": "fantasyspin_classic",
"user_background_sounds": [
{
"sound_key": "fantasyspin_classic",
"is_enabled": 1
}
],
"current_streak": 0,
"version_info": {
"android_version": "73.0",
"android_force_update": "1",
"android_release_notes": [
{
"title": "🚀 Featured Contests",
"description": "View and easily enter the top contests that are available on FantasySpin"
},
{
"title": "🚀 Referral Tier Bonuses",
"description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
}
],
"ios_version": "19.0",
"ios_force_update": "1",
"ios_release_notes": [
{
"title": "🚀 Featured Contests",
"description": "View and easily enter the top contests that are available on FantasySpin"
},
{
"title": "🚀 Referral Tier Bonuses",
"description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
}
]
}
}
}
}
Received response:
Request failed with error:
Save Referral Link
requires authentication
Called by the mobile app after generating a referral link via the AppsFlyer SDK. Saves the link to the user record and logs the call.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/save-referral-link" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"referral_link":"https:\/\/fantasyspin1.onelink.me\/kjUP\/abc123"}'
Example response (200):
{
"message": "Referral link saved successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"referral_link": [
"The referral link field is required."
]
}
}
Received response:
Request failed with error:
Device Info Logs
requires authentication
Use this end point to capture device info logs.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/device-info-logs" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"platform":"officia","os":"nostrum","version":"dolores","brand":"corrupti","model":"impedit"}'
Example response (200):
{
"message": "Log saved successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"platform": [
"The platform field is required."
],
"os": [
"The os field is required."
],
"version": [
"The version field is required."
]
}
}
Received response:
Request failed with error:
Sign Out
requires authentication
Use this end point to sign out.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/sign-out" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Sign out successfull!"
}
Received response:
Request failed with error:
Delete Account
requires authentication
Use this end point to delete account
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/delete-account" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Account deleted successfully!"
}
Example response (422, Unable To Delete Account):
{
"message": "Validations",
"error_box": {
"heading": "Unable To Delete Account",
"message": "We are unable to delete your account because you are currently entered into active cash contests and/or have funds in your account.",
"cta": "Return",
"color": "Blue",
"cta_type": "Return",
}
}
Received response:
Request failed with error:
Update In-App Rating Flag
requires authentication
Use this endpoint to mark that the user has closed the in-app rating popup.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/update/in-app-rating-flag" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "App rating flag updated successfully!"
}
Example response (404):
{
"message": "User not found"
}
Received response:
Request failed with error:
Update User Mode
requires authentication
Use this endpoint to update the user app mode.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/update/user-mode" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"user_mode":"Arcade."}'
Example response (200):
{
"message": "User mode updated successfully!"
}
Example response (404):
{
"message": "User not found"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"user_mode": [
"The user_mode field is required."
],
}
}
Received response:
Request failed with error:
Store Promo Code
requires authentication
Use this endpoint to store promo code after registration
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated/promo-code" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"promo_code":"molestias"}'
Example response (201):
{
"message": "Promo code updated successfully",
"data": {
"user": {
"id": 670,
"email": "uemankita2905202517@yopmail.com",
"username": "uemankita2905202517",
"is_adult": 1,
"phone": "5424349875",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 1,
"email_verified_date_time": "2025-05-29 05:01:01",
"created_at": "2025-05-29T03:31:01.000000Z",
"updated_at": "2026-01-30T06:22:22.000000Z",
"promo_code": "SPINTOWIN",
"bucks": 0,
"credits": -4,
"available_cash": 10,
"referral_code": "e6f657fb-0072-4b4c-8dcc-d23fd9202afc",
"unique_onboarding_id": "fd4eb1a3-f3d2-4ed2-bc09-de3b684d79a3",
"timezone": "Asia\/Kolkata",
"platform": "Android"
}
}
}
Example response (401):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Check User Eligibility of Practice Draft
requires authentication
Use this endpoint to check if user is eligible to see practice draft popup
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/check/user/practice-draft-eligible" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (201):
{
"message": "User eligibility fetched successfully",
"data": {
'is_practice_draft_popup_eligible' => 1,
'fantasy_spin_contest_id' => 23
}
}
Example response (401):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Check Sport-Wise Practice Draft Eligibility
requires authentication
Returns all active games with their icons and color codes, each indicating whether a practice draft contest is currently available for that sport.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/check/sport/practice-draft-eligible" \
-H "Authorization: required Bearer token. Example: Bearer {YOUR_AUTH_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Sport-wise practice draft eligibility fetched successfully",
"data": [
{
"id": 1,
"name": "NFL",
"image": "https:\/\/example.com\/images\/icon-football.png",
"featured_contest_color1": "#0A1931",
"featured_contest_color2": "#1B5E20",
"featured_contest_color3": "#2E7D32",
"featured_contest_btn_color": "#4CAF50",
"is_practice_draft_available": 1,
"fantasy_spin_contest_id": 42
},
{
"id": 2,
"name": "NBA",
"image": "https:\/\/example.com\/images\/icon-basketball.png",
"featured_contest_color1": "#0A1931",
"featured_contest_color2": "#1A237E",
"featured_contest_color3": "#283593",
"featured_contest_btn_color": "#3949AB",
"is_practice_draft_available": 0,
"fantasy_spin_contest_id": null
}
]
}
Example response (401):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Big Wins
Big Wins
requires authentication
Use this end point to get Big Wins.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/big-wins?page=4" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Big Wins Players",
"data": {
"big_win_players": [
{
"date": "January 29, 2024",
"contests": [
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
}
]
},
{
"date": "January 28, 2024",
"contests": [
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
}
]
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"page": [
"The selected page is invalid."
]
}
}
Received response:
Request failed with error:
Big Wins V2
requires authentication
Use this end point to get Big Wins V2(FS + Pick'em).
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/big-wins/v2?page=8" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Big Wins Players",
"data": {
"big_win_players": [
{
"date": "January 29, 2024",
"contests": [
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
}
]
},
{
"date": "January 28, 2024",
"contests": [
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
},
{
"entry": 999,
"win_price": 999,
"name": "â $4,000 Big Game Main Event",
"position": "1st Place Winner",
"player_name": "ColbyConway",
"FantasyPoints": 999.9,
"game_id": 1,
"featured_contest_color1": "0xFF00E138",
"featured_contest_color2": "0xFF00642B",
"big_wins_color1": "0xFF00642B",
"big_wins_color2": "0xFF00642B",
"big_wins_image": "https:\/\/apiqa.bettorfantasy.com\/images\/mlb_big_wins.png"
}
]
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"page": [
"The selected page is invalid."
]
}
}
Received response:
Request failed with error:
Challenges
Today Trivia
requires authentication
Use this end point to get today's trivia
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/today-trivia" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200, Trivia not answered):
{
"message": "Today Trivia",
"data": {
"today_trivia": {
"id": 1,
"type": 101,
"count": 1,
"has_progress_bar": 0,
"title": "Daily trivia",
"description": "The Patriots set a record in Super Bowl LII with most total team yards, how many did they have?\n",
"reward_description": "Reward: 20",
"reward_value": 20,
"currency_type": 20,
"cta_description": null,
"cta_type": 0,
"updated_by": 0,
"updated_at": "2024-07-10T04:00:26.000000Z",
"is_active": 1,
"sequence": 0,
"is_completed": 0,
"progress": 1,
"completed_challenge": null,
"is_trivia": 1,
"trivia": {
"id": 2,
"question": "The Patriots set a record in Super Bowl LII with most total team yards, how many did they have?\n",
"options": [
"613 Yards",
"254 Yards"
],
"is_active": 1,
"is_used": 0,
"created_by": 2,
"updated_by": 1,
"created_at": "2021-08-05T12:24:28.000000Z",
"updated_at": "2024-07-10T04:00:26.000000Z",
"answer": 0,
"is_current": 1,
"live_date": "2024-07-10",
"answer_value": "613 Yards"
},
"captured_trivia": null
}
}
}
Example response (200, Trivia already answered):
{
"message": "Today Trivia",
"data": {
"today_trivia": {
"id": 1,
"type": 101,
"count": 1,
"has_progress_bar": 0,
"title": "Daily trivia",
"description": "The Patriots set a record in Super Bowl LII with most total team yards, how many did they have?\n",
"reward_description": "Reward: 20",
"reward_value": 20,
"currency_type": 20,
"cta_description": null,
"cta_type": 0,
"updated_by": 0,
"updated_at": "2024-07-10T04:00:26.000000Z",
"is_active": 1,
"sequence": 0,
"is_completed": 1,
"progress": 1,
"completed_challenge": {
"id": 33,
"user_id": 3,
"type": 101,
"season": 6,
"week": 22,
"created_at": "2024-07-10T07:13:37.000000Z",
"updated_at": "2024-07-10T07:13:37.000000Z",
"date": "2024-07-10",
"bet_id": null,
"type_name": "Daily trivia",
"check_in_id": null,
"type_description": "The Patriots set a record in Super Bowl LII with most total team yards, how many did they have?\n",
"feedback_id": null,
"capture_trivia_id": 10,
"referral_id": null,
"count": 1,
"reward_description": "Reward: 20",
"reward_value": 20,
"currency_type": 20,
"is_completed": 1,
"fuelup_id": null,
"game_id": 1
},
"is_trivia": 1,
"trivia": {
"id": 2,
"question": "The Patriots set a record in Super Bowl LII with most total team yards, how many did they have?\n",
"options": [
"613 Yards",
"254 Yards"
],
"is_active": 1,
"is_used": 0,
"created_by": 2,
"updated_by": 1,
"created_at": "2021-08-05T12:24:28.000000Z",
"updated_at": "2024-07-10T04:00:26.000000Z",
"answer": 0,
"is_current": 1,
"live_date": "2024-07-10",
"answer_value": "613 Yards"
},
"captured_trivia": {
"id": 10,
"user_id": 3,
"trivia": {
"id": 2,
"answer": 0,
"is_used": 0,
"options": [
"613 Yards",
"254 Yards"
],
"question": "The Patriots set a record in Super Bowl LII with most total team yards, how many did they have?\n",
"is_active": 1,
"live_date": "2024-07-10",
"created_at": "2021-08-05T12:24:28.000000Z",
"created_by": 2,
"is_current": 1,
"updated_at": "2024-07-10T04:00:26.000000Z",
"updated_by": 1,
"answer_value": "613 Yards"
},
"answer_key": 0,
"answer_value": "613 Yards",
"is_correct": 1,
"created_at": "2024-07-10T07:13:34.000000Z",
"updated_at": "2024-07-10T07:13:34.000000Z",
"season": 6,
"week": 22,
"date": "2024-07-10",
"game_id": 1
}
}
}
}
Example response (404):
scneario="No trivia found" {
"message": "No trivia found!"
}
Received response:
Request failed with error:
Configuration
View Image Configuration
requires authentication
Use this end point to view image configuration
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/configurations" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Configuration",
"configurations": [
{
"id": 10,
"type": 100,
"name": "Challenge Completion Image",
"description": "Challenge Completion Image",
"value": "http:\/\/127.0.0.1:8000\/images\/1629706786.jpg"
},
{
"id": 11,
"type": 110,
"name": "Bet Placed Image",
"description": "Bet Placed Image",
"value": "http:\/\/127.0.0.1:8000\/images\/1629706981.jpg"
}
]
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update image configuration
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/configurations/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-F "type=17" \
-F "value=@/tmp/phpXl01pC"
Example response (200):
{
"message": "Configuration updated successfully"
}
Example response (422):
{
"errors": {
"type": [
"The type field is required."
],
"value": [
"The value field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
converting tokens to site credit
Converting Tokens to Site Credit
requires authentication
Use this end point to converting tokens to site credit
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/redemption" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"tokens":3}'
Example response (200):
{
"message": "Tokens to site credit converted successfully!",
"data": {
"fantasy_spin_contests": [
{
"fantasy_spin_contest_id": 29,
"fantasy_spin_blueprint_id": 21,
"name": "NBA 01\/25 Thu",
"closes_at_utc": "2024-01-26 00:00:00",
"spins": 10,
"locks": 6,
"my_entries": 1,
"max_entries": 100,
"currency_type": 20,
"entry": 100,
"prize_pool": 200,
"first_pays": 200
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"tokens": [
"The tokens field is invalid."
]
}
}
Received response:
Request failed with error:
Dashboard
Parameters
requires authentication
Use this end point to get dashboard parameters for Admin portal
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/dashboard" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Dashboard Parameters!",
"data": [
{
"keyword": "Count of Open Bets",
"value": 0
},
{
"keyword": "Open Bets Total Value",
"value": "$0.00"
},
{
"keyword": "Average Bet Value",
"value": "$0.00"
},
{
"keyword": "Open Bets Max Payout",
"value": "$0.00"
}
]
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Deposit Promo
List
requires authentication
Use this end point to get the list of deposit promos
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/deposit-promo?search=ex" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Deposit promo list",
"data": {
"depositPromos": {
"current_page": 1,
"data": [
{
"id": 1,
"heading_text": "deposit match up to $100!",
"highlighted_text": "🎁 100%",
"description_text": "Limited time offer!",
"cta_text": null,
"match_rate": "50.00",
"max_bonus_amount": "100.00",
"reward_type": "bonus_cash",
"eligibility_type": "all_users",
"threshold": null,
"expire_in_days": 30,
"is_active": 0,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-10-14T05:06:53.000000Z",
"updated_at": "2025-10-14T05:10:18.000000Z"
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/deposit-promo?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/deposit-promo?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/deposit-promo?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/deposit-promo",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
}
Received response:
Request failed with error:
Store
requires authentication
Use this end point to store deposit promo
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/deposit-promo/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"heading_text":"deposit match up to $100!.","highlighted_text":"\ud83c\udf81 100% .","description_text":"Limited time offer!","cta_text":"Deposit Now!","match_rate":"50","max_bonus_amount":"100","reward_type":"bonus_cash.","eligibility_type":"all_users.","threshold":20,"is_active":true,"expire_in_days":30}'
Example response (200):
{
"message": "Deposit promo created successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"heading_text": [
"The heading text field is required."
],
"description_text": [
"The description text field is required."
],
"match_rate": [
"The match rate field is required."
],
"max_bonus_amount": [
"The max bonus amount field is required."
],
"reward_type": [
"The reward type field is required."
],
"eligibility_type": [
"The eligibility type field is required."
],
"threshold": [
"The inactive days field is required."
],
"expire_in_days": [
"The expire in days field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
View
requires authentication
Use this end point to view a Deposit Promo
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/deposit-promo/data/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Deposit Promo",
"data": {
"depositPromo": {
"id": 1,
"heading_text": "deposit match up to $100!",
"highlighted_text": "🎁 100%",
"description_text": "Limited time offer!",
"cta_text": null,
"match_rate": "50.00",
"max_bonus_amount": "100.00",
"reward_type": "bonus_cash",
"eligibility_type": "all_users",
"threshold": null,
"is_active": 0,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-10-14T05:06:53.000000Z",
"updated_at": "2025-10-14T05:10:18.000000Z"
}
}
}
Example response (404):
{
"message": "Deposit promo not found!"
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update deposit promo
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/deposit-promo/suscipit/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"heading_text":"deposit match up to $100!.","highlighted_text":"\ud83c\udf81 100% .","description_text":"Limited time offer!","cta_text":"Deposit Now!","match_rate":"50","max_bonus_amount":"100","reward_type":"bonus_cash.","eligibility_type":"all_users.","threshold":20,"is_active":true,"expire_in_days":30}'
Example response (200):
{
"message": "Deposit promo updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"heading_text": [
"The heading text field is required."
],
"description_text": [
"The description text field is required."
],
"match_rate": [
"The match rate field is required."
],
"max_bonus_amount": [
"The max bonus amount field is required."
],
"reward_type": [
"The reward type field is required."
],
"eligibility_type": [
"The eligibility type field is required."
],
"threshold": [
"The inactive days field is required."
],
"expire_in_days": [
"The expire in days field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete a deposit promo
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/deposit-promo/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Deposit promo deleted successfully!",
}
}
Example response (404):
{
"message": "Deposit Promo not found!"
}
Received response:
Request failed with error:
DFS Exclusion
Create
requires authentication
Use this end point to create DFS exclusion.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/dfs-exclusions/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"user_id":10,"dfs_exclusion_type_id":2,"self_exclusion_expiry_date":"2024-01-01","number_of_entries_per_day":5,"buy_in_limit_per_contest":50,"deposit_limit_per_month":100,"warning_buy_in_per_day":30,"threshold_buy_in_per_day":30,"is_exclusion_by_third_party":1,"requestor":"Wife"}'
Example response (201):
{
"message": "DFS exclusion added successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"user_id": [
"The user id field is required."
],
"dfs_exclusion_type_id": [
"The dfs exclusion type id field is required."
],
"is_exclusion_by_third_party": [
"The is exclusion by third party field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the DFS exclusions
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/dfs-exclusions/list?search=Fantasy&page=2&dfs_exclusion_type_id=1&is_exclusion_by_third_party=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "DFS Exclusions!",
"data": {
"dfs_exclusions": {
"current_page": 1,
"data": [
{
"id": 7,
"requestor": null,
"is_exclusion_by_third_party": 0,
"created_at": "2024-06-14T10:41:38.000000Z",
"updated_at": "2024-06-14T10:41:38.000000Z",
"extra_parameter": "70.00",
"user": {
"id": 3,
"username": "tahasethwala"
},
"dfs_exclusion_type": {
"id": 6,
"name": "Timeout"
},
"creator": {
"id": 1,
"username": "admin"
},
"updator": {
"id": 1,
"username": "admin"
}
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/list?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/list?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/list?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/list",
"per_page": 10,
"prev_page_url": null,
"to": 6,
"total": 6
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"dfs_exclusion_type_id": [
"The selected dfs exclusion type id is invalid."
]
}
}
Received response:
Request failed with error:
Users
requires authentication
Use this end point to get the users
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/dfs-exclusions/users?search=taha" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Users!",
"data": {
"users": {
"current_page": 1,
"data": [
{
"id": 61,
"username": "checklist300",
"email": "checklist300@yopmail.com"
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=1",
"from": 1,
"last_page": 5,
"last_page_url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=5",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=3",
"label": "3",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=4",
"label": "4",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=5",
"label": "5",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users?page=2",
"path": "http:\/\/127.0.0.1:8000\/dfs-exclusions\/users",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 41
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"page": [
"The page is invalid."
]
}
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update DFS exclusion.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/dfs-exclusions/2/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"dfs_exclusion_type_id":2,"self_exclusion_expiry_date":"2024-01-01","number_of_entries_per_day":5,"buy_in_limit_per_contest":50,"deposit_limit_per_month":100,"warning_buy_in_per_day":30,"threshold_buy_in_per_day":30,"is_exclusion_by_third_party":1,"requestor":"Wife"}'
Example response (200):
{
"message": "DFS exclusion updated successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"dfs_exclusion_type_id": [
"The dfs exclusion type id field is required."
],
"is_exclusion_by_third_party": [
"The is exclusion by third party field is required."
]
}
}
Example response (404):
{
"message": "DFS exclusion not found!"
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete dfs exclusion.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/dfs-exclusions/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":1}'
Example response (200):
{
"message": "DFS exclusion deleted successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"id": [
"The id field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Endpoints
scan-onboard/webhook
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/scan-onboard/webhook" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
configurations/update-settings
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/configurations/update-settings" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
configurations/list
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/configurations/list" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
configuration/data/{id}
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/configuration/data/veniam" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
bets-v3
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/bets-v3" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
bets-v4
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/bets-v4" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
capture-trivia
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/capture-trivia" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
mark-pga-round-complete/{fantasy_spin_blueprint_id}
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/mark-pga-round-complete/molestiae" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
pickem/entry-players/{pickem_contest_entry_id}
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/pickem/entry-players/laborum" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
pickem-entries/void/{bet_id}
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/pickem-entries/void/doloremque" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
deposit-promo/export-user-list/{id}
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/deposit-promo/export-user-list/omnis" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
free-play-promo
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/free-play-promo" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
free-play-promo/store
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/free-play-promo/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
free-play-promo/data/{id}
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/free-play-promo/data/officia" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
free-play-promo/{id}/update
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/free-play-promo/eos/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
free-play-promo/delete
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/free-play-promo/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
free-play-promo/export-user-list/{id}
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/free-play-promo/export-user-list/voluptas" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
open-contest-list
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/open-contest-list" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
open-contest/update
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/open-contest/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
promo-sequence
requires authentication
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/promo-sequence" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
promo-sequence/update
requires authentication
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/promo-sequence/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Received response:
Request failed with error:
Fantasy Spin Master
Store
requires authentication
Use this end point to store fantasy spin master
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"name":"Pittsburgh Steelers vs New England Patriots","slate":"Pittsburgh Steelers vs New England Patriots","currency_type":30,"buy_in":2,"payout":5,"number_of_entrants":100,"number_of_entries_per_user":10,"is_active":1,"is_instant_win":1,"is_regenerate":1,"is_beginner_contest":1}'
Example response (200):
{
"message": "Fantasy spin master created successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"name": [
"The name field is required."
],
"slate": [
"The slate field is required."
],
"currency_type": [
"The currency type field is required."
],
"buy_in": [
"The buy in field is required."
],
"payout": [
"The payout field is required."
],
"number_of_entrants": [
"The number of entrants field is required."
],
"number_of_entries_per_user": [
"The number of entries per user field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of Fantasy spin master blueprint's
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints?per_page=15&search=NFL+Spin&sort_field=id&sort_method=desc&page=2&is_active=1&game_id=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Master Blueprints List",
"data": {
"fantasy_spin_blueprints": {
"current_page": 1,
"data": [
{
"id": 32,
"name": "Pittsburgh Steelers vs New England Patriots",
"slate": "Pittsburgh Steelers vs New England Patriots",
"currency_type": 20,
"game_id": 1,
"buy_in": 25,
"payout": 100,
"number_of_entrants": 100,
"number_of_entries_per_user": 10,
"is_instant_win": 1,
"instant_wins_per_position": 1,
"is_active": 1,
"created_at": "2023-12-07T13:15:23.000000Z",
"updated_at": "2023-12-07T13:15:23.000000Z",
"created_by": 1,
"updated_by": 0,
"game": {
"id": 1,
"name": "NFL"
}
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"path": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 17
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"per_page": [
"The per page must be a number."
],
"sort_field": [
"The selected sort field is invalid."
],
"sort_method": [
"The selected sort method is invalid."
],
"is_active": [
"The selected is active is invalid."
]
}
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update fantasy spin master
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/ut/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"name":"Pittsburgh Steelers vs New England Patriots","slate":"Pittsburgh Steelers vs New England Patriots","currency_type":30,"buy_in":2,"payout":5,"number_of_entrants":100,"number_of_entries_per_user":10,"is_active":1,"is_instant_win":1,"is_regenerate":1,"is_beginner_contest":1}'
Example response (200):
{
"message": "Fantasy spin master updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"name": [
"The name field is required."
],
"slate": [
"The slate field is required."
],
"currency_type": [
"The currency type field is required."
],
"buy_in": [
"The buy in field is required."
],
"payout": [
"The payout field is required."
],
"number_of_entrants": [
"The number of entrants field is required."
],
"number_of_entries_per_user": [
"The number of entries per user field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete a fantasy spin master
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy spin master deleted successfully!",
}
}
Example response (404):
{
"message": "Fantasy spin Master not found!"
}
Received response:
Request failed with error:
Get Master Blueprints
requires authentication
Use this end point to get master blueprints by game_id
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/get/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Master Blueprints",
"data": {
"fantasy_spin_master_blueprint": {
"id": 1,
"game_id": 1,
"name": "Pittsburgh Steelers vs New England Patriots",
{
"id": 2,
"game_id": 1,
"name": "Pittsburgh Steelers vs New England Patriots",
},
}
}
Example response (404):
{
"message": "Fantasy spin Master not found!"
}
Received response:
Request failed with error:
View
requires authentication
Use this end point to view a fantasy spin master
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/data/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Master",
"data": {
"fantasy_spin_master_blueprint": {
"id": 1,
"game_id": 1,
"name": "Pittsburgh Steelers vs New England Patriots",
"slate": "Pittsburgh Steelers vs New England Patriots",
"currency_type": 20,
"buy_in": 25,
"payout": 100,
"number_of_entrants": 100,
"number_of_entries_per_user": 10,
"is_active": 1,
"created_at": "2023-12-06T13:32:57.000000Z",
"updated_at": "2023-12-06T13:32:57.000000Z",
"created_by": 1,
"updated_by": 0,
"game": {
"id": 1,
"name": "NFL"
}
},
}
}
Example response (404):
{
"message": "Fantasy spin Master not found!"
}
Received response:
Request failed with error:
FantasySpin Blueprint Rule
requires authentication
Use this end point to get data of a fantasy spin rule by game id and count
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-blueprint-rule" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Blueprint Rule",
"data": {
"fantasy_spin_blueprint_rule": {
"id": 1,
"game_id": 1,
"min_game_count": 1,
"max_game_count": 4,
"number_of_spin": 3,
"number_of_locks": 4,
"positions": "[{"position":"QB","title":"Quarterback","quantity":1},{"position":"FLEX","title":"Flex","quantity":6,"min_projection":1.9},{"position":"K","title":"Kicker","quantity":1}]",
"created_at": "2023-12-06T13:32:57.000000Z",
"updated_at": "2023-12-06T13:32:57.000000Z",
},
}
}
Example response (404):
{
"message": "Fantasy spin blueprint rule not found!"
}
Received response:
Request failed with error:
Fantasy Spin
List
requires authentication
Use this end point to get the list of Fantasy spin blueprint's
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-blueprints?per_page=15&search=NFL+Spin&sort_field=id&sort_method=desc&page=2&is_active=1&is_settled=1&is_featured_contest=1&game_id=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Blueprints List",
"data": {
"fantasy_spin_blueprints": {
"current_page": 1,
"data": [
{
"id": 32,
"name": "Pittsburgh Steelers vs New England Patriots",
"slate": "Pittsburgh Steelers vs New England Patriots",
"currency_type": 20,
"game_id": 1,
"buy_in": 25,
"payout": 100,
"opens_at": "2023-12-06 00:00:00",
"closes_at": "2023-12-08 00:00:00",
"size_of_player_pool": 200,
"number_of_entrants": 100,
"number_of_entries_per_user": 10,
"number_of_spins": 6,
"number_of_locks": 6,
"instant_win_currency": 20,
"instant_win_pay_out": 25,
"positions": [
{
"position": "QB",
"quantity": 1
},
{
"position": "RB",
"quantity": 1
},
{
"position": "WR",
"quantity": 1
},
{
"position": "TE",
"quantity": 1
},
{
"position": "K",
"quantity": 1
},
{
"position": "FLEX",
"quantity": 1
},
{
"position": "SFLX",
"quantity": 1
}
],
"game_dates": [
"2023-12-07"
],
"is_active": 1,
"created_at": "2023-12-07T13:15:23.000000Z",
"updated_at": "2023-12-07T13:15:23.000000Z",
"created_by": 1,
"updated_by": 0,
"total_positions": 7,
"game": {
"id": 1,
"name": "NFL"
}
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_settled=&game_id=&page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_settled=&game_id=&page=2",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_settled=&game_id=&page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_settled=&game_id=&page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_settled=&game_id=&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_settled=&game_id=&page=2",
"path": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 17
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"per_page": [
"The per page must be a number."
],
"sort_field": [
"The selected sort field is invalid."
],
"sort_method": [
"The selected sort method is invalid."
],
"is_active": [
"The selected is active is invalid."
]
}
}
Received response:
Request failed with error:
Create
requires authentication
Use this end point to create a fantasy spin
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"name":"Pittsburgh Steelers vs New England Patriots","slate":"Pittsburgh Steelers vs New England Patriots","currency_type":30,"buy_in":2,"payout":5,"opens_at":"2022-11-30 10:00:00","closes_at":"2022-11-30 11:00:00","number_of_entrants":100,"number_of_entries_per_user":10,"number_of_locks":6,"number_of_spins":4,"instant_win_currency":30,"instant_win_pay_out":5,"is_active":1,"is_instant_win":1,"is_regenerate":1,"is_beginner_contest":1,"game_dates":"ipsa","positions":"fuga","games":"hic"}'
Example response (200):
{
"message": "Fantasy spin created successfully"
}
Example response (422):
{
"message": "Please enter required information",
"game_id": [
"Players insufficient for position QB"
]
}
Received response:
Request failed with error:
Schedules
requires authentication
Use this end point to fetch all the games for the given sports and game dates
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/schedules" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"game_dates":"error"}'
Example response (200):
{
"message": "Schedules",
"data": {
"schedules": [
{
"schedule_id": 20948,
"schedule_date_time": "11\/28 Tue @ 07:00 PM",
"schedule_name": "Devils vs Islanders",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20950,
"schedule_date_time": "11\/28 Tue @ 07:00 PM",
"schedule_name": "Maple Leafs vs Panthers",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20949,
"schedule_date_time": "11\/28 Tue @ 07:30 PM",
"schedule_name": "Flyers vs Hurricanes",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20951,
"schedule_date_time": "11\/28 Tue @ 08:00 PM",
"schedule_name": "Predators vs Penguins",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20952,
"schedule_date_time": "11\/28 Tue @ 08:00 PM",
"schedule_name": "Jets vs Stars",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20953,
"schedule_date_time": "11\/28 Tue @ 08:00 PM",
"schedule_name": "Wild vs Blues",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20954,
"schedule_date_time": "11\/28 Tue @ 08:30 PM",
"schedule_name": "Blackhawks vs Kraken",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20955,
"schedule_date_time": "11\/28 Tue @ 09:00 PM",
"schedule_name": "Oilers vs Golden Knights",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20956,
"schedule_date_time": "11\/28 Tue @ 09:00 PM",
"schedule_name": "Coyotes vs Lightning",
"schedule_status": "Scheduled"
},
{
"schedule_id": 20957,
"schedule_date_time": "11\/28 Tue @ 10:00 PM",
"schedule_name": "Canucks vs Ducks",
"schedule_status": "Scheduled"
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"game_dates": [
"The game dates field is required."
]
}
}
Received response:
Request failed with error:
Players
requires authentication
Use this end point to fetch all the players for the given sports and sports data game ID
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/players" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"sportsdata_game_ids":"saepe"}'
Example response (200):
{
"message": "Players",
"data": {
"players": [
{
"sportsdata_player_id": 30000204,
"name": "Kyle Palmieri",
"headshot_high_resolution": "https:\/\/res.cloudinary.com\/dan8wilpz\/image\/upload\/c_fill,h_100,w_100\/headshots\/nhl\/kyle-palmieri-30000204-4523310f.png",
"position": "C",
"projection": 2.32,
"team": "Islanders",
"opponent": "Devils"
},
{
"sportsdata_player_id": 30000276,
"name": "Anders Lee",
"headshot_high_resolution": "https:\/\/res.cloudinary.com\/dan8wilpz\/image\/upload\/c_fill,h_100,w_100\/headshots\/nhl\/anders-lee-30000276-dc00eb1b.png",
"position": "C",
"projection": 2.74,
"team": "Islanders",
"opponent": "Devils"
},
{
"sportsdata_player_id": 30000285,
"name": "Cal Clutterbuck",
"headshot_high_resolution": "https:\/\/res.cloudinary.com\/dan8wilpz\/image\/upload\/c_fill,h_100,w_100\/headshots\/nhl\/cal-clutterbuck-30000285-8e880629.png",
"position": "W",
"projection": 0.88,
"team": "Islanders",
"opponent": "Devils"
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"sportsdata_game_ids": [
"The sportsdata game ids field is required."
]
}
}
Received response:
Request failed with error:
View
requires authentication
Use this end point to view a fantasy spin
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin",
"data": {
"only_allow_edit_of_status": 1,
"fantasy_spin_blueprint": {
"id": 1,
"name": "Pittsburgh Steelers vs New England Patriots",
"slate": "Pittsburgh Steelers vs New England Patriots",
"currency_type": 20,
"game_id": 1,
"buy_in": 25,
"payout": 100,
"opens_at": "2023-12-06 00:00:00",
"closes_at": "2023-12-08 00:00:00",
"size_of_player_pool": null,
"number_of_entrants": 100,
"number_of_entries_per_user": 10,
"number_of_spins": 6,
"number_of_locks": 6,
"instant_win_currency": 20,
"instant_win_pay_out": 25,
"positions": [
{
"position": "QB",
"quantity": 1
},
{
"position": "RB",
"quantity": 1
},
{
"position": "WR",
"quantity": 1
},
{
"position": "TE",
"quantity": 1
},
{
"position": "K",
"quantity": 1
},
{
"position": "FLEX",
"quantity": 1
},
{
"position": "SFLX",
"quantity": 1
}
],
"game_dates": [
"2023-12-07"
],
"is_active": 1,
"created_at": "2023-12-06T13:32:57.000000Z",
"updated_at": "2023-12-06T13:32:57.000000Z",
"created_by": 1,
"updated_by": 0,
"total_positions": 7,
"game": {
"id": 1,
"name": "NFL"
}
},
"schedules": [
{
"schedule_id": 18541,
"schedule_date_time": "12\/07 Thu @ 08:15 PM",
"schedule_name": "Pittsburgh Steelers vs New England Patriots",
"schedule_status": "Scheduled",
"is_selected": 1
}
],
"players": [
{
"sportsdata_player_id": 18811,
"name": "Mitch Trubisky",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/18811.png",
"sportsdata_game_id": 18541,
"team": "Pittsburgh Steelers",
"opponent": "New England Patriots",
"is_selected": 1,
"projection": 11.71,
"core_position": "QB",
"fantasy_spin_position": "QB",
"fantasy_spin_position_rank": 1
},
{
"sportsdata_player_id": 18811,
"name": "Mitch Trubisky",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/18811.png",
"sportsdata_game_id": 18541,
"team": "Pittsburgh Steelers",
"opponent": "New England Patriots",
"is_selected": 1,
"projection": 11.71,
"core_position": "QB",
"fantasy_spin_position": "QB",
"fantasy_spin_position_rank": 2
}
]
}
}
Example response (404):
{
"message": "Fantasy spin not found!"
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update fantasy spin
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/update/officia" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"name":"Pittsburgh Steelers vs New England Patriots","slate":"Pittsburgh Steelers vs New England Patriots","currency_type":30,"buy_in":2,"payout":5,"opens_at":"2022-11-30 10:00:00","closes_at":"2022-11-30 11:00:00","number_of_entrants":100,"number_of_entries_per_user":10,"number_of_locks":6,"number_of_spins":4,"instant_win_currency":30,"instant_win_pay_out":5,"is_active":1,"is_instant_win":1,"is_regenerate":1,"is_beginner_contest":1,"game_dates":"ut","positions":"recusandae","games":"voluptates"}'
Example response (200):
{
"message": "Fantasy spin updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"name": [
"The name field is required."
],
"slate": [
"The slate field is required."
],
"currency_type": [
"The currency type field is required."
],
"buy_in": [
"The buy in field is required."
],
"payout": [
"The payout field is required."
],
"opens_at": [
"The opens at field is required."
],
"closes_at": [
"The closes at field is required."
],
"number_of_entrants": [
"The number of entrants field is required."
],
"number_of_entries_per_user": [
"The number of entries per user field is required."
],
"number_of_locks": [
"The number of locks field is required."
],
"number_of_spins": [
"The number of spins field is required."
],
"instant_win_currency": [
"The instant win currency field is required."
],
"instant_win_pay_out": [
"The instant win pay out field is required."
],
"positions": [
"The positions field is required."
],
"game_dates": [
"The game dates field is required."
],
"games": [
"The games field is required."
],
"players": [
"The players field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Open Constests (Admin)
requires authentication
Use this end point to get open fantasy spin contests (Admin)
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/14/open-contests?sort_field=inventore&sort_method=et" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy spin contests",
"data": {
"fantasy_spin_contests": {
"current_page": 1,
"data": [
{
"name": "Cleveland Browns vs Chicago Bears",
"number_of_locks": 7,
"number_of_spins": 6,
"game_name": "NFL",
"fantasy_spin_contest_id": 2,
"start_date_time": "December 13, 2023 at 06:26 AM",
"end_date_time": "December 13, 2023 at 06:26 AM",
"total_entries": "10\/5",
"total_buy_in": 0,
"currency_type": "coins"
},
{
"name": "Cleveland Browns vs Chicago Bears",
"number_of_locks": 7,
"number_of_spins": 6,
"game_name": "NFL",
"fantasy_spin_contest_id": 1,
"start_date_time": "December 13, 2023 at 12:22 PM",
"end_date_time": "December 13, 2023 at 06:26 AM",
"total_entries": "7\/5",
"total_buy_in": 0,
"currency_type": "coins"
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1?sort_field=total_entries&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1?sort_field=total_entries&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1?sort_field=total_entries&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"sort_field": [
"The selected sort field is invalid."
]
}
}
Received response:
Request failed with error:
Settled Constests (Admin)
requires authentication
Use this end point to get settled fantasy spin contests (Admin)
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/20/settled-contests?sort_field=officiis&sort_method=consequatur" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy spin contests",
"data": {
"fantasy_spin_contests": {
"current_page": 1,
"data": [
{
"name": "Cleveland Browns vs Chicago Bears",
"number_of_locks": 7,
"number_of_spins": 6,
"game_name": "NFL",
"fantasy_spin_contest_id": 2,
"start_date_time": "December 13, 2023 at 06:26 AM",
"end_date_time": "December 13, 2023 at 06:26 AM",
"total_entries": "10\/5",
"total_buy_in": 0,
"currency_type": "coins"
},
{
"name": "Cleveland Browns vs Chicago Bears",
"number_of_locks": 7,
"number_of_spins": 6,
"game_name": "NFL",
"fantasy_spin_contest_id": 1,
"start_date_time": "December 13, 2023 at 12:22 PM",
"end_date_time": "December 13, 2023 at 06:26 AM",
"total_entries": "7\/5",
"total_buy_in": 0,
"currency_type": "coins"
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1?sort_field=total_entries&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1?sort_field=total_entries&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1?sort_field=total_entries&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/fantasy-spin-blueprints\/contests\/1",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"sort_field": [
"The selected sort field is invalid."
]
}
}
Received response:
Request failed with error:
Constest Players (Admin)
requires authentication
Use this end point to get fantasy spin contest players (Admin)
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-blueprints/6/contests/4/players" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Contest Entry Players",
"data": {
"user_wise_fantasy_spins": [
{
"fantasy_spin_contest_entry_id": 1,
"is_completed": 1,
"user_id": 1,
"username": "admin",
"projection_score": 71.22,
"result_score": null,
"bet_id": 43,
"bet_wager": 0,
"bet_currency_type": 20,
"bet_win": 100,
"bet_status": 10,
"bet_result": 10,
"positions": [
{
"fantasy_spin_contest_entry_player_id": 1,
"fantasy_spin_position": "QB",
"player": {
"sportsdata_player_id": 23230,
"name": "Dorian Thompson-Robinson",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/23230.png",
"projection": 1.73,
"result": 0,
"is_locked": 1,
"locked_at": "06:21 AM",
"lock_type": "Manual"
}
},
{
"fantasy_spin_contest_entry_player_id": 2,
"fantasy_spin_position": "RB",
"player": {
"sportsdata_player_id": 18944,
"name": "Kareem Hunt",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/18944.png",
"projection": 7.06,
"result": 0,
"is_locked": 1,
"locked_at": "06:21 AM",
"lock_type": "Lineup"
}
},
{
"fantasy_spin_contest_entry_player_id": 3,
"fantasy_spin_position": "WR",
"player": {
"sportsdata_player_id": 24348,
"name": "Cedric Tillman",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/24348.png",
"projection": 4.7,
"result": 0,
"is_locked": 1,
"locked_at": "06:21 AM",
"lock_type": "Lineup"
}
},
{
"fantasy_spin_contest_entry_player_id": 4,
"fantasy_spin_position": "TE",
"player": {
"sportsdata_player_id": 19491,
"name": "Robert Tonyan",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/19491.png",
"projection": 2.46,
"result": 0,
"is_locked": 1,
"locked_at": "06:21 AM",
"lock_type": "Lineup"
}
},
{
"fantasy_spin_contest_entry_player_id": 5,
"fantasy_spin_position": "D\/K",
"player": {
"sportsdata_player_id": 16301,
"name": "Cairo Santos",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/16301.png",
"projection": 6.9,
"result": 0,
"is_locked": 1,
"locked_at": "06:21 AM",
"lock_type": "Lineup"
}
},
{
"fantasy_spin_contest_entry_player_id": 6,
"fantasy_spin_position": "FLEX",
"player": {
"sportsdata_player_id": 14865,
"name": "Marquise Goodwin",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/14865.png",
"projection": 1.67,
"result": 0,
"is_locked": 1,
"locked_at": "06:21 AM",
"lock_type": "Lineup"
}
},
{
"fantasy_spin_contest_entry_player_id": 7,
"fantasy_spin_position": "SFLX",
"player": {
"sportsdata_player_id": 23218,
"name": "Pierre Strong Jr.",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/23218.png",
"projection": 1.52,
"result": 0,
"is_locked": 1,
"locked_at": "06:21 AM",
"lock_type": "Lineup"
}
}
]
}
]
}
}
Received response:
Request failed with error:
Get All Open Contest (Admin)
requires authentication
Use this end point to get all open contest (Admin)
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/featured-contest" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Contest Entry Players",
"data": {
"fantasy_spin_featured_contests" : [
{
"game_id":1,
"id":2,
"name": "NFL SUNDAY 1To1",
"bold_text_of_contest": "SUNDAY",
}
],
"fantasy_spin_blueprints" : [
{
"game_id":1,
"id":2,
"name": "NFL SUNDAY 1To1",
"bold_text_of_contest": "SUNDAY",
}
]
}
}
Received response:
Request failed with error:
Lobby
requires authentication
Use this end point to get lobby list for fantasy spin contest
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-contests/lobby?game_id=18" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Lobby fantasy spin contests.",
"data": {
"fantasy_spin_contests": [
{
"fantasy_spin_contest_id": 29,
"fantasy_spin_blueprint_id": 21,
"name": "NBA 01\/25 Thu",
"closes_at_utc": "2024-01-26 00:00:00",
"spins": 10,
"locks": 6,
"my_entries": 1,
"current_entries": 1,
"max_entries": 100,
"currency_type": 20,
"entry": 100,
"prize_pool": 200,
"first_pays": 200
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The selected game id is invalid."
]
}
}
Received response:
Request failed with error:
View Fantasy Spin Contest (v2)
requires authentication
Use this end point to view a fantasy spin contest
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/v2/fantasy-spin-contest-details/5" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy spin contest details",
"data": {
"fantasy_spin_contest": {
"fantasy_spin_contest_id": 55,
"start_date_time": "2024-02-22 00:36:00",
"fantasy_spin_blueprint_id": 43,
"name": "NHL 02\/22 Thu",
"slate": "02\/22 Thu",
"currency_type": 20,
"buy_in": 100,
"payout": 10000,
"number_of_entrants": 1000,
"number_of_spins": 10,
"number_of_locks": 6,
"positions": [
{
"title": "Wingers - Includes RW + LW",
"position": "W",
"quantity": 3
},
{
"title": "Center",
"position": "C",
"quantity": 3
},
{
"title": "Defenders",
"position": "D",
"quantity": 2
}
],
"total_positions": 8,
"size_of_player_pool": 445,
"instant_win_currency": 20,
"instant_win_pay_out": 10,
"is_instant_win": 0,
"current_entrants": 0,
"instant_win_players": 4,
"game_id": 4,
"game_name": "NHL",
"game_image": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/icon-icehockey.png"
},
"payout_structure": [
{
"rank": "1st",
"payout": 2300
},
{
"rank": "2nd",
"payout": 1350
}
],
"players": [
{
"fantasy_spin_position": "G",
"total_players": 22,
"probability": 4.5,
"players": [
{
"fantasy_spin_position": "G",
"fantasy_spin_position_rank": 1,
"name": "Andrei Vasilevskiy",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/TB-Right.png"
},
{
"fantasy_spin_position": "G",
"fantasy_spin_position_rank": 2,
"name": "Tristan Jarry",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/PIT-Right.png"
}
]
},
{
"fantasy_spin_position": "W",
"total_players": 129,
"probability": 0.8,
"players": [
{
"fantasy_spin_position": "W",
"fantasy_spin_position_rank": 1,
"name": "David Pastrnak",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/BOS-Right.png"
},
{
"fantasy_spin_position": "W",
"fantasy_spin_position_rank": 2,
"name": "Mikko Rantanen",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/COL-Right.png"
}
]
},
{
"fantasy_spin_position": "C",
"total_players": 117,
"probability": 0.9,
"players": [
{
"fantasy_spin_position": "C",
"fantasy_spin_position_rank": 1,
"name": "Nathan MacKinnon",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/COL-Right.png"
},
{
"fantasy_spin_position": "C",
"fantasy_spin_position_rank": 2,
"name": "Auston Matthews",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/TOR-Right.png"
}
]
},
{
"fantasy_spin_position": "D",
"total_players": 177,
"probability": 0.6,
"players": [
{
"fantasy_spin_position": "D",
"fantasy_spin_position_rank": 1,
"name": "Cale Makar",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/COL-Right.png"
},
{
"fantasy_spin_position": "D",
"fantasy_spin_position_rank": 2,
"name": "Roman Josi",
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/NAS-Right.png"
}
]
}
],
"scoring": [
{
"prop": "Goal",
"score": 3
},
{
"prop": "Assist",
"score": 2
},
{
"prop": "Shot On Goal",
"score": 0.5
},
{
"prop": "Plus\/Minus",
"score": 1
},
{
"prop": "Block",
"score": 0.5
},
{
"prop": "Power Play Goal\/Assist",
"score": 0.5
},
{
"prop": "Short-Handed Goal\/Assist",
"score": 0.5
},
{
"prop": "Shootout Goal",
"score": 0.2
},
{
"prop": "Win",
"score": 3
},
{
"prop": "Goal Against",
"score": -1
},
{
"prop": "Save",
"score": 0.2
},
{
"prop": "Shootout",
"score": 2
}
],
"games": [
{
"schedule_id": 21519,
"away_sportsdata_team_id": 28,
"home_sportsdata_team_id": 36,
"schedule_date_time": "10:00 PM",
"schedule_date_time_est": "2024-02-22 22:00:00",
"schedule_date_time_utc": "2024-02-23 03:00:00",
"schedule_name": "VAN @ SEA",
"away_team_image": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/VAN-Right.png",
"home_team_image": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/SEA-Left.png"
},
{
"schedule_id": 21520,
"away_sportsdata_team_id": 21,
"home_sportsdata_team_id": 26,
"schedule_date_time": "10:30 PM",
"schedule_date_time_est": "2024-02-22 22:30:00",
"schedule_date_time_utc": "2024-02-23 03:30:00",
"schedule_name": "NAS @ LA",
"away_team_image": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/NAS-Right.png",
"home_team_image": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nhl\/LA-Left.png"
}
]
}
}
Example response (200):
{
"message": "Fantasy spin contest not found"
}
Received response:
Request failed with error:
Get Fantasy Spin Contest Players
requires authentication
Use this endpoint to view players of a specific position in a fantasy spin contest.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-contest-players/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"position":"deserunt"}'
Example response (200):
{
"message": "Fantasy spin contest players",
"data": {
"fantasy_spin_position": "WR",
"total_players": 15,
"probability": 6.7,
"players": [
{
"fantasy_spin_position": "WR",
"fantasy_spin_position_rank": 1,
"name": "Davante Adams",
"headshot_high_resolution": "http:\/\/example.com\/images\/nfl\/WR1.png"
},
{
"fantasy_spin_position": "WR",
"fantasy_spin_position_rank": 2,
"name": "DeAndre Hopkins",
"headshot_high_resolution": "http:\/\/example.com\/images\/nfl\/WR2.png"
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"position": [
"The position field is required."
]
}
}
Example response (200):
{
"message": "Fantasy spin contest players not found"
}
Received response:
Request failed with error:
Confirm entry
requires authentication
Use this end point to confirm entry in fantasy spin contest
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/fantasy-spin-contests/confirm-entry" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fantasy_spin_contest_id":1,"is_excessive_contest_warning_confirmed":1}'
Example response (200):
{
"message": "Fantasy spin entry confirmed",
"data": {
"fantasy_spin_teams": [
{
"name": "New England Patriots",
"logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/b\/b9\/New_England_Patriots_logo.svg",
"primary_color": "002244",
"secondary_color": "C60C30"
},
{
"name": "Pittsburgh Steelers",
"logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/commons\/d\/de\/Pittsburgh_Steelers_logo.svg",
"primary_color": "000000",
"secondary_color": "FFB612"
}
],
"fantasy_spin_contest_entry": {
"fantasy_spin_contest_entry_id": 23,
"fantasy_spin_contest_id": 1,
"game_id": 1,
"fantasy_spin_blueprint_id": 1,
"number_of_locks": 7,
"number_of_spins": 6,
"locks_available": 7,
"spins_available": 6,
"ratings": null,
"projection_score": null
},
"fantasy_spin_contest_entry_players": [
{
"fantasy_spin_contest_entry_player_id": 148,
"fantasy_spin_position": "QB",
"fantasy_spin_position_rank": null,
"sportsdata_player_id": null,
"name": null,
"short_name": null,
"headshot_high_resolution": null,
"team": null,
"team_logo_url": null,
"team_primary_color": null,
"team_secondary_color": null,
"opponent_key": null,
"projection": null,
"is_locked": 0
},
{
"fantasy_spin_contest_entry_player_id": 153,
"fantasy_spin_position": "FLEX",
"fantasy_spin_position_rank": null,
"sportsdata_player_id": null,
"name": null,
"short_name": null,
"headshot_high_resolution": null,
"team": null,
"team_logo_url": null,
"team_primary_color": null,
"team_secondary_color": null,
"opponent_key": null,
"projection": null,
"is_locked": 0
},
{
"fantasy_spin_contest_entry_player_id": 154,
"fantasy_spin_position": "SFLX",
"fantasy_spin_position_rank": null,
"sportsdata_player_id": null,
"name": null,
"short_name": null,
"headshot_high_resolution": null,
"team": null,
"team_logo_url": null,
"team_primary_color": null,
"team_secondary_color": null,
"opponent_key": null,
"projection": null,
"is_locked": 0
}
]
}
}
Example response (422, Deposit Required):
{
"message": "Validations",
"error_box": {
"heading": "Deposit Required",
"message": "You need to add funds to your account to enter this draft.",
"cta": "Add Funds",
"color": "Green",
"cta_type": "Wallet",
"fantasy_spin_contest_id": null
}
}
Example response (422, Not Enough coins):
{
"message": "Validations",
"error_box": {
"heading": "Not Enough coins",
"message": "You need more coins to enter this FantasySpin contest. Completing challenges are a great way to earn coins quickly!",
"cta": "Okay",
"color": "Green",
"cta_type": "Okay",
"fantasy_spin_contest_id": null
}
}
Example response (422, Reached Max Entries):
{
"message": "Validations",
"error_box": {
"heading": "Reached Max Entries",
"message": "You have reached the max number of entries for this contest.",
"cta": "Okay",
"color": "Blue",
"cta_type": "Okay",
"fantasy_spin_contest_id": null
}
}
Example response (400, Age Restrictions Apply):
{
"message": "Validations",
"error_box": {
"heading": "Age Restrictions Apply",
"message": "You must be 21 or older to enter cash contests in Massachusetts",
"cta": "Return",
"color": "Blue",
"cta_type": "Lobby"
}
}
Example response (400, Self Exclusion Applies):
{
"message": "Validations",
"error_box": {
"heading": "Self Exclusion Applies",
"message": "You are unable to take this action because of self exclusion restrictions placed on this account.",
"cta": "Return",
"color": "Blue",
"cta_type": "Lobby"
}
}
Example response (400, Timeout Applies):
{
"message": "Validations",
"error_box": {
"heading": "Timeout Applies",
"message": "You are unable to take this action because of timeout restrictions placed on your account.",
"cta": "Return",
"color": "Blue",
"cta_type": "Lobby"
}
}
Example response (202, Confirmation):
{
"message": "Confirmation",
"error_box": {
"heading": "Heads Up",
"message": "You have entered $20 into cash.",
"cta": "Continue",
"color": "Blue",
"cta_type": "Continue"
}
}
Received response:
Request failed with error:
Spin (v2)
requires authentication
Use this end point to spin in fantasy spin contest
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/fantasy-spin-contests/spin" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fantasy_spin_contest_entry_id":1}'
Example response (200):
{
"message": "Fantasy spin successfull!",
"data": {
"fantasy_spin_contest_entry": {
"fantasy_spin_contest_entry_id": 3,
"fantasy_spin_contest_id": 1,
"game_id": 1,
"fantasy_spin_blueprint_id": 1,
"number_of_locks": 7,
"number_of_spins": 6,
"locks_available": 2,
"spins_available": 0,
"ratings": null,
"projection_score": 106.35
},
"fantasy_spin_contest_entry_players": [
{
"fantasy_spin_contest_entry_player_id": 8,
"fantasy_spin_position": "QB",
"fantasy_spin_position_rank": 1,
"sportsdata_player_id": 22492,
"name": "Justin Fields",
"short_name": "J. Fields",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/22492.png",
"team": "Chicago Bears",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/1\/15\/Chicago_Bears_logo_primary.svg",
"team_primary_color": "0B162A",
"team_secondary_color": "E64100",
"opponent_key": "CLE",
"projection": 18.85,
"is_locked": 1
},
{
"fantasy_spin_contest_entry_player_id": 14,
"fantasy_spin_position": "SFLX",
"fantasy_spin_position_rank": 8,
"sportsdata_player_id": 18876,
"name": "David Njoku",
"short_name": "D. Njoku",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/18876.png",
"team": "Cleveland Browns",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/d\/d9\/Cleveland_Browns_logo.svg",
"team_primary_color": "311D00",
"team_secondary_color": "FF3300",
"opponent_key": "CHI",
"projection": 9.37,
"is_locked": 1
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"fantasy_spin_contest_entry_id": [
"You have no more spins for this contest."
]
}
}
Received response:
Request failed with error:
Lock Player (v2)
requires authentication
Use this end point to lock a player in fantasy spin contest
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/fantasy-spin-contests/lock-player" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fantasy_spin_contest_entry_id":1,"fantasy_spin_contest_entry_player_id":1,"closes_at":"2024-08-30 18:40:00","number_of_locks":6,"locks_available":5,"sportsdata_player_id":6232,"fantasy_spin_position":"P"}'
Example response (200):
{
"message": "Player locked successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"fantasy_spin_contest_entry_player_id": [
"Locks for this fantasy spin are exhausted"
]
}
}
Received response:
Request failed with error:
Un-Lock Player (v2)
requires authentication
Use this end point to un-lock a player in fantasy spin contest
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/fantasy-spin-contests/unlock-player" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fantasy_spin_contest_entry_id":1,"fantasy_spin_contest_entry_player_id":1,"closes_at":"2024-08-30 18:40:00","number_of_locks":6,"locks_available":5,"sportsdata_player_id":6232,"fantasy_spin_position":"P"}'
Example response (200):
{
"message": "Player un-locked successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"fantasy_spin_contest_entry_player_id": [
"Locks for this fantasy spin are exhausted"
]
}
}
Received response:
Request failed with error:
Lock Lineup (v2)
requires authentication
Use this end point to lock a lineup in fantasy spin contest
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/fantasy-spin-contests/lock-lineup" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fantasy_spin_contest_entry_id":1,"closes_at":"2024-08-30 18:40:00"}'
Example response (200):
{
"message": "Lineup locked successfully!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"fantasy_spin_contest_entry_id": [
"Lineup is already locked."
]
}
}
Received response:
Request failed with error:
Show Entry Details
requires authentication
Use this end point to show fantasy spin entry details (Current state for an entry)
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-contests/show-entry/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Contest Entry Details!",
"data": {
"fantasy_spin_teams": [
{
"name": "New England Patriots",
"logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/b\/b9\/New_England_Patriots_logo.svg",
"primary_color": "002244",
"secondary_color": "C60C30"
},
{
"name": "Pittsburgh Steelers",
"logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/commons\/d\/de\/Pittsburgh_Steelers_logo.svg",
"primary_color": "000000",
"secondary_color": "FFB612"
}
],
"fantasy_spin_contest_entry": {
"fantasy_spin_contest_entry_id": 2,
"fantasy_spin_contest_id": 1,
"game_id": 1,
"fantasy_spin_blueprint_id": 1,
"number_of_locks": 7,
"number_of_spins": 6,
"locks_available": 2,
"spins_available": 1,
"ratings": null,
"projection_score": 47.89,
"is_completed": 1
},
"fantasy_spin_contest_entry_players": [
{
"fantasy_spin_contest_entry_player_id": 1,
"fantasy_spin_position": "QB",
"fantasy_spin_position_rank": 3,
"sportsdata_player_id": 23230,
"name": "Dorian Thompson-Robinson",
"short_name": "D. Thompson-Robinson",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/23230.png",
"team": "Cleveland Browns",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/d\/d9\/Cleveland_Browns_logo.svg",
"team_primary_color": "311D00",
"team_secondary_color": "FF3300",
"opponent_key": "CHI",
"projection": 1.73,
"is_locked": 1
},
{
"fantasy_spin_contest_entry_player_id": 7,
"fantasy_spin_position": "SFLX",
"fantasy_spin_position_rank": 2,
"sportsdata_player_id": 19844,
"name": "DJ Moore",
"short_name": "D. Moore",
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/headshots\/nfl\/studio-high-res\/19844.png",
"team": "Chicago Bears",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/1\/15\/Chicago_Bears_logo_primary.svg",
"team_primary_color": "0B162A",
"team_secondary_color": "E64100",
"opponent_key": "CLE",
"projection": 15.2,
"is_locked": 1
}
]
}
}
Received response:
Request failed with error:
Leaderboard
requires authentication
Use this end point to view fantasy spin contest leaderboard
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-contests/leaderboard/maiores?fantasy_spin_contest_id=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "FantasySpin Leaderboard",
"data": {
"summary": [
{
"fantasy_spin_blueprint_id": 35,
"fantasy_spin_contest_id": 46,
"name": "NBA 02\/12 Mon @ 07:00 PM",
"my_entries_current": 20,
"my_entries_max": 25,
"total_entries_current": 31,
"total_entries_max": 250,
"closes_at_utc": "2024-02-13 00:00:00",
"currency_type": 20,
"prize_pool": 1000,
"first_pays": 265,
"total_entered": 200,
"won": 522,
"is_settled": 1
}
],
"all_entries": {
"current_page": 1,
"data": [
{
"fantasy_spin_contest_entry_id": 132,
"user_id": 3,
"username": "tahasethwala",
"projected_payout": 265,
"projection_score": 172.5,
"payout": 265,
"result_score": 192.3,
"projected_finish": 1,
"result_finish": 1
},
{
"fantasy_spin_contest_entry_id": 141,
"user_id": 104,
"username": "abbas",
"projected_payout": 68,
"projection_score": 153.2,
"payout": 155,
"result_score": 178.9,
"projected_finish": 5,
"result_finish": 2
}
],
"first_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/fantasy-spin-contests\/leaderboard\/46?page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/fantasy-spin-contests\/leaderboard\/46?page=2",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/fantasy-spin-contests\/leaderboard\/46?page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/fantasy-spin-contests\/leaderboard\/46?page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/fantasy-spin-contests\/leaderboard\/46?page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/fantasy-spin-contests\/leaderboard\/46?page=2",
"path": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/fantasy-spin-contests\/leaderboard\/46",
"per_page": 25,
"prev_page_url": null,
"to": 25,
"total": 31
},
"my_entries": [
{
"fantasy_spin_contest_entry_id": 132,
"user_id": 3,
"username": "tahasethwala",
"projected_payout": 265,
"projection_score": 172.5,
"payout": 265,
"result_score": 192.3,
"projected_finish": 1,
"result_finish": 1
},
{
"fantasy_spin_contest_entry_id": 120,
"user_id": 3,
"username": "tahasethwala",
"projected_payout": 155,
"projection_score": 164.2,
"payout": 68,
"result_score": 158.3,
"projected_finish": 2,
"result_finish": 5
}
]
}
}
Received response:
Request failed with error:
Lineup
requires authentication
Use this end point to view fantasy spin contest entry lineup
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/fantasy-spin-contests/lineup/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "FantasySpin Lineup",
"data": {
"summary": {
"user_id": 3,
"username": "tahasethwala",
"is_settled": 0,
"currency_type": 20,
"projection_score": 144.3,
"result_score": 144.3,
"projected_payout": 1100,
"payout": 200,
"projected_finish": 16,
"result_finish": 10,
"current_entry": 129,
"total_entries": 130
},
"lineup": [
{
"fantasy_spin_contest_entry_player_id": 1055,
"sportsdata_player_id": 20000901,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/CHA.png",
"short_name": "I. Smith",
"projection": 9.1,
"result": 0,
"fantasy_spin_position": "PG",
"fantasy_spin_position_rank": 3,
"team_key": "CHA",
"opponent_key": "TOR",
"opponent_type": "vs",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/c\/c4\/Charlotte_Hornets_%282014%29.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
},
{
"fantasy_spin_contest_entry_player_id": 1056,
"sportsdata_player_id": 20003039,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/TOR.png",
"short_name": "G. Dick",
"projection": 5.8,
"result": 0,
"fantasy_spin_position": "SG",
"fantasy_spin_position_rank": 5,
"team_key": "TOR",
"opponent_key": "CHA",
"opponent_type": "at",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/3\/36\/Toronto_Raptors_logo.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
},
{
"fantasy_spin_contest_entry_player_id": 1057,
"sportsdata_player_id": 20002662,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/TOR.png",
"short_name": "S. Barnes",
"projection": 38.6,
"result": 0,
"fantasy_spin_position": "SF",
"fantasy_spin_position_rank": 1,
"team_key": "TOR",
"opponent_key": "CHA",
"opponent_type": "at",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/3\/36\/Toronto_Raptors_logo.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
},
{
"fantasy_spin_contest_entry_player_id": 1058,
"sportsdata_player_id": 20002279,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/CHA.png",
"short_name": "P. Washington",
"projection": 25.9,
"result": 0,
"fantasy_spin_position": "PF",
"fantasy_spin_position_rank": 1,
"team_key": "CHA",
"opponent_key": "TOR",
"opponent_type": "vs",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/c\/c4\/Charlotte_Hornets_%282014%29.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
},
{
"fantasy_spin_contest_entry_player_id": 1059,
"sportsdata_player_id": 20002567,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/CHA.png",
"short_name": "N. Richards",
"projection": 22.2,
"result": 0,
"fantasy_spin_position": "C",
"fantasy_spin_position_rank": 2,
"team_key": "CHA",
"opponent_key": "TOR",
"opponent_type": "vs",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/c\/c4\/Charlotte_Hornets_%282014%29.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
},
{
"fantasy_spin_contest_entry_player_id": 1060,
"sportsdata_player_id": 20000606,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/TOR.png",
"short_name": "D. Schröder",
"projection": 24.9,
"result": 0,
"fantasy_spin_position": "G",
"fantasy_spin_position_rank": 2,
"team_key": "TOR",
"opponent_key": "CHA",
"opponent_type": "at",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/3\/36\/Toronto_Raptors_logo.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
},
{
"fantasy_spin_contest_entry_player_id": 1061,
"sportsdata_player_id": 20000443,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/TOR.png",
"short_name": "O. Porter Jr.",
"projection": 4.2,
"result": 0,
"fantasy_spin_position": "F",
"fantasy_spin_position_rank": 12,
"team_key": "TOR",
"opponent_key": "CHA",
"opponent_type": "at",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/3\/36\/Toronto_Raptors_logo.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
},
{
"fantasy_spin_contest_entry_player_id": 1062,
"sportsdata_player_id": 20002294,
"headshot_high_resolution": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/sports\/nba\/CHA.png",
"short_name": "C. Martin",
"projection": 13.6,
"result": 0,
"fantasy_spin_position": "UTIL",
"fantasy_spin_position_rank": 13,
"team_key": "CHA",
"opponent_key": "TOR",
"opponent_type": "vs",
"team_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/c\/c4\/Charlotte_Hornets_%282014%29.svg",
"schedule_date_time_utc": "2024-02-08 00:00:00"
}
]
}
}
Example response (404):
{
"message": "FantasySpin contest entry not found!"
}
Received response:
Request failed with error:
Player news and stats
requires authentication
Use this end point to view player's news and stats
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/player-news-stats?game_id=1&sportsdata_player_id=20000500" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Player details",
"data": {
"news": [
{
"news_id": 96137,
"title": "Khris Middleton Sitting Against Nets",
"time_ago": "13 hours ago",
"source": "RotoBaller",
"content": "Milwaukee Bucks forward Khris Middleton (ankle) has been ruled out for Thursday's contest against the Brooklyn Nets. Following Wednesday's narrow road loss to the first-place Boston Celtics, the Bucks will use Thursday's matchup against an inferior opponent to manage the left ankle that shelved Middleton for over a month of action between February and March. Sunday's showdown with the Oklahoma City Thunder marks the veteran sharpshooter's next chance to take the court. Milwaukee's frontcourt could be undermanned with superstar Giannis Antetokounmpo (hamstring) questionable on Thursday, so the glass-cleaning Bobby Portis Jr. may be in for an expanded role. Across 24 games without Middleton this year, Portis is averaging 16.5 points, 7.5 rebounds, 1.6 assists, and 1.4 three-pointers and faces a Nets team that could be without interior presence Nicolas Claxton (illness)."
},
{
"news_id": 96062,
"title": "Khris Middleton Not Listed On The Injury Report",
"time_ago": "2 days ago",
"source": "RotoBaller",
"content": "Milwaukee Bucks forward Khris Middleton isn't listed on the team's injury report for Wednesday's matchup with Boston. Middleton tweaked his ankle at the beginning of February, resulting in a multi-week stint on the shelf. However, he returned for Sunday's win over the Phoenix Suns. The 32-year-old played better than expected, amassing 22 points, seven rebounds, and one steal in just 25 minutes. Of course, Giannis Antetokounmpo (hamstring) was ruled out, so Middleton had a chance to get more involved offensively. Nonetheless, with Antetokounmpo questionable versus the Celtics, Middleton could end up taking on a more prominent role on the scoring end. He'll also presumably see a slight bump in minutes."
}
],
"stats": [
{
"sportsdata_game_id": 20573,
"date": "Mar 24",
"opponent_type": "vs",
"opponent_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/5\/5d\/Oklahoma_City_Thunder.svg",
"phase": "Projection",
"stats": 27.9
},
{
"sportsdata_game_id": 20550,
"date": "Mar 21",
"opponent_type": "vs",
"opponent_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/commons\/4\/44\/Brooklyn_Nets_newlogo.svg",
"phase": "Final",
"stats": 0
},
{
"sportsdata_game_id": 20541,
"date": "Mar 20",
"opponent_type": "at",
"opponent_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/8\/8f\/Boston_Celtics.svg",
"phase": "Final",
"stats": 38.2
},
{
"sportsdata_game_id": 20519,
"date": "Mar 17",
"opponent_type": "vs",
"opponent_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/d\/dc\/Phoenix_Suns_logo.svg",
"phase": "Final",
"stats": 36.1
},
{
"sportsdata_game_id": 20501,
"date": "Mar 14",
"opponent_type": "vs",
"opponent_logo_url": "https:\/\/upload.wikimedia.org\/wikipedia\/en\/0\/0e\/Philadelphia_76ers_logo.svg",
"phase": "Final",
"stats": 0
}
]
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"sportsdata_player_id": [
"The sportsdata player id field is required."
]
}
}
Received response:
Request failed with error:
Feedback
List
requires authentication
Use this end point to get list of feedbacks
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/feedbacks?per_page=8&search=ut&sort_field=delectus&sort_method=quis&page=3&user_id=2" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Feedbacks List",
"data": {
"feedbacks": {
"current_page": 1,
"data": [
{
"id": 2,
"user_id": 1,
"feedback": "Lorem ipsum is simply dummy text",
"created_at": "2021-07-14T13:15:17.000000Z",
"updated_at": "2021-07-14T13:15:17.000000Z",
"user": {
"id": 1,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala",
"phone": "9925738146"
}
},
{
"id": 1,
"user_id": 1,
"feedback": "Lorem ipsum is simply dummy text",
"created_at": "2021-07-14T13:10:57.000000Z",
"updated_at": "2021-07-14T13:10:57.000000Z",
"user": {
"id": 1,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala",
"phone": "9925738146"
}
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/feedbacks?per_page=2&search=&sort_field=id&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/feedbacks?per_page=2&search=&sort_field=id&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/feedbacks?per_page=2&search=&sort_field=id&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/feedbacks",
"per_page": 2,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"sort_field": [
"The selected sort field is invalid."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Store
requires authentication
Use this end point to store feedback
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/feedbacks/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"feedback":"illo"}'
Example response (201):
{
"message": "Feedback Stored",
"data": {
"reward_earned_flag": 1
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"feedback": [
"The feedback field is required."
]
}
}
Received response:
Request failed with error:
My Feedbacks
requires authentication
Use this end point to store get my feedbacks
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/feedbacks/my-feedbacks" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "My Feedbacks",
"data": {
"feedbacks": [
{
"id": 1,
"user_id": 1,
"feedback": "Lorem ipsum is simply dummy text",
"created_at": "2021-07-14T13:10:57.000000Z",
"updated_at": "2021-07-14T13:10:57.000000Z"
},
{
"id": 2,
"user_id": 1,
"feedback": "Lorem ipsum is simply dummy text",
"created_at": "2021-07-14T13:15:17.000000Z",
"updated_at": "2021-07-14T13:15:17.000000Z"
}
]
}
}
Received response:
Request failed with error:
Free Play
Claim Free Play Promo
requires authentication
Use this endpoint to claim a free play promo and receive credits.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/free-play-promo/claim" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":5}'
Example response (200):
{
"message": "Free play credits awarded"
}
Example response (404):
{
"message": "Free play promo not available"
}
Example response (422):
{
"message": "Promo already claimed"
}
Example response (422):
{
"message": "User is not eligible for this promo"
}
Example response (422):
{
"message": "Unable to resolve credit bucket"
}
Received response:
Request failed with error:
Game Play Sound
Update Game Play Sound Status
requires authentication
Use this end point to update status of game play sound.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/update/gameplay-sound-status" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"is_gameplay_sound_enabled":15}'
Example response (200):
{
"message": "Status changed successfully",
"data": {
"is_gameplay_sound_enabled": 1
}
}
* @response 422 {
"message": "Validation Failed.",
"errors": {
"is_gameplay_sound_enabled": [
"The is_gameplay_sound_enabled field is required"
]
}
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Update Game Play Background Sound Status
requires authentication
Use this end point to update status of game play background sound.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/update/gameplay-bg-sound-status" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"sound_key":"necessitatibus","is_enabled":19}'
Example response (200):
{
"message": "Status changed successfully"
}
@response 422 {
"message": "Validation Failed.",
"errors": {
"sound_key": [
"The sound_key field is required"
],
"is_enabled": [
"The is_enabled field is required"
]
}
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Game
List
requires authentication
Use this end point to get the list of games
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/games" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Games",
"data": {
"games": [
{
"id": 1,
"name": "Football (NFL)",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-football.png",
"status": "Active",
"sequence": 0
},
{
"id": 2,
"name": "Basketball (NBA)",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-basketball.png",
"status": "Active",
"sequence": 0
},
{
"id": 3,
"name": "Baseball (MLB)",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-baseball.png",
"status": "Active",
"sequence": 0
}
]
}
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update game.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/games/3/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"status":"aliquam","sequence":1}'
Example response (200):
{
"message": "Game updated successfully",
"data": {
"game": {
"id": 1,
"name": "Football (NFL)",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-football.png",
"status": "Inactive",
"sequence": 1,
"created_at": null,
"updated_at": "2022-07-15T06:45:37.000000Z"
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"status": [
"The status field is required."
],
"sequence": [
"The sequence field is required."
]
}
}
Example response (404):
{
"message": "Game not found"
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Geo location
Capture
requires authentication
Use this end point to capture the geo location status
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/geolocation/capture" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"geo_location_status_id":1,"xpoint_response":"autem"}'
Example response (201):
{
"message": "Geo location captured",
"data": {
"geo_location_status": {
"id": 3,
"name": "ALLOWED",
"created_at": "2022-05-17T07:31:13.000000Z",
"updated_at": "2022-05-17T07:31:13.000000Z"
},
"is_dfs_geolocation_step_passed": 1
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"geo_location_status_id": [
"The geo location status id field is required."
]
}
}
Received response:
Request failed with error:
History
List v2 New
requires authentication
Use this end point to get list of cash transactions history
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/v2/histories?page=9" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "History List",
"data": {
"transactions": {
"current_page": 1,
"data": [
{
"id": 50,
"type": "Referral Tier Bonus",
"description": "Referral Tier Bonus : ankita2210 | Tier 2 Achieved",
"currency_type": 30,
"value": 70,
"date": "01/10/2025"
},
{
"id": 49,
"type": "Referral Bonus",
"description": "New Recruit: ankita16",
"currency_type": 30,
"value": 20,
"date": "01/10/2025"
},
{
"id": 46,
"type": "Referral Tier Bonus",
"description": "Referral Tier Bonus : ankita2210 | Tier 1 Achieved",
"currency_type": 30,
"value": 20,
"date": "01/10/2025"
},
{
"id": 45,
"type": "Referral Bonus",
"description": "New Recruit: ankita15",
"currency_type": 30,
"value": 20,
"date": "01/10/2025"
},
{
"id": 42,
"type": "Referral Tier Bonus",
"description": "Referral Tier Bonus",
"currency_type": 30,
"value": 20,
"date": "01/09/2025"
},
{
"id": 41,
"type": "Referral Tier Bonus",
"description": "Referral Tier Bonus",
"currency_type": 30,
"value": 70,
"date": "01/09/2025"
},
],
"first_page_url": "http://127.0.0.1:8000/v2/histories?page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http://127.0.0.1:8000/v2/histories?page=2",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/v2/histories?page=1",
"label": "1",
"active": true
},
{
"url": "http://127.0.0.1:8000/v2/histories?page=2",
"label": "2",
"active": false
},
{
"url": "http://127.0.0.1:8000/v2/histories?page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http://127.0.0.1:8000/v2/histories?page=2",
"path": "http://127.0.0.1:8000/v2/histories",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 17
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
List v2 Token Purchase History
requires authentication
Use this end point to get list of token purchase transactions history
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/v2/token-purchase/histories?page=10" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Token Purchase History List",
"data": {
"in_app_purchase_transactions": {
"current_page": 1,
"data": [
{
"id": 13566,
"type": "1000 Token Purchase",
"description": "Transaction ID: 1234",
"currency_type": 20,
"date": "08\/22\/2025",
"value": "-$1.99",
"txn_type": "debit"
},
{
"id": 13565,
"type": "1000 Token Purchase",
"description": "Transaction ID: TRN12345",
"currency_type": 20,
"date": "08\/22\/2025",
"value": "-$1.90",
"txn_type": "debit"
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/v2\/token-purchase\/histories?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/v2\/token-purchase\/histories?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/v2\/token-purchase\/histories?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/v2\/token-purchase\/histories",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
In-App Purchases
Create In-App Purchase Transaction
requires authentication
Use this endpoint to store a new in-app purchase transaction for the authenticated user.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/in-app-purchases/transactions" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"transaction_id":"\"1000000987654321\"","product_id":"\"com.app.tokenpack100\"","platform":"\"ios\"","payment_status":"\"success\"","token_amount":"100","plan_amount":"499.99","currency":"\"USD\""}'
Example response (200):
{
"message": "In-App Purchase Transaction Created"
}
Example response (404):
{
"message": "User not found"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"transaction_id": [
"The transaction_id field is required."
],
"product_id": [
"The product_id field is required."
],
"platform": [
"The platform field is required."
],
"payment_status": [
"The payment_status field is required."
],
"token_amount": [
"The token_amount field is required."
],
"plan_amount": [
"The plan_amount field is required."
],
"currency": [
"The currency field is required."
]
}
}
Received response:
Request failed with error:
Get User Transaction IDs
requires authentication
Use this endpoint to retrieve all in-app purchase transaction IDs for the authenticated user.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/in-app-purchases/transactions/user/ids" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "User Transaction IDs Fetched Successfully",
"data": {
"user_transaction_ids": [
"1000000987654321",
"1000000987654322",
"1000000987654323"
]
}
}
Example response (404):
{
"message": "User Not Found"
}
Received response:
Request failed with error:
Transactions
requires authentication
Use this end point to get the list of cash transactions
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/in-app-purchases/transactions/list?per_page=9&search=qui&sort_field=maiores&sort_method=et&page=11&status=voluptatem&user_id=2&created_at=sunt&created_at_from=ullam&created_at_to=id" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (&user_id=&created_at=&created_at_from=&created_at_to=&page=1):
{
"message": "Transactions",
"data": {
"transactions": {
"current_page": 1,
"data": [
{
"id": 30,
"status": "Success",
"user_id": 3,
"token_amount": 1000,
"plan_amount": 1.99,
"currency": "USD",
"prior_balance": 0,
"updated_balance": 0,
"transaction_id": 12345667,
"product_id": token_plan_1,
"created_at": "2022-06-01T07:56:13.000000Z",
"updated_at": "2022-06-01T07:56:55.000000Z",
"user": {
"id": 3,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala"
}
}
],
"first_page_url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&",
"from": 1,
"last_page": 8,
"last_page_url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=8",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&",
"label": "1",
"active": true
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=2",
"label": "2",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=3",
"label": "3",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=4",
"label": "4",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=5",
"label": "5",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=6",
"label": "6",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=7",
"label": "7",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=8",
"label": "8",
"active": false
},
{
"url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list?per_page=1&search=&sort_field=id&sort_method=desc&type=&status=&user_id=&created_at=&created_at_from=&created_at_to=&page=2",
"path": "http://35.154.99.45/bettorfantasy/dfs/bettor_webapi/public/in-app-purchases/transactions/list",
"per_page": "1",
"prev_page_url": null,
"to": 1,
"total": 8
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"sort_field": [
"The selected sort field is invalid."
]
}
}
Received response:
Request failed with error:
KYC
List
requires authentication
Use this end point to get the list of user's KYC attempts
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/kycs?per_page=2&search=et&sort_field=officia&sort_method=et&page=17&user_id=12" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "User KYC history",
"data": {
"kycs": {
"current_page": 1,
"data": [
{
"id": 5,
"user_id": 1,
"first_name": "Taha",
"last_name": "Sethwala",
"dob": "1996-01-14",
"street_address": "A\/4, Unit Hills, Juhapura, Ahmedabad",
"zip": 32767,
"created_at": "2022-04-21T05:49:51.000000Z",
"updated_at": "2022-04-21T05:49:53.000000Z",
"response": {
"response": {
"error": [
"Your IP address is not registered. Please contact IDology Customer Service at 866-520-1234 or email customerservice@idology.com",
"No address submitted"
]
}
},
"kyc_status_id": 1,
"kyc_status": {
"id": 1,
"name": "Not performed",
"created_at": "2022-04-21T05:28:34.000000Z",
"updated_at": "2022-04-21T05:28:34.000000Z"
}
}
],
"first_page_url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=1",
"from": 1,
"last_page": 5,
"last_page_url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=5",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=3",
"label": "3",
"active": false
},
{
"url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=4",
"label": "4",
"active": false
},
{
"url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=5",
"label": "5",
"active": false
},
{
"url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/localhost:8000\/kycs?per_page=1&search=&sort_field=id&sort_method=desc&user_id=1&page=2",
"path": "http:\/\/localhost:8000\/kycs",
"per_page": "1",
"prev_page_url": null,
"to": 1,
"total": 5
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
Logs
List
requires authentication
Use this end point to get the list of win push notification logs
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/win-push-notification-logs?per_page=3&page=8&status=1&is_send=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Win push notifications logs",
"data": {
"winPushNotificationsLogs": {
"current_page": 1,
"data": [
{
"id": 2,
"user_id": 1,
"title": "Title",
"body": "Body",
"status": 1,
"is_send": 1,
"contest_id": 1,
"user": {
"id": 2,
"username": "taha"
}
"created_at": "2021-08-09T09:30:10.000000Z",
"updated_at": "2021-08-09T09:30:10.000000Z"
},
{
"id": 1,
"user_id": 1,
"title": "Title",
"body": "Body",
"status": 1,
"is_send": 1,
"contest_id": 1,
"user": {
"id": 2,
"username": "taha"
}
"created_at": "2021-08-09T09:13:30.000000Z",
"updated_at": "2021-08-09T09:13:30.000000Z"
}
],
"first_page_url": "http://127.0.0.1:8000/win-push-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/win-push-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/win-push-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/win-push-notification-logs",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of api logs
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/api-logs?per_page=9&page=6" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "API logs",
"data": {
"apiLogs": {
"current_page": 1,
"data": [
{
"id": 2,
"user_id": 2,
"request_method": "POST",
"request_url": "http://localhost/prizeout",
"request_data": {
"per_page":2,"search":"vel","sort_field":"fuga","sort_method":"temporibus",* "page":10,"type":"et","status":"aut","user_id":13"created_at":"placeat","created_at_from":"officiis","created_at_to":"facilis"
},
"response_http_code": 200,
"ip_address": 127.0.0.1,
"version": "N/A",
"duration_ms": "N/A",
"headers": "N/A",
"created_at": "2021-08-09T09:30:10.000000Z",
"updated_at": "2021-08-09T09:30:10.000000Z"
"headers" : null
"user": {
"id": 2,
"username": "taha"
}
},
{
"id": 1,
"user_id": 2,
"request_method": "POST",
"request_url": "http://localhost/prizeout",
"request_data": {
"per_page":2,"search":"vel","sort_field":"fuga","sort_method":"temporibus",* "page":10,"type":"et","status":"aut","user_id":13"created_at":"placeat","created_at_from":"officiis","created_at_to":"facilis"
},
"response_http_code": 200,
"ip_address": 127.0.0.1,
"version": "N/A",
"duration_ms": "N/A",
"headers": "N/A",
"created_at": "2021-08-09T09:13:30.000000Z",
"updated_at": "2021-08-09T09:13:30.000000Z"
"user": {
"id": 2,
"username": "taha"
}
},
}
],
"first_page_url": "http://127.0.0.1:8000/api-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/api-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/api-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/api-logs",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of sms notification logs
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/sms-notification-logs?per_page=16&page=12" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "SMS notification logs",
"data": {
"smsNotificationLogs": {
"current_page": 1,
"data": [
{
"id": 109,
"user_id": null,
"twilio_account_username": "AC80f6167ddf2cdca7f3c4daa595044647",
"twilio_account_password": "c2ff0ca7c3b66da860045ac73fd040eb",
"twilio_from_number": "+13022003533",
"twilio_to_number": "+19584376316",
"response": "{\"code\":21211,\"message\":\"Invalid 'To' Phone Number: +1958437XXXX\",\"more_info\":\"https://www.twilio.com/docs/errors/21211\",\"status\":400}",
"created_at": "2025-01-10T10:18:57.000000Z",
"updated_at": "2025-01-10T10:18:57.000000Z",
"message": "<#> Your FantasySpin code is 471323 ",
"temp_user_id": 108,
"http_response_code": null,
"sid": null,
"status": null,
"error_code": null,
"callback_url": null
"user": {
"id": 2,
"username": "taha"
}
},
{
"id": 108,
"user_id": null,
"twilio_account_username": "AC80f6167ddf2cdca7f3c4daa595044647",
"twilio_account_password": "c2ff0ca7c3b66da860045ac73fd040eb",
"twilio_from_number": "+13022003533",
"twilio_to_number": "+19584376315",
"response": "{\"code\":21211,\"message\":\"Invalid 'To' Phone Number: +1958437XXXX\",\"more_info\":\"https://www.twilio.com/docs/errors/21211\",\"status\":400}",
"created_at": "2025-01-10T10:14:36.000000Z",
"updated_at": "2025-01-10T10:14:36.000000Z",
"message": "<#> Your FantasySpin code is 233947 ",
"temp_user_id": 107,
"http_response_code": null,
"sid": null,
"status": null,
"error_code": null,
"callback_url": null
"user": {
"id": 2,
"username": "taha"
}
},
],
"first_page_url": "http://127.0.0.1:8000/sms-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/sms-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/sms-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/sms-notification-logs",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of Task scheduling logs
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/task-scheduling-logs?per_page=5&page=20" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Task scheduling logs",
"data": {
"smsLogs": {
"current_page": 1,
"data": [
{
"id": 888,
"name": "sync:referral-tier-bonus",
"frequency": "Once",
"start_time_est": "2025-01-03 02:32:02",
"end_time_est": "2025-01-03 02:32:03",
"created_at": "2025-01-03T07:32:02.000000Z",
"updated_at": "2025-01-03T07:32:03.000000Z",
"is_executed": 1
},
],
"first_page_url": "http://127.0.0.1:8000/task-scheduling-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/task-scheduling-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/task-scheduling-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/task-scheduling-logs",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of Email verification logs
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/email-verification-logs?per_page=14&page=5" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Email verification logs",
"data": {
"emailVerificationLogs": {
"current_page": 1,
"data": [
{
"id": 888,
"user_id": 1,
"token": "LoOA5vBsWipIb0kv",
"link": "http://127.0.0.1:8000/user/email-verify?token=LoOA5vBsWipIb0kv",
"status": "Send",
"created_at": "2025-01-03T07:32:02.000000Z",
"updated_at": "2025-01-03T07:32:03.000000Z",
"user" : {
"id": 1,
"username": "taha"
}
},
],
"first_page_url": "http://127.0.0.1:8000/email-verification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/email-verification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/email-verification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/email-verification-logs",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of returned push notification logs
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/return-push-notification-logs?per_page=3&page=17&status=1&is_send=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Returned push notifications logs",
"data": {
"returnedPushNotificationsLogs": {
"current_page": 1,
"data": [
{
"id": 2,
"user_id": 1,
"title": "Title",
"body": "Body",
"status": 1,
"is_send": 1,
"contest_id": 1,
"user": {
"id": 2,
"username": "taha"
}
"created_at": "2021-08-09T09:30:10.000000Z",
"updated_at": "2021-08-09T09:30:10.000000Z"
},
{
"id": 1,
"user_id": 1,
"title": "Title",
"body": "Body",
"status": 1,
"is_send": 1,
"contest_id": 1,
"user": {
"id": 2,
"username": "taha"
}
"created_at": "2021-08-09T09:13:30.000000Z",
"updated_at": "2021-08-09T09:13:30.000000Z"
}
],
"first_page_url": "http://127.0.0.1:8000/return-push-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/return-push-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/return-push-notification-logs?per_page=10&search=&sort_field=id&sort_method=desc&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/return-push-notification-logs",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of streak push notification logs
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/streak-push-notification-logs?per_page=8&page=17&status=1&is_send=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Streak push notifications logs",
"data": {
"streakPushNotificationsLogs": {
"current_page": 1,
"data": [
{
"id": 2,
"user_id": 1,
"title": "Title",
"body": "Body",
"status": 1,
"is_send": 1,
"user": {
"id": 2,
"username": "taha"
}
"created_at": "2021-08-09T09:30:10.000000Z",
"updated_at": "2021-08-09T09:30:10.000000Z"
},
{
"id": 1,
"user_id": 1,
"title": "Title",
"body": "Body",
"status": 1,
"is_send": 1,
"user": {
"id": 2,
"username": "taha"
}
"created_at": "2021-08-09T09:13:30.000000Z",
"updated_at": "2021-08-09T09:13:30.000000Z"
}
],
"first_page_url": "http://127.0.0.1:8000/streak-push-notification-logs?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/streak-push-notification-logs?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/streak-push-notification-logs?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/streak-push-notification-logs",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
Master Blueprint Schedules
Store
requires authentication
Use this end point to store master blueprint schedules
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/master-blueprint-schedules/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"name":"MNF","creation_days":"cupiditate","creation_time":"12:00","opens_after_hours":12,"is_active":1}'
Example response (200):
{
"message": "Master blueprint schedules created successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"name": [
"The name field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of Master blueprint schedules
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/master-blueprint-schedules?per_page=15&search=NFL+Spin&sort_field=id&sort_method=desc&page=2&game_id=1&is_active=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Master Blueprint Schedules List",
"data": {
"master_blueprint_schedules": {
"current_page": 1,
"data": [
{
"id": 32,
"name": "MNF",
"creation_days": [
"Monday"
],
"creation_time": 13:00,
"opens_after_hours": 12,
"is_active": 1,
"created_at": "2023-12-07T13:15:23.000000Z",
"updated_at": "2023-12-07T13:15:23.000000Z",
"created_by": 1,
"updated_by": 0,
"game": {
"id": 1,
"name": "NFL"
}
}
],
"first_page_url": "http://127.0.0.1:8000/master-blueprint-schedules?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http://127.0.0.1:8000/master-blueprint-schedules?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/master-blueprint-schedules?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
"label": "1",
"active": true
},
{
"url": "http://127.0.0.1:8000/master-blueprint-schedules?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"label": "2",
"active": false
},
{
"url": "http://127.0.0.1:8000/master-blueprint-schedules?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http://127.0.0.1:8000/master-blueprint-schedules?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"path": "http://127.0.0.1:8000/master-blueprint-schedules",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 17
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"per_page": [
"The per page must be a number."
],
"sort_field": [
"The selected sort field is invalid."
],
"sort_method": [
"The selected sort method is invalid."
],
"is_active": [
"The selected is active is invalid."
]
}
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update master blueprint schedules
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/master-blueprint-schedules/eos/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"name":"MNF","creation_days":"qui","creation_time":"12:00","opens_after_hours":12,"is_active":1}'
Example response (200):
{
"message": "master blueprint schedules updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"game_id": [
"The game id field is required."
],
"name": [
"The name field is required."
],
"slate": [
"The slate field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete a master blueprint schedule
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/master-blueprint-schedules/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Master blueprint schedule deleted successfully!",
}
}
Example response (404):
{
"message": "Master blueprint schedule not found!"
}
Received response:
Request failed with error:
View
requires authentication
Use this end point to view a master blueprint schedule
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/master-blueprint-schedules/data/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Master Blueprint Schedule",
"data": {
"master_blueprint_schedule": {
"id": 1,
"game_id": 1,
"name": "MNF",
"creation_days": ["Monday"],
"creation_time": 10:00,
"opens_after_hours": 12,
"is_active": 1,
"created_at": "2023-12-06T13:32:57.000000Z",
"updated_at": "2023-12-06T13:32:57.000000Z",
"created_by": 1,
"updated_by": 0,
"game": {
"id": 1,
"name": "NFL"
}
},
}
}
Example response (404):
{
"message": "Master Blueprint Schedule not found!"
}
Received response:
Request failed with error:
Get Master Blueprint Schedules
requires authentication
Use this end point to get master blueprint schedules by game_id
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/master-blueprint-schedules/get/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Master Blueprint Schedules",
"data": {
"master_blueprint_schedules": {
"id": 1,
"game_id": 1,
"name": "MNF",
"slate": "Date",
"creation_days": ["Monday"],
"creation_time": 10:00,
"opens_after_hours": 12,
"is_active": 1,
{
"id": 2,
"game_id": 1,
"name": "MNF",
"slate": "Date",
"creation_days": ["Monday"],
"creation_time": 10:00,
"opens_after_hours": 12,
"is_active": 1,
},
}
}
Example response (404):
{
"message": "Master blueprint schedules not found!"
}
Received response:
Request failed with error:
Get Master Blueprints By Schedule
requires authentication
Use this end point to get master blueprints by schedule_id
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/master-blueprint-schedules/blueprints/quia" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Master Blueprints",
"data": {
"fantasy_spin_master_blueprints": {
"id": 1,
"game_id": 1,
"name": "Pittsburgh Steelers vs New England Patriots",
"slate": "Pittsburgh Steelers vs New England Patriots",
"currency_type": 20,
"buy_in": 25,
"payout": 100,
"number_of_entrants": 100,
"number_of_entries_per_user": 10,
"is_active": 1,
"master_blueprint_schedule_id": 1,
"created_at": "2023-12-06T13:32:57.000000Z",
"updated_at": "2023-12-06T13:32:57.000000Z",
"created_by": 1,
"updated_by": 0,
"game": {
"id": 1,
"name": "NFL"
}
}
}
}
Example response (404):
{
"message": "Master blueprints not found!"
}
Received response:
Request failed with error:
Master
States
Use this end point to get the list of all states
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/states?per_page=19&search=aut&sort_field=ex&sort_method=magnam&page=15" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "States list",
"data": {
"states": {
"current_page": 1,
"data": [
{
"id": 1,
"code": "AK",
"name": "Alaska"
},
{
"id": 3,
"code": "AZ",
"name": "Arizona"
},
{
"id": 4,
"code": "AR",
"name": "Arkansas"
},
{
"id": 5,
"code": "CA",
"name": "California"
},
{
"id": 6,
"code": "CO",
"name": "Colorado"
}
],
"first_page_url": "http:\/\/localhost:8001\/states?per_page=5&search=&sort_field=id&sort_method=asc&page=1",
"from": 1,
"last_page": 11,
"last_page_url": "http:\/\/localhost:8001\/states?per_page=5&search=&sort_field=id&sort_method=asc&page=11",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/localhost:8001\/states?per_page=5&search=&sort_field=id&sort_method=asc&page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/localhost:8001\/states?per_page=5&search=&sort_field=id&sort_method=asc&page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/localhost:8001\/states?per_page=5&search=&sort_field=id&sort_method=asc&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/localhost:8001\/states?per_page=5&search=&sort_field=id&sort_method=asc&page=2",
"path": "http:\/\/localhost:8001\/states",
"per_page": "5",
"prev_page_url": null,
"to": 5,
"total": 52
}
}
}
Received response:
Request failed with error:
Navigation
List
requires authentication
Use this end point to get the list of navigations
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/navigations" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Navigations",
"data": {
"navigations": [
{
"id": 1,
"name": "Fantasy",
"status": "Active",
"sequence": 1
},
{
"id": 2,
"name": "Props",
"status": "Active",
"sequence": 2
},
{
"id": 3,
"name": "Survival",
"status": "Active",
"sequence": 3
},
{
"id": 4,
"name": "Pools",
"status": "Active",
"sequence": 4
}
]
}
}
Update
requires authentication
Use this end point to update navigation.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/navigations/2/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"status":"quam","sequence":4}'
Example response (200):
{
"message": "Navigation updated successfully",
"data": {
"navigation": {
"id": 2,
"name": "Props",
"status": "Active",
"sequence": 2
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"sequence": [
"The sequence field is required."
]
}
}
Example response (404):
{
"message": "Navigation not found"
}
Example response (403):
{
"message": "Access Forbidden!"
}
New KYC
Update Kyc Name
requires authentication
Use this end point to update kyc name
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/kyc/update-name" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"kyc_first_name":"neque","kyc_last_name":"quo"}'
Example response (200):
{
"message": "Kyc name updated successfully!",
"data": {
"user": {
"id": 145,
"email": "ankita40@yopmail.com",
"username": "ankita40",
"phone": "8765432080",
"kyc": {
"kyc_status_id": null,
"is_kyc_locked": null,
"kyc_lock_remark": null,
"kyc_first_name": "Clark",
"kyc_last_name": "Green",
"kyc_dob": "11/02/1976",
"kyc_street_address": "222333 Peacht",
"kyc_full_address": "539 Mission Drive, San Gabriel, Los Angeles, California",
"kyc_state_id": "5",
"kyc_city": "San Francisco",
"kyc_zip": "91119",
"kyc_address_place_id": "ChIJgUbEo8cfqokR5lP9_Wh_DaM",
"kyc_attempts": 0
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"kyc_first_name": [
"The kyc_first_name field is required."
],
"kyc_last_name": [
"The kyc_last_name field is required."
]
}
}
Received response:
Request failed with error:
Update Kyc DOB
requires authentication
Use this end point to update kyc dob
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/kyc/update-dob" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"kyc_dob":"qui"}'
Example response (200):
{
"message": "Kyc dob updated successfully!",
"data": {
"user": {
"id": 145,
"email": "ankita40@yopmail.com",
"username": "ankita40",
"phone": "8765432080",
"kyc": {
"kyc_status_id": null,
"is_kyc_locked": null,
"kyc_lock_remark": null,
"kyc_first_name": "Clark",
"kyc_last_name": "Green",
"kyc_dob": "11/02/1976",
"kyc_street_address": "222333 Peacht",
"kyc_full_address": "539 Mission Drive, San Gabriel, Los Angeles, California",
"kyc_state_id": "5",
"kyc_city": "San Francisco",
"kyc_zip": "91119",
"kyc_address_place_id": "ChIJgUbEo8cfqokR5lP9_Wh_DaM",
"kyc_attempts": 0
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"kyc_dob": [
"The kyc_dob field is required."
]
}
}
Received response:
Request failed with error:
Update Kyc Street Address
requires authentication
Use this end point to update kyc street address
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/kyc/update-address" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"kyc_full_address":"voluptatum","kyc_street_address":"magni","kyc_zip":"laboriosam","kyc_state":"odit","kyc_city":"quod","kyc_address_place_id":"exercitationem"}'
Example response (200):
{
"message": "Kyc street address updated successfully!",
"data": {
"user": {
"id": 145,
"email": "ankita40@yopmail.com",
"username": "ankita40",
"phone": "8765432080",
"kyc": {
"kyc_status_id": null,
"is_kyc_locked": null,
"kyc_lock_remark": null,
"kyc_first_name": "Clark",
"kyc_last_name": "Green",
"kyc_dob": "11/02/1976",
"kyc_street_address": "222333 Peacht",
"kyc_full_address": "539 Mission Drive, San Gabriel, Los Angeles, California",
"kyc_state_id": "5",
"kyc_city": "San Francisco",
"kyc_zip": "91119",
"kyc_address_place_id": "ChIJgUbEo8cfqokR5lP9_Wh_DaM",
"kyc_attempts": 0
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"kyc_full_address": [
"The kyc_full_address field is required."
],
"kyc_street_address": [
"The street address field is required."
],
"kyc_state": [
"The state field is required."
],
"kyc_city": [
"The city field is required."
],
"kyc_zip": [
"The zip field is required."
]
}
}
Received response:
Request failed with error:
KYC Check v2
requires authentication
Use this endpoint to check the KYC (Know Your Customer) status for a user. The response will vary based on the user's current KYC status and attempts.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/kyc/check-new" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200, KYC Verification - More information required):
{
"message": "KYC check response",
"data": {
"kyc_status": {
"id": 4,
"name": "Verification - More information required",
"created_at": "2022-08-17T06:26:44.000000Z",
"updated_at": "2022-08-17T06:26:44.000000Z"
},
"raw_response": {
"response": {
"id-number": 5950044412,
"summary-result": {
"key": "id.failure",
"message": "FAIL"
},
"results": {
"key": "result.no.match",
"message": "ID Not Located"
},
"idliveq-error": {
"key": "id.not.eligible.for.questions",
"message": "Not Eligible For Questions"
},
"id-scan": "yes",
"id-scan-url": "https:\/\/web.idologylive.com\/idscan\/v2.jsp?id=U4eIF0WT2916b4616a"
}
},
"already_locked": 0,
"id_scan_required": 1,
"kyc_attempts": 1,
"id_scan_url": "https:\/\/web.idologylive.com\/idscan\/v2.jsp?id=U4eIF0WT2916b4616a"
}
}
Example response (200, KYC Verified & Locked):
{
"message": "KYC check response",
"data": {
"kyc_status": {
"id": 5,
"name": "Duplicate Information - Deny",
"created_at": "2022-08-17T06:26:44.000000Z",
"updated_at": "2022-08-17T06:26:44.000000Z"
},
"raw_response": null,
"already_locked": 1,
"kyc_attempts": 1,
"id_scan_required": 0,
"id_scan_url": null
}
}
Example response (200, KYC Failed & Locked):
{
"message": "Unable to verify your ID, please contact support",
"data": {
"kyc_status": {
"id": 3,
"name": "Verification Failed",
"created_at": "2022-08-17T06:26:44.000000Z",
"updated_at": "2022-08-17T06:26:44.000000Z"
},
"raw_response": null,
"already_locked": 1,
"kyc_attempts": 1,
"id_scan_required": 0,
"id_scan_url": null
}
}
Example response (200, More Info Required & Max Attempts Reached):
{
"message": "ID Upload Required",
"data": {
"kyc_status": {
"id": 4,
"name": "Verification - More Information Required",
"created_at": "2022-08-17T06:26:44.000000Z",
"updated_at": "2022-08-17T06:26:44.000000Z"
},
"raw_response": null,
"already_locked": 0,
"kyc_attempts": 2,
"id_scan_required": 1,
"id_scan_url": null
}
}
Example response (401, Unauthorized):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
KYC Upload Document
requires authentication
Use this endpoint to initiate the Scan Onboard document capture for KYC verification. It calls the GBG Scan Onboard API to generate a unique capture URL for the user.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/v2/kyc/upload-document" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "KYC document upload response",
"data": {
"scan_capture_url": "web.idologylive.com\/api\/idscancapture.jsp?referenceId=Ja3%2B8q%2Bdkk",
"query_id": "150352661"
}
}
Example response (500, GBG API Error):
{
"message": "Something went wrong! Please try again later."
}
Example response (500, GBG Error Response):
{
"message": "GBG error message"
}
Example response (500, GBG Failed Response):
{
"message": "GBG failed message"
}
Example response (401, Unauthorized):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
New Onboarding
Verify Phone
Use this end point to sign up. This API stores the provided phone number in the database and sends a verification code to the given number.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/verify-phone" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"phone":"culpa","unique_onboarding_id":"e9f3880e-a4dd-4664-b810-1373e5ccd4fb","referral_code":"cumque","otp_signature":"FtSl93sVi2G","temp_user_id":12}'
Example response (201):
{
"message": "Verification code sent."
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": null,
"username": null,
"password": null,
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T18:59:01.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": null,
"kyc_last_name": null,
"kyc_dob": null,
"kyc_street_address": null
}
}
}
Example response (201):
{
"message": "Phone is already verified.",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": "ankita17@yopmail.com",
"username": "ankita17",
"password": "$2y$10$G1POHDewmr640ySa9zeQO.z6ODJhdYQHhJIdC0YgKYmQITejqi4p.",
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-12T06:42:20.000000Z",
"resend_code_try": 1,
"is_phone_verified": 1,
"kyc_first_name": "Clark",
"kyc_last_name": "Green",
"kyc_dob": "1976-02-11",
"kyc_street_address": "222333 Peacht"
}
}
}
Example response (200):
{
"message": "Reactivate Account",
"is_reactivate_account": 1
}
Example response (200):
{
"message": "Reactivate Account",
"is_reactivate_account": 1
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"phone": [
"The phone field is required."
],
"unique_onboarding_id": [
"The unique_onboarding_id field is required."
]
}
}
Received response:
Request failed with error:
Verify Code
Use this end point to verify the verification code (OTP)
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/verify-code" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":18,"otp":"iusto","phone":"et","is_reactivate_account":1,"fcm_token":"non"}'
Example response (200):
{
"message": "Phone number verified successfully.",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": null,
"username": null,
"password": null,
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T18:59:01.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": null,
"kyc_last_name": null,
"kyc_dob": null,
"kyc_street_address": null
}
}
}
Example response (404):
{
"message": "User not found!"
}
Example response (404):
{
"message": "User not found!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
],
"phone": [
"The phone field is required when is reactivate account is 1."
],
"otp": [
"The otp field is required."
],
" phone": [
"The phone field is required when is reactivate account is 1."
],
}
}
Received response:
Request failed with error:
Update Email
Use this end point to update user's email
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/update-email" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":9,"email":"est"}'
Example response (201):
{
"message": "Email Updated!",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": "ankita17@yopmail.com",
"username": null,
"password": null,
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T19:20:40.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": null,
"kyc_last_name": null,
"kyc_dob": null,
"kyc_street_address": null
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
],
"email": [
"The email field is required."
]
}
}
Received response:
Request failed with error:
Update Username
Use this end point to update user's username
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/update-username" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":18,"username":"molestiae"}'
Example response (201):
{
"message": "Username updated successfully!",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": "ankita17@yopmail.com",
"username": "ankita17",
"password": null,
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T19:20:40.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": null,
"kyc_last_name": null,
"kyc_dob": null,
"kyc_street_address": null
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
]
"username": [
"The username field is required."
]
}
}
Received response:
Request failed with error:
Update Password
Use this end point to update user password
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/update-password" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":4,"password":"consequuntur","password_confirmation":"distinctio"}'
Example response (201):
{
"message": "Password updated successfully!",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": "ankita17@yopmail.com",
"username": "ankita17",
"password": "$2y$10$G1POHDewmr640ySa9zeQO.z6ODJhdYQHhJIdC0YgKYmQITejqi4p.",
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T19:20:40.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": null,
"kyc_last_name": null,
"kyc_dob": null,
"kyc_street_address": null
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
],
"password": [
"The password field is required."
]
}
}
Received response:
Request failed with error:
Resend Verification Code
Use this end point to resend the verification code (OTP)
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/resend-verification-code" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":16,"otp_signature":"FtSl93sVi2G"}'
Example response (200):
{
"message": "Verification code sent!"
}
Example response (404):
{
"message": "User not found!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
]
}
}
Received response:
Request failed with error:
Create Account
This endpoint completes the user registration process.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/create-account" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":123,"kyc_dob":"omnis","fcm_token":"asdas65d321ad8asdas35d1a65as4da56d1"}'
Example response (200):
{
"message": "Sign in successful!",
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"token_type": "bearer",
"expires_in": 3600,
"user": {
"id": 1,
"email": "john_doe@yopmail.com",
"username": "johndoe",
"is_adult": 1,
"phone": "9925738146",
"avatar": null,
"is_email_verified": 0,
"is_phone_verified": 1,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-05-31T07:23:15.000000Z",
"updated_at": "2021-05-31T07:23:15.000000Z",
"kyc": {
"kyc_status_id": null,
"is_kyc_locked": null,
"kyc_lock_remark": null,
"kyc_first_name": null,
"kyc_last_name": null,
"kyc_dob": "11\/02\/1976",
"kyc_street_address": null,
"kyc_full_address": null,
"kyc_state_id": null,
"kyc_city": null,
"kyc_zip": null,
"kyc_address_place_id": null,
"kyc_attempts": 0
},
"state": {
"id": 3,
"code": "AZ",
"name": "Arizona"
},
"role": {
"id": 2,
"name": "User"
}
}
}
}
Example response (404):
{
"message": "User not found!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
],
"kyc_dob": [
"The kyc_dob field is required."
]
}
}
Example response (422):
{
"message": "The email is already taken."
}
Example response (422):
{
"message": "The username is already taken."
}
Example response (422):
{
"message": "The phone number is already taken."
}
Received response:
Request failed with error:
Update Kyc Name
Use this end point to update kyc name
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/update-kyc-name" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":18,"kyc_first_name":"eos","kyc_last_name":"voluptatem"}'
Example response (201):
{
"message": "Kyc name updated successfully!",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": "ankita17@yopmail.com",
"username": "ankita17",
"password": null,
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T19:20:40.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": "Clark",
"kyc_last_name": "Green",
"kyc_dob": null,
"kyc_street_address": null
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
],
"kyc_first_name": [
"The kyc_first_name field is required."
],
"kyc_last_name": [
"The kyc_last_name field is required."
]
}
}
Received response:
Request failed with error:
Update Kyc DOB
Use this end point to update kyc dob
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/update-kyc-dob" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":13,"kyc_dob":"nisi"}'
Example response (201):
{
"message": "Kyc dob updated successfully!",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": "ankita17@yopmail.com",
"username": "ankita17",
"password": null,
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T19:20:40.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": "Clark",
"kyc_last_name": "Green",
"kyc_dob": "02\/11\/1976",
"kyc_street_address": null
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
],
"kyc_dob": [
"The kyc_dob field is required."
]
}
}
Received response:
Request failed with error:
Update Kyc Street Address
Use this end point to update kyc street address
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/updated-onboarding/update-kyc-address" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"temp_user_id":2,"kyc_full_address":"qui","kyc_street_address":"placeat","kyc_zip":"dolores","kyc_state":"fugit","kyc_city":"eligendi","kyc_address_place_id":"et"}'
Example response (201):
{
"message": "Kyc street address updated successfully!",
"data": {
"temp_user": {
"id": 17,
"unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
"email": "ankita17@yopmail.com",
"username": "ankita17",
"password": null,
"phone": "9584376325",
"referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
"created_at": "2025-03-11T18:52:06.000000Z",
"updated_at": "2025-03-11T19:20:40.000000Z",
"resend_code_try": 0,
"is_phone_verified": 1,
"kyc_first_name": "Clark",
"kyc_last_name": "Green",
"kyc_dob": "02/11/1976",
"kyc_full_address": "539 Mission Drive, San Gabriel, Los Angeles, California",
"kyc_street_address": "539 Mission Drive",
"kyc_state_id": 5,
"kyc_city": "San Francisco",
"kyc_zip": "91119",
"kyc_address_place_id": "ChIJgUbEo8cfqokR5lP9_Wh_DaM",
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"temp_user_id": [
"The temp_user_id field is required."
],
"kyc_full_address": [
"The kyc_full_address field is required."
],
"kyc_street_address": [
"The street address field is required."
],
"kyc_state": [
"The state field is required."
],
"kyc_city": [
"The city field is required."
],
"kyc_zip": [
"The zip field is required."
]
}
}
Received response:
Request failed with error:
New User Contest
Sports List
requires authentication
Use this endpoint to get the list of active games (sports) with contest availability.
If there are no contests available for a game, the contest_available field will be false.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/new-user-contest/sports" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Games",
"data": {
"games": [
{
"id": 1,
"name": "NFL",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-football-v2.png",
"status": "Active",
"sequence": 0,
"contest_available": false
},
{
"id": 2,
"name": "NBA",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-basketball-v2.png",
"status": "Active",
"sequence": 0,
"contest_available": false
},
{
"id": 3,
"name": "MLB",
"image": "http:\/\/127.0.0.1:8000\/images\/icon-baseball-v2.png",
"status": "Active",
"sequence": 0,
"contest_available": true
}
]
}
}
Received response:
Request failed with error:
Update Game On Status
requires authentication
Use this end point to update status of game on.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/new-user-contest/complete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "User game on status completed successfully"
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Payments v2
Payment Methods (User)
requires authentication
Use this end point to get the payment methods of a user
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/v2/payments/payment-methods/list" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Payment Methods",
"data": {
"payment_methods": [
{
"id": 1,
"userPaymentOptionId": "131144318",
"method_image": "http:\/\/apiqa.bettorfantasy.com\/images\/payments\/visa-white.png",
"method_name": "Visa Debit",
"method_masked_number": "4****1390",
"created_at": "2024-10-10T11:24:23.000000Z"
}
]
}
}
Received response:
Request failed with error:
Payment Method Delete (User)
requires authentication
Use this end point to delete the payment method of a user
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/payments/payment-methods/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":1}'
Example response (200):
{
"message": "Payment Method Deleted Successfully"
}
Example response (404):
{
"message": "Payment method not found!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"id": [
"The id field is required."
]
}
}
Received response:
Request failed with error:
Repeat Deposit
requires authentication
Use this end point to repeat the deposit
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/payments/repeat-deposit" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"userPaymentOptionId":5,"amount":10,"cvv":7}'
Example response (200):
{
"message": "Successfull!",
"data": {
"status": "APPROVED",
"amount": 20,
"trn": "7110000000005743261",
"redirect_url": null,
"raw": {
"internalRequestId": 1348562118,
"status": "SUCCESS",
"errCode": 0,
"reason": "",
"merchantId": "1075880000455231537",
"merchantSiteId": "232258",
"version": "1.0",
"clientRequestId": "0cc49954-7b96-4ce0-9e98-9dfce8c73d88_2024-10-16.07:27:35",
"sessionToken": "fd038442-57bd-48b6-b3a0-d9d4fd2a157a",
"clientUniqueId": "206_79231f48-64a2-40af-8e59-532520021946",
"orderId": "502329078",
"userTokenId": "tahasethwala",
"paymentOption": {
"userPaymentOptionId": "131144318",
"card": {
"ccCardNumber": "4****1390",
"bin": "476134",
"last4Digits": "1390",
"ccExpMonth": "01",
"ccExpYear": "29",
"acquirerId": "19",
"cvv2Reply": "",
"avsCode": "",
"cardType": "Debit",
"issuerBankName": "INTL HDQTRS-CENTER OWNED",
"issuerCountry": "SG",
"isPrepaid": "false",
"threeD": {}
},
"paymentAccountReference": "f4iK2pnudYKvTALGdcwEzqj9p4"
},
"transactionStatus": "APPROVED",
"gwErrorCode": 0,
"gwExtendedErrorCode": 0,
"issuerDeclineCode": "",
"issuerDeclineReason": "",
"transactionType": "Sale",
"transactionId": "7110000000005743261",
"externalTransactionId": "",
"authCode": "111588",
"customData": "",
"fraudDetails": {
"finalDecision": "Accept"
},
"externalSchemeTransactionId": "",
"merchantAdviceCode": ""
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"userPaymentOptionId": [
"The user payment option id field is required."
],
"amount": [
"The amount field is required."
]
}
}
Example response (400, Age Restrictions Apply):
{
"message": "Validations",
"error_box": {
"heading": "Age Restrictions Apply",
"message": "You must be 21 or older to enter cash contests in Massachusetts",
"cta": "Return",
"color": "Blue",
"cta_type": "Return",
}
}
Example response (400, Deposit Limit Reached):
{
"message": "Validations",
"error_box": {
"heading": "Deposit Limit Reached",
"message": "You are unable to take this action because of self exclusion restrictions placed on this account.",
"cta": "Return",
"color": "Blue",
"cta_type": "Return"
}
}
Example response (500):
{
"message": "Something went wrong. Please try again later."
}
Received response:
Request failed with error:
Payments
Deposit URL
requires authentication
Use this end point to get the deposit URL
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/payments/deposit-url?amount=7" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Deposit URL",
"data": {
"deposit_url": "https:\/\/ppp-test.safecharge.com\/ppp\/purchase.do?email=admin@bettorfantasy.com&merchant_id=1075880000455231537&merchant_site_id=232258&total_amount=100¤cy=USD&user_token_id=BF_User_Id_1_Time_1653556700_UUID_5e444072-546d-4d21-9a77-c7a58d9a8909&item_name_1=Deposit_Amount_100_USD_BF_User_Id_1_Time_1653556700_UUID_5e444072-546d-4d21-9a77-c7a58d9a8909_Time_2022-05-30.05:30:47&item_amount_1=100&item_quantity_1=1&time_stamp=2022-05-30.05:30:47&version=4.0.0¬ify_url=http:\/\/35.154.99.45\/bettorfantasy\/dfs\/bettor_webapi\/public\/payments\/deposit-dmn&country=US&merchant_unique_id=c552d1d2-b403-4a1c-9a6c-bff85fbdbc95_2022-05-30.05:30:47&checksum=d6b8320dc83f5bb916ccdbe137ef1390d026dc65bff605f1542b65459b254539"
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"amount": [
"The amount field is required."
]
}
}
Example response (400, Age Restrictions Apply):
{
"message": "Validations",
"error_box": {
"heading": "Age Restrictions Apply",
"message": "You must be 21 or older to enter cash contests in Massachusetts",
"cta": "Return",
"color": "Blue",
"cta_type": "Return",
}
}
Example response (400, Deposit Limit Reached):
{
"message": "Validations",
"error_box": {
"heading": "Deposit Limit Reached",
"message": "You are unable to take this action because of self exclusion restrictions placed on this account.",
"cta": "Return",
"color": "Blue",
"cta_type": "Return"
}
}
Received response:
Request failed with error:
Withdrawal URL
requires authentication
Use this end point to get the withdrawal URL
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/payments/withdrawal-url?amount=6" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Withdrawal URL",
"data": {
"withdrawal_url": "https:\/\/ppp-test.safecharge.com\/ppp\/withdrawal\/withdraw.do?merchant_id=1075880000455231537&merchant_site_id=232258&user_token=auto&wd_amount=100&wd_currency=USD&country=US&wd_open_amount=False&user_token_id=BF_User_Id_1_Time_1653556700_UUID_5e444072-546d-4d21-9a77-c7a58d9a8909&timeStamp=20220601062123&merchant_unique_id=2c4dc305-e6d8-4a1b-90fb-8b817c615f16_2022-06-01.06:21:23&version=4.0.0&successUrl=http:\/\/35.154.99.45\/bettorfantasy\/dfs\/bettor_webapi\/public\/payments\/withdrawal\/success&failUrl=http:\/\/35.154.99.45\/bettorfantasy\/dfs\/bettor_webapi\/public\/payments\/withdrawal\/error&backUrl=http:\/\/35.154.99.45\/bettorfantasy\/dfs\/bettor_webapi\/public\/payments\/withdrawal\/back&showCancelButton=0&checksum=26509287c7f1083cce9a6542e71b6cb870cd0c9bcc1757920ab3c1e04ac58ff2"
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"amount": [
"The amount field is required."
]
}
}
Received response:
Request failed with error:
Summary
requires authentication
Use this end point to get the summary of transactions
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/payments/summary" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Transactions Summary",
"data": {
"all_time_win_loss": "0.00",
"year_wise": [
{
"year": 2022,
"total_buy_ins": "0.00",
"total_winnings": "0.00",
"win_loss": "0.00"
}
]
}
}
Received response:
Request failed with error:
Pick'em
Get Players
requires authentication
Use this end point to get the contest entry players
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/pickem/get-players" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fantasy_spin_contest_entry_id":1,"fantasy_spin_blueprint_id":1,"game_id":11}'
Example response (200):
{
"message": "Players",
"data": {
"players": [
{
"sportsdata_player_id": 40000387,
"sportsdata_game_id": 642,
"projection": 19.3,
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/usa-today\/headshots\/golf\/harris-english-40000387-08e10527.png",
"short_name": "H. English"
},
{
"sportsdata_player_id": 40000045,
"sportsdata_game_id": 642,
"projection": 14.5,
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/usa-today\/headshots\/golf\/byeong-hun-an-40000045-996a8adc.png",
"short_name": "B. An"
},
{
"sportsdata_player_id": 40005841,
"sportsdata_game_id": 642,
"projection": 13.6,
"headshot_high_resolution": null,
"short_name": "J. Hastings"
},
{
"sportsdata_player_id": 40002913,
"sportsdata_game_id": 642,
"projection": 12.2,
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/usa-today\/headshots\/golf\/takumi-kanaya-40002913-075c3d52.png",
"short_name": "T. Kanaya"
},
{
"sportsdata_player_id": 40002343,
"sportsdata_game_id": 642,
"projection": 20.8,
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/usa-today\/headshots\/golf\/ben-griffin-40002343-6d034fe9.png",
"short_name": "B. Griffin"
},
{
"sportsdata_player_id": 40000430,
"sportsdata_game_id": 642,
"projection": 16.8,
"headshot_high_resolution": "https:\/\/s3-us-west-2.amazonaws.com\/static.fantasydata.com\/usa-today\/headshots\/golf\/matthew-fitzpatrick-40000430-a647f966.png",
"short_name": "M. Fitzpatrick"
}
]
}
}
Received response:
Request failed with error:
Confirm Pick'em Entry
requires authentication
Use this endpoint to confirm a Pick'em contest entry for the authenticated user.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/pickem/confirm-entry" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"game_id":1,"buy_in":5,"payout":50,"multiplier":10,"picks":"\"Over,Under,Over\"","players":"aspernatur"}'
Example response (200):
{
"message": "Pickem entry confirmed"
}
Example response (422):
{
"message": "Validations",
"error_box": {
"message": "Request data missing",
"cta": "Return",
"color": "Blue",
"cta_type": "Lobby"
}
}
Example response (422):
{
"message": "Validations",
"error_box": {
"heading": "Entry Fee Limit Exceeded",
"message": "You cannot enter this contest because the entry fee exceeds the allowed maximum of $25.",
"cta": "Return",
"color": "Blue",
"cta_type": "Lobby"
}
}
Received response:
Request failed with error:
Show Entry Details
requires authentication
Use this end point to show pick'em entry details
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/pickem/show-entry/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Pick'em Contest Entry Details!",
"data": {
"pickem_contest_entry": {
"pickem_contest_entry_id": 2,
"game_id": 1,
"contest_name": "🏈 NFL Pick ‘Em Entry",
"buy_in": "2.00",
"payout": "10.00",
"multiplier": 5,
"picks": 3,
"is_settled": 0
},
"pickem_contest_entry_players": [
{
"pickem_contest_entry_player_id": 7,
"sportsdata_player_id": 9038,
"projection": 14.4,
"is_game_started": 0,
"is_game_completed": 0,
"is_played": 0,
"result": null,
"headshot_high_resolution": "http:\/\/127.0.0.1:8000\/images\/players\/nfl\/9038.png",
"short_name": "M. Stafford",
"schedule_time_utc": "08:25 PM",
"game_info": "LAR vs HOU",
"game_status": "---"
},
{
"pickem_contest_entry_player_id": 8,
"sportsdata_player_id": 17975,
"projection": 7.9,
"is_game_started": 0,
"is_game_completed": 0,
"is_played": 0,
"result": null,
"headshot_high_resolution": "http:\/\/127.0.0.1:8000\/images\/players\/nfl\/17975.png",
"short_name": "H. Henry",
"schedule_time_utc": "05:00 PM",
"game_info": "NE vs LV",
"game_status": "---"
},
{
"pickem_contest_entry_player_id": 9,
"sportsdata_player_id": 19562,
"projection": 8.3,
"is_game_started": 0,
"is_game_completed": 0,
"is_played": 0,
"result": null,
"headshot_high_resolution": "http:\/\/127.0.0.1:8000\/images\/players\/nfl\/19562.png",
"short_name": "A. Ekeler",
"schedule_time_utc": "05:00 PM",
"game_info": "WAS vs NYG",
"game_status": "---"
}
]
}
}
Received response:
Request failed with error:
Privacy Setting
Update
requires authentication
Use this end point to update privacy settings.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/privacy-settings/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"privacy_show_recent_picks":0}'
Example response (200):
{
"message": "Updated!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"privacy_show_recent_picks": [
"The privacy show recent picks field is required."
]
}
}
Received response:
Request failed with error:
Profile
Change Password
requires authentication
Use this end point to change password.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/change-password" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"current_password":"tempore","new_password":"iste"}'
Example response (200):
{
"message": "Password changed successfully!"
}
Example response (422, Validation for required):
{
"message": "Validation Failed!",
"errors": {
"current_password": [
"The current password field is required."
],
"new_password": [
"The new password field is required."
]
}
}
Example response (422, Current password invalid):
{
"message": "Validation Failed!",
"errors": {
"current_password": [
"Current password is invalid!"
]
}
}
Example response (422, Current password and new password is same):
{
"message": "Validation Failed!",
"errors": {
"new_password": [
"The new password and current password must be different."
]
}
}
Received response:
Request failed with error:
Referral
List
requires authentication
Use this end point to get the list of referrals
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/referrals?per_page=16&search=velit&sort_field=non&sort_method=veritatis&page=17&user_id=11&referred_user_id=15&season=2&week=11" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Referrals",
"data": {
"referrals": {
"current_page": 1,
"data": [
{
"id": 4,
"user_id": 5,
"referred_user_id": 10,
"has_onboarding_completed": 1,
"referral_code": "01b6ad83-62e1-4bbe-aaa6-869d7ceaccb7",
"created_at": "2021-07-19T06:14:51.000000Z",
"updated_at": "2021-07-19T06:15:16.000000Z",
"season": 2020,
"week": 1,
"referred_by": [
{
"id": 5,
"email": "tahasethwala@gmail.com",
"username": "tahagmail",
"is_adult": 1,
"phone": "12345",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 0,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-15T11:05:02.000000Z",
"updated_at": "2021-07-19T06:15:19.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 2250,
"available_bucks": 0,
"available_credits": 2250,
"open_bucks": 0,
"open_credits": 0,
"referral_code": "01b6ad83-62e1-4bbe-aaa6-869d7ceaccb7"
}
],
"referred_to": [
{
"id": 10,
"email": "tahaabbas123@yopmail.com",
"username": "tahaabbas123",
"is_adult": 1,
"phone": "1231312312311",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": "2021-07-19 11:45:15",
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-19T06:14:50.000000Z",
"updated_at": "2021-07-19T06:15:15.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"referral_code": "e43a0ed2-b298-422e-9c93-5a2a2adcc98a"
}
]
},
{
"id": 3,
"user_id": 5,
"referred_user_id": 9,
"has_onboarding_completed": 1,
"referral_code": "01b6ad83-62e1-4bbe-aaa6-869d7ceaccb7",
"created_at": "2021-07-19T06:12:39.000000Z",
"updated_at": "2021-07-19T06:13:18.000000Z",
"season": 2020,
"week": 1,
"referred_by": [
{
"id": 5,
"email": "tahasethwala@gmail.com",
"username": "tahagmail",
"is_adult": 1,
"phone": "12345",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 0,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-15T11:05:02.000000Z",
"updated_at": "2021-07-19T06:15:19.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 2250,
"available_bucks": 0,
"available_credits": 2250,
"open_bucks": 0,
"open_credits": 0,
"referral_code": "01b6ad83-62e1-4bbe-aaa6-869d7ceaccb7"
}
],
"referred_to": [
{
"id": 9,
"email": "tahaabbas@yopmail.com",
"username": "tahaabbas",
"is_adult": 1,
"phone": "12313123123",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": "2021-07-19 11:43:18",
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-19T06:12:38.000000Z",
"updated_at": "2021-07-19T06:13:18.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"referral_code": "32b5135b-6ca4-41c8-90f7-1ae749911301"
}
]
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/referrals?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/referrals?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/referrals?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/referrals",
"per_page": 10,
"prev_page_url": null,
"to": 4,
"total": 4
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
Landing Page
requires authentication
Use this end point to get the landing page
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/referrals/landing-page" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Recruit Landing Page",
"data": {
"reward_value": 30,
"token_reward_value": 30000,
"referral_code": "6cf03fd4-7356-43ed-94d1-68801486f1b5",
"cta": "Share Your Referral Link",
"is_referral_history": 0,
"count": 0,
"tier_info": {
"tier_bonus_total": 300,
"current_referrals": 0,
"lifetime_bonus_text": "Lifetime Bonus: Every referral above 20 = $35* each",
"lifetime_bonus_amount": "35",
"tiers": [
{
"referral_count": 5,
"referral_bonus": 100,
"referral_bonus_extra": 20,
"referral_bonus_total": 120,
"is_complete": 0
},
{
"referral_count": 10,
"referral_bonus": 220,
"referral_bonus_extra": 70,
"referral_bonus_total": 290,
"is_complete": 0
},
{
"referral_count": 20,
"referral_bonus": 490,
"referral_bonus_extra": 210,
"referral_bonus_total": 700,
"is_complete": 0
}
]
}
}
}
Received response:
Request failed with error:
History Page
requires authentication
Use this end point to get the referral history page data
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/referrals/history" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Referral History Page",
"data": {
"referrals_completed": "Recruit a friend, Secure the bag.",
"bonus_cash_earned": 2500,
"referrals": [
{
"referred_user_name": "admin",
"referred_user_id": 1,
"user_id": 1,
"has_onboarding_completed": 1,
"has_funds_added": 1,
"funds_added_at": "2024-09-02 15:02:17",
"has_entered_cash_contest": 1,
"has_cash_bonus_given": 1,
"onboarding_completed_at": "2024-09-02 15:02:17",
"entered_cash_contest_at": "2024-09-02 15:02:17",
"cash_bonus_given_at": "2024-09-02 15:02:17"
}
}
}
Received response:
Request failed with error:
Schedule Sports Order
List
requires authentication
Use this end point to get the list of schedule sports order
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/schedule-sports-order?per_page=15&search=NFL+Spin&sort_field=id&sort_method=desc&page=2&is_active=1&game_id=1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Fantasy Spin Master Blueprints List",
"data": {
"fantasy_spin_blueprints": {
"current_page": 1,
"data": [
{
"id": 32,
"name": "Pittsburgh Steelers vs New England Patriots",
"slate": "Pittsburgh Steelers vs New England Patriots",
"currency_type": 20,
"game_id": 1,
"buy_in": 25,
"payout": 100,
"number_of_entrants": 100,
"number_of_entries_per_user": 10,
"is_instant_win": 1,
"instant_wins_per_position": 1,
"is_active": 1,
"created_at": "2023-12-07T13:15:23.000000Z",
"updated_at": "2023-12-07T13:15:23.000000Z",
"created_by": 1,
"updated_by": 0,
"game": {
"id": 1,
"name": "NFL"
}
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
"path": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 17
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"per_page": [
"The per page must be a number."
],
"sort_field": [
"The selected sort field is invalid."
],
"sort_method": [
"The selected sort method is invalid."
],
"is_active": [
"The selected is active is invalid."
]
}
}
Received response:
Request failed with error:
Store
requires authentication
Use this end point to store schedule sports order
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/schedule-sports-order/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"date":"Y-m-d","time":"H:i:s","game_sequence":"iure"}'
Example response (200):
{
"message": "Schedule sports order created successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"date": [
"The date field is required."
],
"time": [
"The time field is required."
],
"game_sequence": [
"The game_sequence field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
View
requires authentication
Use this end point to view a Schedule sports order
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/schedule-sports-order/data/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Schedule sports order",
"data": {
"schedule_sports_order": {
"id": 1,
"date": "2024-11-11",
"start_time": "12:42:00",
"game_sequence": {
"id": 1,
"name": "NFL"
}
},
}
}
Example response (404):
{
"message": "Schedule sports order not found!"
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update schedule sports order
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/schedule-sports-order/laboriosam/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"date":"Y-m-d","time":"H:i:s","game_sequence":"voluptates"}'
Example response (200):
{
"message": "Schedule sports order updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"date": [
"The date field is required."
],
"time": [
"The time field is required."
],
"game_sequence": [
"The game_sequence field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete a schedule sports order
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/schedule-sports-order/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Schedule sports order deleted successfully!",
}
}
Example response (404):
{
"message": "Schedule sports order not found!"
}
Received response:
Request failed with error:
State
List
requires authentication
Use this end point to get the list of states
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/states/list?search=voluptas" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "State list",
"data": {
"states": {
"current_page": 1,
"data": [
{
"id": 54,
"code": "AL",
"name": "Alabama",
"min_age_required": 18,
"is_ncaa_cash_contest_allowed": 0,
"is_cash_eligible": 0,
"is_pickem_cash_eligible": 0,
"daily_limit": "500.00",
"weekly_limit": "1000.00",
"monthly_limit": "3000.00"
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/states\/list?page=1",
"from": 1,
"last_page": 6,
"last_page_url": "http:\/\/127.0.0.1:8000\/states\/list?page=6",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/states\/list?page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/127.0.0.1:8000\/states\/list?page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/states\/list?page=3",
"label": "3",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/states\/list?page=4",
"label": "4",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/states\/list?page=5",
"label": "5",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/states\/list?page=6",
"label": "6",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/states\/list?page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "http:\/\/127.0.0.1:8000\/states\/list?page=2",
"path": "http:\/\/127.0.0.1:8000\/states\/list",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 53
}
}
}
Received response:
Request failed with error:
View
requires authentication
Use this end point to view a state details
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/state/data/1" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "State details",
"data": {
"state": {
"id": 1,
"code": "AK",
"name": "Alaska",
"min_age_required": 18,
"is_ncaa_cash_contest_allowed": 1,
"is_cash_eligible": 1,
"is_pickem_cash_eligible": 1,
"daily_limit": "500.00",
"weekly_limit": "1000.00",
"monthly_limit": "3000.00"
}
}
}
Example response (404):
{
"message": "state not found!"
}
Received response:
Request failed with error:
States
Update
requires authentication
Use this end point to update states
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/state/omnis/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"min_age_required":18,"is_ncaa_cash_contest_allowed":true,"is_cash_eligible":true,"is_pickem_cash_eligible":true,"daily_limit":"500","weekly_limit":"1000","monthly_limit":"3000"}'
Example response (200):
{
"message": "State updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"min_age_required": [
"The min age field is required."
],
"daily_limit": [
"The daily limit field is required."
],
"weekly_limit": [
"The weekly limit field is required."
],
"monthly_limit": [
"The monthly limit field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden"
}
Received response:
Request failed with error:
Transaction
List
requires authentication
Use this end point to get the list of transactions
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/transactions?per_page=2&search=incidunt&sort_field=et&sort_method=quo&page=15&type=2¤cy_type=3&user_id=10&created_at=suscipit&created_at_from=at&created_at_to=id" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Transaction list",
"data": {
"transactions": {
"current_page": 1,
"data": [
{
"id": 1,
"user_id": 1,
"type": 10,
"description": "Initital Balance",
"currency_type": 20,
"value": 200,
"created_by": 2,
"updated_by": 2,
"created_at": "2021-07-07T07:40:25.000000Z",
"updated_at": "2021-07-07T07:40:25.000000Z",
"currency_type_name": "Credits",
"type_name": "Admin",
"user": {
"id": 1,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala",
"is_adult": 1,
"phone": "9925738146",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-07T07:33:20.000000Z",
"updated_at": "2021-07-07T07:40:25.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 200,
"available_bucks": 0,
"available_credits": 200,
"open_bucks": 0,
"open_credits": 0
},
"added_by": {
"id": 2,
"username": "admin",
"email": "admin@bettorfantasy.com"
}
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=¤cy_type=&user_id=&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=¤cy_type=&user_id=&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=¤cy_type=&user_id=&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/transactions",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"currency_type": [
"The selected currency type is invalid."
]
}
}
Received response:
Request failed with error:
Store
requires authentication
Use this end point to store a transaction
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/transactions/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"user_id":7,"type":20,"currency_type":14,"value":4,"description":"deleniti"}'
Example response (201):
{
"message": "Transaction stored successfully",
"data": {
"bucks": 0,
"credits": -150,
"available_bucks": 0,
"available_credits": -250,
"open_bucks": 0,
"open_credits": 100
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"user_id": [
"The user id field is required."
],
"type": [
"The type field is required."
],
"currency_type": [
"The currency type field is required."
],
"value": [
"The value field is required."
]
}
}
Example response (404):
{
"message": "User not found"
}
Received response:
Request failed with error:
Admin Notes Store
requires authentication
Use this end point to store a admin added notes
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/transactions/admin-notes-store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"user_id":9,"note":"qui"}'
Example response (201):
{
"message": "Notes Added successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"user_id": [
"The user id field is required."
],
"note": [
"The note field is required."
]
}
}
Example response (404):
{
"message": "User not found"
}
Received response:
Request failed with error:
Notes List
requires authentication
Use this end point to get the list of transactions
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/transactions/admin-notes?per_page=6&search=omnis&sort_field=assumenda&sort_method=voluptatem&page=13&type=10¤cy_type=13&user_id=1&created_at=voluptatum&created_at_from=accusamus&created_at_to=adipisci" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Notes List",
"data": {
"transactions": {
"current_page": 1,
"data": [
{
"id": 1,
"user_id": 1,
"type": 10,
"description": "Initital Balance",
"currency_type": 20,
"value": 200,
"created_by": 2,
"updated_by": 2,
"created_at": "2021-07-07T07:40:25.000000Z",
"updated_at": "2021-07-07T07:40:25.000000Z",
"currency_type_name": "Credits",
"type_name": "Admin",
"user": {
"id": 1,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala",
"is_adult": 1,
"phone": "9925738146",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-07T07:33:20.000000Z",
"updated_at": "2021-07-07T07:40:25.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 200,
"available_bucks": 0,
"available_credits": 200,
"open_bucks": 0,
"open_credits": 0
},
"added_by": {
"id": 2,
"username": "admin",
"email": "admin@bettorfantasy.com"
}
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=¤cy_type=&user_id=&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=¤cy_type=&user_id=&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=¤cy_type=&user_id=&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/transactions",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"currency_type": [
"The selected currency type is invalid."
]
}
}
Received response:
Request failed with error:
Store
requires authentication
Use this end point to store a transaction
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/process-1099/update-status" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"user_id":11,"year":7,"w_nine_status":11,"one_zero_nine_nine_status":13}'
Example response (201):
{
"message": "Status Updated!",
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"user_id": [
"The user id field is required."
],
}
}
Example response (404):
{
"message": "User not found"
}
Received response:
Request failed with error:
Trivia
List
requires authentication
Use this end point to get the list of trivias
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/trivias?per_page=8&search=sit&sort_field=nobis&sort_method=ea&page=13&is_active=11&is_used=4" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Trivia list",
"data": {
"trivias": {
"current_page": 1,
"data": [
{
"id": 2,
"question": "What planet has rings?",
"options": [
"Earth",
"Jupiter",
"Saturn"
],
"answer": 2,
"is_active": 1,
"is_used": 0,
"created_by": 2,
"updated_by": 2,
"created_at": "2021-07-16T04:51:32.000000Z",
"updated_at": "2021-07-16T04:51:32.000000Z",
"answer_value": "Saturn"
},
{
"id": 1,
"question": "What is name of our panet?",
"options": [
"Earth",
"Jupiter"
],
"answer": 0,
"is_active": 1,
"is_used": 0,
"created_by": 2,
"updated_by": 2,
"created_at": "2021-07-16T04:51:03.000000Z",
"updated_at": "2021-07-16T04:51:03.000000Z",
"answer_value": "Earth"
}
],
"first_page_url": "http:\/\/127.0.0.1:8000\/trivias?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/127.0.0.1:8000\/trivias?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/127.0.0.1:8000\/trivias?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/127.0.0.1:8000\/trivias",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Received response:
Request failed with error:
Show
requires authentication
Use this end point to view trivia.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/trivias/6" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Trivia details",
"data": {
"trivia": {
"id": 12,
"question": "What planet has rings?",
"options": [
"Mercury",
"Venus",
"Saturn"
],
"answer": 2,
"is_active": 0,
"is_used": 0,
"created_by": 2,
"updated_by": 2,
"created_at": "2021-07-16T04:36:20.000000Z",
"updated_at": "2021-07-16T04:47:31.000000Z",
"answer_value": "Saturn"
}
}
}
Example response (404):
{
"message": "Trivia not found"
}
Received response:
Request failed with error:
Create
requires authentication
Use this end point to create trivias.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/trivias/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"question":"porro","options":["et","vel"],"answer":1,"is_active":12}'
Example response (201):
{
"message": "Trivia created successfully",
"data": {
"trivia": {
"id": 12,
"question": "What is name of our panet?",
"options": [
"Earth",
"Jupiter"
],
"answer": 0,
"is_active": 1,
"is_used": 0,
"created_by": 2,
"updated_by": 2,
"created_at": "2021-07-16T04:36:20.000000Z",
"updated_at": "2021-07-16T04:36:20.000000Z",
"answer_value": "Earth"
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"question": [
"The question field is required."
],
"options": [
"The options field is required."
],
"answer": [
"The answer field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update trivia.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/trivias/13/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"question":"asperiores","options":["neque","laudantium"],"answer":14,"is_active":6}'
Example response (200):
{
"message": "Trivia updated successfully",
"data": {
"trivia": {
"id": 14,
"question": "What planet has rings?",
"options": [
"Mercury",
"Venus",
"Saturn"
],
"answer": 2,
"is_active": 1,
"is_used": 0,
"created_by": 2,
"updated_by": 2,
"created_at": "2021-07-16T04:42:32.000000Z",
"updated_at": "2021-07-16T04:44:02.000000Z",
"answer_value": "Saturn"
}
}
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"question": [
"The question field is required."
],
"options": [
"The options field is required."
],
"answer": [
"The answer field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (404):
{
"message": "Trivia not found"
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete trivias(s).
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/trivias/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"ids":[6,1]}'
Example response (200):
{
"message": "Trivias deleted successfully"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"ids": [
"The ids field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Change Status
requires authentication
Use this end point to change status of trivias(s).
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/trivias/change-status" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"ids":[18,13],"is_active":13}'
Example response (200):
{
"message": "Status changed successfully"
}
Example response (422):
{
"message": "Validation Failed.",
"errors": {
"ids": [
"The ids field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Tutorial
Get Unique Onboarding ID
Use this end point to get unique onboarding ID
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/tutorial/get-unique-onboarding-id" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Onboarding step logged successfully!",
"data": {
"unique_onboarding_id" : "9871cdef-1c93-4dce-86ab-a4968e385247",
}
}
Received response:
Request failed with error:
Updated Onboarding
Validate
requires authentication
Use this end point to validate email, username, password, phone
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/validate" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"saepe","username":"culpa","password":"quidem","phone":"dicta"}'
Example response (200):
{
"message": "Validated"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"email": [
"The email has already been taken."
]
}
}
Received response:
Request failed with error:
Sign In
Use this end point to sign in.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/sign-in" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"john_does@yopmail.com","password":"Ems016@2020","platform":"1001","fcm_token":"safsadfasjff4sdfsd5f9+s8fs+ad62fdf6+8fas"}'
Example response (200, Sign in successfull):
{
"message": "Sign in successfull",
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC8xMjcuMC4wLjE6ODAwMFwvc2lnbi1pbiIsImlhdCI6MTYyNTU0ODI1MiwiZXhwIjoxNjU3MDg0MjUyLCJuYmYiOjE2MjU1NDgyNTIsImp0aSI6IlVPY05MY0F4N3FFRHQ3TkMiLCJzdWIiOjMsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.bwfzZR9m8TFO-xksIAWC9zQIROaEBt3y40eD2vY5Bew",
"token_type": "bearer",
"expires_in": 31536000,
"user": {
"id": 3,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala",
"is_adult": 1,
"phone": "9925738146",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-06T04:46:13.000000Z",
"updated_at": "2021-07-06T05:10:35.000000Z",
"is_active": 1,
"bucks": 150,
"available_bucks": 30,
"open_bucks": 120,
"credits": 200,
"available_credits": 0,
"open_credits": 200,
"referral_code": "37d1c636-fca4-4701-90c7-366ed0b14c36",
"fcm_token": "adasjfsdfjpoi kpkg pqkt'65s6f sad6fsd4f ",
"state": {
"id": 3,
"code": "AZ",
"name": "Arizona"
},
"role": {
"id": 2,
"name": "User"
},
"leagues": [
{
"id": 2,
"name": "Twenty Nine June 2021",
"sleeper_league_id": 715469520269045760,
"pivot": {
"user_id": 3,
"sleeper_league_id": 715469520269045760,
"is_active": 1,
"sleeper_username": "tahasethwala",
"fantasy_point_type": 30,
"created_at": "2021-07-06T04:47:28.000000Z",
"updated_at": "2021-07-06T04:47:28.000000Z",
"fantasy_point_type_name": "Half PPR"
}
}
],
"foundations": []
}
}
}
Example response (422, Account locked):
{
"message": "Please enter required information",
"errors": {
"general": [
"This account has been locked. Please contact our support team if you have any questions."
]
}
}
Example response (422, Incorrect password):
{
"message": "Please enter required information",
"errors": {
"password": [
"Incorrect password"
]
}
}
Example response (422, This email does not match an account):
{
"message": "Please enter required information",
"errors": {
"email": [
"This email does not match an account"
]
}
}
Example response (400, Self Exclusion Applies):
{
"message": "Validations",
"error_box": {
"heading": "Self Exclusion Applies",
"message": "You are unable to take this action because of self exclusion restrictions placed on this account.",
"cta": "Return",
"color": "Blue",
"cta_type": "Return"
}
}
Received response:
Request failed with error:
Sign In Phone
Use this endpoint to initiate phone-based sign in. A 6-digit OTP will be sent to the provided phone number via SMS. Use the Verify Account endpoint to complete sign in by submitting the received OTP.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/sign-in-phone" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"phone":"9925738146","otp_signature":"FtSl93sVi2G"}'
Example response (201, OTP sent successfully):
{
"message": "Verification code sent."
}
Example response (404, User not found):
{
"message": "User not found"
}
Example response (422, Validation failed):
{
"message": "Please enter required information",
"errors": {
"phone": [
"The phone field is required."
]
}
}
Example response (422, Phone not registered):
{
"message": "Please enter required information",
"errors": {
"phone": [
"The selected phone is invalid."
]
}
}
Received response:
Request failed with error:
Sign In Phone - Verify OTP
Use this endpoint to verify the OTP received via SMS and complete phone-based sign in. This is step 2 of the phone sign in flow (step 1 is Sign In Phone). On success, returns a JWT access token and full user data.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/sign-in-verify-code" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"phone":"9925738146","otp":"482910","fcm_token":"safsadfasjff4sdfsd5f9+s8fs+ad62fdf6+8fas"}'
Example response (200, Sign in successful):
{
"message": "Sign in successfull",
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"token_type": "bearer",
"expires_in": 31536000,
"user": {
"id": 3,
"email": "john_doe@yopmail.com",
"username": "johndoe",
"is_adult": 1,
"phone": "9925738146",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 1,
"created_at": "2021-07-06T04:46:13.000000Z",
"updated_at": "2021-07-06T05:10:35.000000Z",
"is_active": 1,
"bucks": 150,
"credits": 200,
"available_bucks": 30,
"available_credits": 0,
"referral_code": "37d1c636-fca4-4701-90c7-366ed0b14c36",
"role": {
"id": 2,
"name": "User"
},
"state": {
"id": 3,
"code": "AZ",
"name": "Arizona"
},
"leagues": [],
"foundations": [],
"kyc": {
"kyc_status_id": null,
"is_kyc_locked": 0,
"kyc_lock_remark": null,
"kyc_first_name": null,
"kyc_last_name": null,
"kyc_dob": null,
"kyc_street_address": null,
"kyc_full_address": null,
"kyc_state_id": null,
"kyc_city": null,
"kyc_zip": null,
"kyc_address_place_id": null,
"kyc_attempts": 0
}
}
}
}
Example response (422, Validation failed):
{
"message": "Please enter required information",
"errors": {
"phone": [
"The phone field is required."
],
"otp": [
"The otp field is required."
]
}
}
Example response (422, Phone not matched):
{
"message": "Please enter required information",
"errors": {
"phone": [
"This phone does not match an account"
]
}
}
Example response (422, Account locked):
{
"message": "Please enter required information",
"errors": {
"general": [
"This account has been locked. Please contact our support team if you have any questions."
]
}
}
Example response (422, Invalid OTP):
{
"message": "Please enter required information",
"errors": {
"otp": [
"Invalid code. Please try again."
]
}
}
Example response (400, Self Exclusion Applies):
{
"message": "Validations",
"error_box": {
"heading": "Self Exclusion Applies",
"message": "You are unable to take this action because of self exclusion restrictions placed on this account.",
"cta": "Return",
"color": "Blue",
"cta_type": "Return"
}
}
Received response:
Request failed with error:
Sign In Resend Verification Code
Use this end point to resend the verification code (OTP)
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/sign-in/resend-verification-code" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"phone":"9925738146","otp_signature":"FtSl93sVi2G"}'
Example response (200):
{
"message": "Verification code sent!"
}
Example response (404):
{
"message": "User not found!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"phone": [
"The phone field is required."
]
}
}
Received response:
Request failed with error:
Resend Verification Code
Use this end point to resend the verification code (OTP)
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/v2/resend-verification-code" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"molestias","type":"nostrum","otp_signature":"reprehenderit"}'
Example response (200):
{
"message": "Verification code sent!"
}
Example response (404):
{
"message": "Email is not registered!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"email": [
"The email field is required."
],
"type": [
"The type field is required."
]
}
}
Received response:
Request failed with error:
User Management
Verify Email Manually
requires authentication
Use this end point to get verify the users email manually
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/admin/user/email-verify-manually" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":17}'
Example response (200):
{
"message": "User account is already verified!"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"id": [
"The id field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of users
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/users?per_page=20&search=dicta&sort_field=ipsa&sort_method=rerum&page=10&is_email_verified=11&is_unclaimed_funds=13&is_unclaimed_funds_due_diligence_conducted=1&is_unclaimed_funds_delivered_to_treasurer=8&is_active=3&role_id=13" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Users list",
"data": {
"users": {
"current_page": 1,
"data": [
{
"id": 5,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala",
"is_adult": 1,
"phone": "9925738146",
"avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": "2021-07-05 10:39:15",
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-05T10:38:53.000000Z",
"updated_at": "2021-07-05T10:39:15.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 21,
"code": "MD",
"name": "Maryland"
},
"role": {
"id": 2,
"name": "User"
},
"leagues": [
{
"id": 3,
"name": "Jignesh's Team",
"sleeper_league_id": 706054541405143040,
"pivot": {
"user_id": 5,
"sleeper_league_id": 706054541405143040,
"is_active": 1,
"sleeper_username": "tahasethwala",
"fantasy_point_type": 30,
"created_at": "2021-07-05T10:40:04.000000Z",
"updated_at": "2021-07-05T14:42:26.000000Z",
"fantasy_point_type_name": "Half PPR"
}
}
],
"foundations": [
{
"id": 3,
"name": "Matthew Stafford",
"about": "We help the underserved become self-reliant by partnering with individuals, organizations and communities to help develop their capacity for helping.",
"logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Matthew-Stafford-1625462151.png",
"pivot": {
"user_id": 5,
"foundation_id": 3,
"created_at": "2021-07-05T10:40:10.000000Z",
"updated_at": "2021-07-05T10:40:10.000000Z"
}
}
]
},
{
"id": 4,
"email": "swati@elegantmicroweb.com",
"username": "Swati",
"is_adult": 1,
"phone": "85134545156",
"avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": "2021-07-05 05:19:49",
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-05T05:19:31.000000Z",
"updated_at": "2021-07-05T05:19:49.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 10,
"code": "FL",
"name": "Florida"
},
"role": {
"id": 2,
"name": "User"
},
"leagues": [
{
"id": 2,
"name": "Twenty Nine June 2021",
"sleeper_league_id": 715469520269045760,
"pivot": {
"user_id": 4,
"sleeper_league_id": 715469520269045760,
"is_active": 1,
"sleeper_username": "tahasethwala",
"fantasy_point_type": 30,
"created_at": "2021-07-05T05:20:24.000000Z",
"updated_at": "2021-07-05T05:20:24.000000Z",
"fantasy_point_type_name": "Half PPR"
}
},
{
"id": 5,
"name": "ABC Football",
"sleeper_league_id": 710679964625772544,
"pivot": {
"user_id": 4,
"sleeper_league_id": 710679964625772544,
"is_active": 1,
"sleeper_username": "sahildotcom",
"fantasy_point_type": 30,
"created_at": "2021-07-05T11:25:38.000000Z",
"updated_at": "2021-07-05T11:25:38.000000Z",
"fantasy_point_type_name": "Half PPR"
}
}
],
"foundations": [
{
"id": 1,
"name": "Patrick Mahomes",
"about": "Dedicated to improving the lives of children. The foundation supports initiatives that focus on health, wellness, and communities in need.",
"logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Patrick-Mahomes-1625462101.png",
"pivot": {
"user_id": 4,
"foundation_id": 1,
"created_at": "2021-07-05T05:20:34.000000Z",
"updated_at": "2021-07-05T05:20:34.000000Z"
}
}
]
},
{
"id": 3,
"email": "admin@bettorfantasy.com",
"username": "admin",
"is_adult": 1,
"phone": "123",
"avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-05T05:13:32.000000Z",
"updated_at": "2021-07-05T05:13:32.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 3,
"code": "AZ",
"name": "Arizona"
},
"role": {
"id": 1,
"name": "Admin"
},
"leagues": [],
"foundations": []
}
],
"first_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users",
"per_page": 3,
"prev_page_url": null,
"to": 3,
"total": 3
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
Deleted users
requires authentication
Use this end point to get the list of deleted users
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/deleted-users?per_page=17&search=accusantium&sort_field=at&sort_method=impedit&page=4" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
Dismiss Winnings Popup
requires authentication
Use this end point to dismiss the winnings popup after it has been shown to the user. (GET)
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/users/dismiss-winnings-popup" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Winnings popup dismissed successfully."
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Show
requires authentication
Use this end point to view user details.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/users/3" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "User details",
"data": {
"user": {
"id": 4,
"email": "swati@elegantmicroweb.com",
"username": "Swati",
"is_adult": 1,
"phone": "85134545156",
"avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": "2021-07-05 05:19:49",
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-05T05:19:31.000000Z",
"updated_at": "2021-07-05T05:19:49.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 10,
"code": "FL",
"name": "Florida"
},
"role": {
"id": 2,
"name": "User"
},
"leagues": [
{
"id": 2,
"name": "Twenty Nine June 2021",
"sleeper_league_id": 715469520269045760,
"pivot": {
"user_id": 4,
"sleeper_league_id": 715469520269045760,
"is_active": 1,
"sleeper_username": "tahasethwala",
"fantasy_point_type": 30,
"created_at": "2021-07-05T05:20:24.000000Z",
"updated_at": "2021-07-05T05:20:24.000000Z",
"fantasy_point_type_name": "Half PPR"
}
},
{
"id": 5,
"name": "ABC Football",
"sleeper_league_id": 710679964625772544,
"pivot": {
"user_id": 4,
"sleeper_league_id": 710679964625772544,
"is_active": 1,
"sleeper_username": "sahildotcom",
"fantasy_point_type": 30,
"created_at": "2021-07-05T11:25:38.000000Z",
"updated_at": "2021-07-05T11:25:38.000000Z",
"fantasy_point_type_name": "Half PPR"
}
}
],
"foundations": [
{
"id": 1,
"name": "Patrick Mahomes",
"about": "Dedicated to improving the lives of children. The foundation supports initiatives that focus on health, wellness, and communities in need.",
"logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Patrick-Mahomes-1625462101.png",
"pivot": {
"user_id": 4,
"foundation_id": 1,
"created_at": "2021-07-05T05:20:34.000000Z",
"updated_at": "2021-07-05T05:20:34.000000Z"
}
}
]
}
}
}
Example response (404):
{
"message": "User not found!"
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
Create
requires authentication
Use this end point to create user.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/store" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-F "is_adult=20" \
-F "email=dolorum" \
-F "username=eum" \
-F "password=debitis" \
-F "password_confirmation=qui" \
-F "phone=consectetur" \
-F "state_id=1" \
-F "role_id=9" \
-F "is_active=4" \
-F "flag_feature_bettorlive=19" \
-F "avatar=@/tmp/php6XqtuC"
Example response (201):
{
"message": "User created successfull.",
"data": {
"user": {
"id": 19,
"email": "tahasethwala@yahoo.com",
"username": "tahayahoo1",
"is_adult": 1,
"phone": "83209706101",
"avatar": null,
"is_email_verified": 1,
"is_phone_verified": 1,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-06-10T14:10:27.000000Z",
"updated_at": "2021-06-10T14:10:27.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 1,
"code": "AK",
"name": "Alaska"
},
"role": {
"id": 1,
"name": "Admin"
},
"leagues": [],
"foundations": [],
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"is_adult": [
"The is adult field is required."
],
"email": [
"The email field is required."
],
"username": [
"The username field is required."
],
"password": [
"The password field is required."
],
"phone": [
"The phone field is required."
],
"state_id": [
"The state id field is required."
],
"role_id": [
"The role id field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
Update
requires authentication
Use this end point to update user details.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/11/update" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-F "is_adult=7" \
-F "email=aut" \
-F "username=iste" \
-F "password=eaque" \
-F "password_confirmation=alias" \
-F "phone=saepe" \
-F "state_id=7" \
-F "role_id=2" \
-F "is_active=5" \
-F "flag_feature_bettorlive=14" \
-F "is_kyc_locked=8" \
-F "kyc_lock_remark=nihil" \
-F "avatar=@/tmp/phpuKAWkF"
Example response (200):
{
"message": "User updated successfully",
"data": {
"user": {
"id": 1,
"email": "admin@bettorfantasy.com",
"username": "tahasethwala",
"is_adult": 1,
"phone": "212",
"avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
"is_email_verified": 0,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": "2021-06-14 13:34:32",
"created_at": "2021-06-11T05:15:46.000000Z",
"updated_at": "2021-06-21T09:34:41.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 1,
"code": "AK",
"name": "Alaska"
},
"role": {
"id": 1,
"name": "Admin"
},
"leagues": [
{
"id": 1,
"name": "Taha's League",
"sleeper_league_id": 706045922735390720,
"pivot": {
"user_id": 1,
"league_id": 1,
"is_active": 1,
"sleeper_username": null,
"fantasy_point_type": 10,
"created_at": "2021-06-18T05:47:07.000000Z",
"updated_at": "2021-06-21T09:28:52.000000Z",
"fantasy_point_type_name": "Non PPR"
}
},
{
"id": 2,
"name": "Jignesh's Team",
"sleeper_league_id": 706054541405143040,
"pivot": {
"user_id": 1,
"league_id": 2,
"is_active": 1,
"sleeper_username": "tahagmail",
"fantasy_point_type": 10,
"created_at": "2021-06-18T05:47:20.000000Z",
"updated_at": "2021-06-21T09:28:52.000000Z",
"fantasy_point_type_name": "Non PPR"
}
}
],
"foundations": [
{
"id": 2,
"name": "Player Foundation 2",
"about": "Player Foundation Bio 2",
"logo": "http:\/\/127.0.0.1:8000\/foundation-logos\/Player-Foundation-2-1622641523.jpg",
"pivot": {
"user_id": 1,
"foundation_id": 2,
"created_at": null,
"updated_at": null
}
}
]
}
}
}
Example response (422):
{
"message": "Validation Failed.",
"errors": {
"is_adult": [
"The is adult field is required."
],
"email": [
"The email field is required."
],
"username": [
"The username field is required."
],
"phone": [
"The phone field is required."
],
"state_id": [
"The state id field is required."
],
"role_id": [
"The role id field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (404):
{
"message": "User not found!"
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
Update Unclaimed Funds Checklist
requires authentication
Use this end point to update user's unclaimed funds checklist.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/1/unclaimed-funds-checklist" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"is_unclaimed_funds_due_diligence_conducted":1,"is_unclaimed_funds_delivered_to_treasurer":1}'
Example response (200):
{
"message": "Checklist updated successfully!"
}
Example response (422):
{
"message": "Validation Failed.",
"errors": {
"is_unclaimed_funds_due_diligence_conducted": [
"The is unclaimed funds due diligence conducted field is required."
],
}
}
Example response (404):
{
"message": "User not found!"
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
Delete
requires authentication
Use this end point to delete user(s).
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/delete" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"ids":[4,2]}'
Example response (200):
{
"message": "User deleted successfully!"
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"ids": [
"The ids field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
Change Status
requires authentication
Use this end point to change status of user(s).
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/change-status" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"ids":[15,9],"is_active":19}'
Example response (200):
{
"message": "Status changed successfully"
}
Example response (422):
{
"message": "Validation Failed.",
"errors": {
"ids": [
"The ids field is required."
],
"is_active": [
"The active\/inactive field is required"
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Sync Charity
requires authentication
Use this end point to sync user's charity.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/4/sync-foundations" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"ids":[13,20]}'
Example response (200):
{
"message": "Foundations synced."
}
Example response (422):
{
"message": "Validation Failed.",
"errors": {
"ids": [
"The selected ids is invalid."
]
}
}
Example response (404):
{
"message": "User not found."
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Verify Account Manually
requires authentication
Use this end point to get verify the users account manually
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/verify-account-manually" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":9}'
Example response (200):
{
"message": "User account verified successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"id": [
"The id field is required."
]
}
}
Example response (403):
{
"message": "Access Forbidden!"
}
Received response:
Request failed with error:
Disabled Scoring Notice Message
requires authentication
Use this end point to disabled scoring notice message of user(s).
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/disable-scoring-notice-message" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"is_scoring_notice_dsa":15}'
Example response (200):
{
"message": "Scoring notice message disabled successfully"
}
Example response (422):
{
"message": "Validation Failed.",
"errors": {
"is_scoring_notice_dsa": [
"The is scoring notice dsa field is required."
]
}
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Update Enjoying FS Status
requires authentication
Use this end point to update enjoying fs status of user(s).
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/update-enjoying-fs-status" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"enjoying_fs_status":"sint"}'
Example response (200):
{
"message": "Enjoying fs status updated successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"enjoying_fs_status": [
"The selected enjoying fs status is invalid.."
]
}
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Add Free Roll Credits
requires authentication
Use this end point to add free roll credits to users account.
Example request:
curl -X POST \
"https://apiqa.bettorfantasy.com/users/add/free-roll-credits" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"user_id":14,"value":11}'
Example response (200):
{
"message": "Added free roll credits to user account successfully"
}
Example response (422):
{
"message": "Please enter required information",
"errors": {
"user_id": [
"The user id field is required."
],
"type": [
"The type field is required."
]
}
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
Disabled Team Position Contest Popup
requires authentication
Use this end point to disabled team position contest popup of user(s).
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/users/disable/team-position-popup" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"do_not_show_team_position_popup":14}'
Example response (200):
{
"message": "Team position contest popup updated successfully"
}
Example response (422):
{
"message": "Validation Failed.",
"errors": {
"do_not_show_team_position_popup": [
"The do not show team position popup field is required."
]
}
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error:
List
requires authentication
Use this end point to get the list of users
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/process-1099/index?per_page=11&search=eaque&sort_field=nostrum&sort_method=dolorum&page=8&is_active=11&year=20&role_id=17" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "Users list",
"data": {
"users": {
"current_page": 1,
"data": [
{
"id": 5,
"email": "taha@elegantmicroweb.com",
"username": "tahasethwala",
"is_adult": 1,
"phone": "9925738146",
"avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": "2021-07-05 10:39:15",
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-05T10:38:53.000000Z",
"updated_at": "2021-07-05T10:39:15.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 21,
"code": "MD",
"name": "Maryland"
},
"role": {
"id": 2,
"name": "User"
},
"leagues": [
{
"id": 3,
"name": "Jignesh's Team",
"sleeper_league_id": 706054541405143040,
"pivot": {
"user_id": 5,
"sleeper_league_id": 706054541405143040,
"is_active": 1,
"sleeper_username": "tahasethwala",
"fantasy_point_type": 30,
"created_at": "2021-07-05T10:40:04.000000Z",
"updated_at": "2021-07-05T14:42:26.000000Z",
"fantasy_point_type_name": "Half PPR"
}
}
],
"foundations": [
{
"id": 3,
"name": "Matthew Stafford",
"about": "We help the underserved become self-reliant by partnering with individuals, organizations and communities to help develop their capacity for helping.",
"logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Matthew-Stafford-1625462151.png",
"pivot": {
"user_id": 5,
"foundation_id": 3,
"created_at": "2021-07-05T10:40:10.000000Z",
"updated_at": "2021-07-05T10:40:10.000000Z"
}
}
]
},
{
"id": 4,
"email": "swati@elegantmicroweb.com",
"username": "Swati",
"is_adult": 1,
"phone": "85134545156",
"avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": "2021-07-05 05:19:49",
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-05T05:19:31.000000Z",
"updated_at": "2021-07-05T05:19:49.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 10,
"code": "FL",
"name": "Florida"
},
"role": {
"id": 2,
"name": "User"
},
"leagues": [
{
"id": 2,
"name": "Twenty Nine June 2021",
"sleeper_league_id": 715469520269045760,
"pivot": {
"user_id": 4,
"sleeper_league_id": 715469520269045760,
"is_active": 1,
"sleeper_username": "tahasethwala",
"fantasy_point_type": 30,
"created_at": "2021-07-05T05:20:24.000000Z",
"updated_at": "2021-07-05T05:20:24.000000Z",
"fantasy_point_type_name": "Half PPR"
}
},
{
"id": 5,
"name": "ABC Football",
"sleeper_league_id": 710679964625772544,
"pivot": {
"user_id": 4,
"sleeper_league_id": 710679964625772544,
"is_active": 1,
"sleeper_username": "sahildotcom",
"fantasy_point_type": 30,
"created_at": "2021-07-05T11:25:38.000000Z",
"updated_at": "2021-07-05T11:25:38.000000Z",
"fantasy_point_type_name": "Half PPR"
}
}
],
"foundations": [
{
"id": 1,
"name": "Patrick Mahomes",
"about": "Dedicated to improving the lives of children. The foundation supports initiatives that focus on health, wellness, and communities in need.",
"logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Patrick-Mahomes-1625462101.png",
"pivot": {
"user_id": 4,
"foundation_id": 1,
"created_at": "2021-07-05T05:20:34.000000Z",
"updated_at": "2021-07-05T05:20:34.000000Z"
}
}
]
},
{
"id": 3,
"email": "admin@bettorfantasy.com",
"username": "admin",
"is_adult": 1,
"phone": "123",
"avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
"is_email_verified": 1,
"is_phone_verified": 0,
"email_verified_date_time": null,
"phone_verified_date_time": null,
"password_last_changed_date_time": null,
"created_at": "2021-07-05T05:13:32.000000Z",
"updated_at": "2021-07-05T05:13:32.000000Z",
"is_active": 1,
"bucks": 0,
"credits": 0,
"available_bucks": 0,
"available_credits": 0,
"open_bucks": 0,
"open_credits": 0,
"state": {
"id": 3,
"code": "AZ",
"name": "Arizona"
},
"role": {
"id": 1,
"name": "Admin"
},
"leagues": [],
"foundations": []
}
],
"first_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users",
"per_page": 3,
"prev_page_url": null,
"to": 3,
"total": 3
}
}
}
Example response (422):
{
"message": "Validation Failed!",
"errors": {
"per_page": [
"The per page must be a number."
]
}
}
Example response (403):
{
"message": "Access Forbidden."
}
Received response:
Request failed with error:
User Streak
User Streak List
requires authentication
Use this end point to get User Streaks.
Example request:
curl -X GET \
-G "https://apiqa.bettorfantasy.com/user-streaks/list" \
-H "Authorization: Bearer {YOUR_AUTH_KEY}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response (200):
{
"message": "User Streaks",
"data": {
"current_streak": 0,
"weekly_streak": [
{
"day": "M",
"played": true
},
{
"day": "T",
"played": false
},
{
"day": "W",
"played": false
},
{
"day": "T",
"played": false
},
{
"day": "F",
"played": false
},
{
"day": "S",
"played": false
},
{
"day": "S",
"played": false
}
]
}
}
Example response (404):
{
"message": "User not found!"
}
Received response:
Request failed with error: