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

    Type Alias GetCountryCodeResponse

    GetCountryCodeResponse:
        | { status_code: 204 }
        | { error: string; status_code: 403 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }
        | { result: string; status_code: 200 }
        | { error: string; status_code: 424 }

    Response when getting the country code.

    This response can have the following status codes:

    • 200: Country code retrieved successfully. The result is the ISO country code string.
    • 204: No content - country code not available.
    • 403: Forbidden - client not authorized to access location data.
    • 424: GeoKit/Resolver error - location services unavailable.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.