Skip to main content
POST
/
findDeals
Find available deals
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/findDeals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sort_order": "invited",
  "invited_only": "No",
  "school_specific": "No",
  "filterByMinPrice": 100,
  "filterByMaxPrice": 10000,
  "filterCategory": [],
  "filterByLocation": null,
  "filterByPaymentMode": null,
  "filterByJobTitle": [],
  "filterByLatLong": [],
  "filterByDistanceInMiles": 25,
  "allow_private": "Y",
  "job_id": 1,
  "serviceId": 1,
  "type": "All",
  "athlt_university_id": 1
}
'

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Query Parameters

page
integer

Page number

Example:

1

limit
integer

Items per page

Example:

10

page_limit
integer

Alias for limit

Example:

10

Body

application/json
sort_order
enum<string> | null
Available options:
name_asc,
name_desc,
pay_high,
pay_low,
invited,
recommended,
location_nearest
Example:

"invited"

invited_only
enum<string> | null
Available options:
Yes,
No
Example:

"No"

school_specific
enum<string> | null
Available options:
Yes,
No
Example:

"No"

filterByMinPrice
number | null
Example:

100

filterByMaxPrice
number | null
Example:

10000

filterCategory
integer[] | null

Category IDs

Example:
[]
filterByLocation
string | null
Example:

null

filterByPaymentMode
enum<string> | null
Available options:
Cash,
Product
Example:

null

filterByJobTitle
string[] | null

Exact job title match

Example:
[]
filterByLatLong
number[] | null

[longitude, latitude]

Example:
[]
filterByDistanceInMiles
number | null
Example:

25

allow_private
string | null
Example:

"Y"

job_id
integer | null

Filter to a single job

Example:

1

serviceId
integer | null

Filter to a fan service request

Example:

1

type
string | null

Filter type

Example:

"All"

athlt_university_id
integer | null

Athlete university ID

Example:

1

Response

200

Available deals