HotelRunner Requests

1- Get Account Eligibility

HotelRunner sends a request to your endpoint:

Request:

GET _YOUR_ENDPOINT_HOST/_YOUR_ENDPOINT_PATH

Content-Type: application/json

Parameters (Restful):

Key  Description
campaign_code  Plan code.
uid  UID (aka. tpidentifier).

Ex: https://yourdomain.com/getEligibility?uid=1234&campaign_code=plan-monthly

Response (JSON Response):

    {
        property_name: _PROPERTY_NAME_, 
        campaign_code: _CAMPAIGN_CODE_,
        uid: _UNIQUE_ID_,
        eligible: 1/0,
        contact_email: _PROPERTY_CONTACT_EMAIL
    }   

2- Push Campaign Credentials

HotelRunner sends required campaign credentials to the 3rd party.
Request:
POST _YOUR_ENDPOINT_HOST/_YOUR_ENDPOINT_PATH

Content-Type: application/json

Parameters(Restful):

Key  Description
hr_id  Unique HotelRunner Property Identifier.
token  Unique HotelRunner Property Token
uid  UniqueID which has been verified by 3rd party
permissions  Permissions (optional)
campaign_code  Plan code

Response:
Response must be:

    {
        status: 'ok'
    }