Get Offer

Details#

This 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_token#

Body 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 Request#

Code :

200 OK

/offers/62601cb7cb39d3001b3664d9

Example 2 - Blocked Offer (Logged-in as Admin)#

Code :

200 OK

/offers/62601cb7cb39d3001b3664d9

Example 3 - Blocked Offer (Logged-in as Company)#

Code :

200 OK

/offers/62601cb7cb39d3001b3664d9

Example 4 - Non-Existing Offer#

Code :

404 NOT FOUND

/offers/62601cb7cb39d3001b3664d9

Example 5 - Invalid ID#

Code :

422 UNPROCESSABLE ENTITY

/offers/invalid