kfGetGeoInfo method

Future kfGetGeoInfo({
  1. required String pincode,
  2. required String userAuthToken,
})

Fetch geographic information for pincode via the partner geoinfo endpoint, authenticated with the merchant user's muToken userAuthToken.

Use this in standalone (kwikforms) mode, where getGeoInfo's access-token auth is unavailable. Returns the raw response body.

Implementation

Future<dynamic> kfGetGeoInfo({
  required String pincode,
  required String userAuthToken,
}) async {
  return await KwikFormsService.kfGetGeoInfo(
    pincode: pincode,
    userAuthToken: userAuthToken,
  );
}