Find available deals
Returns the deals available to the caller. *
- Agent behaviour (ENG-1380): when an agent calls this without
athlete_id, the response - covers the whole linked roster instead of one athlete. Every deal card then carries
applied_countandlinked_count, and a deal is excluded once every linked athlete has- an application on it. The exclusion is applied before pagination, so
total_countand the - page windows already account for it.
linked_countcounts every current agent_athletes relationship, approved or not;- outstanding invitations are not links.
applied_countcounts the distinct linked athletes - with an application on that deal, whether the athlete applied for themselves or the agent
- applied for them. Linking a new athlete raises
linked_countagain and brings a - previously excluded deal back automatically. With an empty roster nothing is excluded so
- the agent can still browse.
- A private deal follows a narrower rule (ENG-1697), because only the athletes the brand
- invited were ever able to apply to it: it stays on the agent’s wall while any invited
- represented athlete still has an application to make, and leaves once the last of them has
- applied. The whole-roster rule above still governs public deals. Opening a card that has
- left Find Deals is unaffected:
/searchJobkeeps the deal open for an athlete who applied - or was hired.
- Passing
athlete_idkeeps the original single-athlete behaviour, which lets clients - migrate independently. Athlete, partner and fan behaviour is unchanged.
POST
Find available deals
Authorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Query Parameters
Page number
Example:
1
Items per page
Example:
10
Alias for limit
Example:
10
Body
application/json
Available options:
name_asc, name_desc, pay_high, pay_low, invited, recommended, location_nearest Example:
"invited"
Available options:
Yes, No Example:
"No"
Available options:
Yes, No Example:
"No"
Example:
100
Example:
10000
Category IDs
Example:
Example:
null
Available options:
Cash, Product Example:
null
Exact job title match
Example:
[longitude, latitude]
Example:
Example:
25
Example:
"Y"
Filter to a single job
Example:
1
Filter to a fan service request
Example:
1
Filter type
Example:
"All"
Athlete university ID
Example:
1
Agent only. Scopes the response to a single represented athlete. Omit to get the roster-wide agent response described above.
Example:
28550