Product Options API

This section contains the recommended flow for getting product options for products that have options on the VTpass RESTful API.

 

Authentication

Learn about authentication from here.

 

 

GET Product Options

Using a GET method, the product options for Aero service [for instance] can be accessed with the endpoint below:

Live:   https://api-service.vtpass.com/api/options?serviceID=aero&name=passenger_type

Sandbox: https://sandbox.vtpass.com/api/options?serviceID=aero&name=passenger_type

FIELDS Mandatory/Optional TYPE DESCRIPTION
serviceID M string Service ID as specified by VTpass. In this case, it is aero
name M string This refers to the option name as specified by VTpass. In this case, it is passenger_type. Other option name include trip_type.

 

EXPECTED RESPONSE

{
    "response_description": "000",
    "content": {
        "ServiceName": "Aero",
        "serviceID": "aero",
        "optionName": "passenger_type",
        "optionType": "MultipleSelect",
        "optionLabel": "Passenger Type",
        "options": {
            "adult": "Adult (18yrs and Above)",
            "child": "Child (3yrs to 19yrs)",
            "infant": "Infant (Below 3yrs)"
        }
    }
}

NOTE: The option name will definitely change to get product options for the same product/service