@grabjs/superapp-sdk
    Preparing search index...

    Type Alias GetSelectedTravelDestinationResponse

    GetSelectedTravelDestinationResponse: BridgeResponse<
        200
        | 204
        | 500
        | 501,
        GetSelectedTravelDestinationResult,
    >

    Response when reading the selected travel destination lowercase ISO 3166-1 alpha-2 country code.

    This response can have the following status codes:

    • 200: The selected travel destination lowercase ISO 3166-1 alpha-2 country code was returned successfully.
    • 204: No selected travel destination is currently available.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.

    Success response (200):

    {
    status_code: 200,
    result: 'id'
    }

    No content response (204):

    {
    status_code: 204
    }

    Internal server error response (500):

    {
    status_code: 500,
    error: 'Internal server error'
    }

    Not implemented response (501) - outside Grab app:

    {
    status_code: 501,
    error: 'Not implemented: This method requires the Grab app environment'
    }