Check Concurrent Offers
#
DetailsThis 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_tokenIf set, will use this for validating the usage of god mode (in case no session details are available, i.e., no logged-in user).
#
publishDateThe start date to consider when calculating the maximum concurrent offers.
#
publishEndDateThe end date to consider when calculating the maximum concurrent offers. Must be after publishDate.
#
Response#
maxOffersReachedInforms 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 CompanyCode :
- Request
- Response
#
Example 4 - Logged-in as a Different CompanyCode :
- Request
- Response
#
Example 5 - publishEndDate before publishDateCode :
- Request
- Response