Check Concurrent Offers
Details#
This endpoint verifies if the company specified by companyId has reached the maximum of concurrent offers between two dates
URL : /company/:companyId/hasReachedMaxConcurrentOffersBetweenDates
Method :
Authentication
Auth is required to check concurrent offers as the Company or Admin. Otherwise, if in god mode, god_token must be provided.
Parameters#
god_token#
If set, will use this for validating the usage of god mode (in case no session details are available, i.e., no logged-in user).
publishDate#
The start date to consider when calculating the maximum concurrent offers.
publishEndDate#
The end date to consider when calculating the maximum concurrent offers. Must be after publishDate.
Response#
maxOffersReached#
Informs if the company has reached the maximum amount of concurrent offers between the specified dates.
Request examples#
Example 1 - Valid Request (max concurrent offers reached)#
Code :
- Request
- Response
Example 2 - Valid Request (max concurrent offers not reached)#
Code :
- Request
- Response
Example 3 - Non-Existing Company#
Code :
- Request
- Response
Example 4 - Logged-in as a Different Company#
Code :
- Request
- Response
Example 5 - publishEndDate before publishDate#
Code :
- Request
- Response