Get Offer
#
DetailsThis endpoint returns an offer based on the ID provided.
URL : /offers/:offerId
Method :
GET
Authentication
Auth is required to get hidden Offers. Only Admins or owners of hidden Offers will see them if isHidden
is set
to true
. Otherwise, if in god mode, god_token must be provided.
#
Parameters#
god_tokenBody Parameter
Optional
String
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).
#
Request examples#
Example 1 - Valid RequestCode :
200 OK
- Request
- Response
#
Example 2 - Blocked Offer (Logged-in as Admin)Code :
200 OK
- Request
- Response
#
Example 3 - Blocked Offer (Logged-in as Company)Code :
200 OK
- Request
- Response
#
Example 4 - Non-Existing OfferCode :
404 NOT FOUND
- Request
- Response
#
Example 5 - Invalid IDCode :
422 UNPROCESSABLE ENTITY
- Request
- Response