Skip to content

sandeepGenz/Trippers.US-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Docs and Reference | Trippers.us

An easy to use suite of APIs that offer recommendations for inclusive and relevant travel experiences, by Trippers.us | for IBC Hack at Sabre India

How it works

Drive revenue for your company and offer personalized, inclusive travel and tourism options for your users- here's how

  • Integrate our APIs: Simply feed the PNR generated upon booking, and receive a relevant set of tourist attractions and ancillaries.

  • Upsell better: Users are more likely to purchase relevant suggestions.

  • No user intervention; optional customization: All this, without explicitly asking the user for preferences, purely powered by PNR. However, you can also allow the user to handpick special service requests



Endpoints

Sign up

POST /api/v1/auth/signup

Request body

{
    "name": "XYTravels",
    "email": "xyz.official@xy.com",
    "password": "1234xyz"
}

Response

{
    "result": "Created successfully"
}

Login

POST /api/v1/auth/login

Request body

{
    "email": "xyz.official@xy.com",
    "password": "1234xyz"
}

Response

{
    "result": "<YOUR-AUTH-KEY>"
}

Get recommended attractions

POST /api/v1/getRecommendedAttractions

Request body

{
    "PNR": {
        "destination": "Bangalore",
        "passengerCategory": {
            "SRC": true
        }
    },
    "additionalSSR": {
        "lowSpiceFood": true,
        "MAAS": true
    }
}

Response

{
    "attractions": [
        {
            "name": "Vishnu Temple",
            "attractionType": "WORHSIP",
            "restaurantsNearby": 56,
            "attractionsNearby": 45
        }
    ]
}

Get recommended ancillaries

POST /api/v1/getRecommendedAncillaries

Request body

{
    "PNR": {
        "destination": "Bangalore",
        "passengerCategory": {
            "SRC": true
        }
    },
    "additionalSSR": {
        "lowSpiceFood": true,
        "MAAS": true
    }
}
Response
{
    "ancillaries": [
        {
            "price": "1800",
            "serviceCategory": [
                "WCHR",
                "SRC"
            ],
            "name": "Passport and visa services"
        },
        {
            "price": "200",
            "name": "Low spice food",
            "serviceCategory": [
                "SRC",
                "CHD"
            ]
        },
        {
            "serviceCategory": [
                "SRC",
                "WCHR",
                "CHD"
            ],
            "price": "900",
            "name": "Luggage transfer"
        },
        {
            "price": "1500",
            "serviceCategory": [
                "SRC",
                "WCHR"
            ],
            "name": "Tour guiding"
        },
        {
            "serviceCategory": [
                "WCHR",
                "CHD",
                "SRC"
            ],
            "name": "Restaurants and restrooms",
            "price": "400"
        },
        {
            "price": "100",
            "name": "Travel insurance",
            "serviceCategory": [
                "CHD",
                "WCHR",
                "SRC"
            ]
        },
        {
            "name": "Lounge access",
            "serviceCategory": [
                "WCHR",
                "SRC"
            ],
            "price": "1400"
        },
        {
            "name": "Amenity kit",
            "price": "600",
            "serviceCategory": [
                "SRC",
                "WCHR"
            ]
        },
        {
            "price": "1000",
            "serviceCategory": [
                "CHD",
                "SRC",
                "WCHR"
            ],
            "name": "Cab service"
        },
        {
            "name": "Meet and assist",
            "price": "2000",
            "serviceCategory": [
                "WCHR",
                "SRC"
            ]
        }
    ]
}

Fetch supported SSR flags

GET /api/v1/fetchSupportedSSRFlags

Response

{
    "SSRFlags": [
        "lowSpiceFood",
        "headphones",
        "MAAS",
        "veganFood",
        "vegFood",
        "wheelchair"
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published