Last modified:2026-11-13 07:18:36
x-auth:Bearer access token
x-called-from:when the customer confirms location during onboarding, and again when they take an advance.
x-details:body is `{ latitude, longitude, purpose }` (`lat` / `lng` also work). Latitude must be 6.0 to 38.0 and longitude 68.0 to 98.0. Outside that box → `422 validation_failed` with `Latitude must be between 6.0 and 38.0, and Longitude between 68.0 and 98.0 (India territorial boundaries).` The lookup does not run. `purpose` is `onboarding` or `advance`. `200` is `{ pincode, office, district, state, distanceMeters, serviceable: true }` only when the location pincode equals the pincode on the saved address and that pin is in `service_pincodes`. Google results leave `office` and `distanceMeters` empty. That success writes a `customer_geolocations` row for the purpose. If the address pincode is not supported, the application is rejected (`422 ineligible`) and nothing is stored. A pin mismatch → `422 validation_failed`. No pincode for the coordinates → `404 not_found`. Lookup down → `502 provider_failed`.
x-errors:[{"meaning":"unauthorized: Authorization required","status":401},{"meaning":"validation_failed: Please check the request and try again.","status":422}]
x-next:`GET /application/profile` to read the saved pin.
x-order:0
x-section:location
x-when:body is `{ latitude, longitude, purpose }` (`lat` / `lng` also work).