# Resolve location

Resolve a Blinkit delivery point from a pincode, place name or coordinates and check serviceability.

- Platform: [Blinkit](https://docs.upscrape.com/docs/platforms/blinkit)
- Capability ID: `blinkit.location`
- Cost: 1 credit per request
- Maximum runtime: 60 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "pincode": "560102"
  },
  "capability": "blinkit.location"
}'
```

## Input

Choose exactly one location: pincode, a place name in query, or both latitude and longitude. This endpoint uses query; the catalog endpoints use location_query.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `latitude` | `number` | No | Latitude of the delivery address. From -90 to 90. |
| `longitude` | `number` | No | Longitude of the delivery address. From -180 to 180. |
| `pincode` | `string` | No | Six-digit Indian pincode; surrounding whitespace is allowed and trimmed. Do not combine with coordinates. |
| `query` | `string` | No | Free-text Indian place, locality, city, address, or pincode to resolve. |

### Example input

```json
{
  "pincode": "560102"
}
```

## Response

Successful output is returned in `results[0].data`.

Keep serviceability separate from product availability. The resolved point and merchant IDs describe that delivery point, not every address in its pincode.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "city": "Bengaluru",
  "latitude": 12.911862,
  "locality": "HSR Layout",
  "location_info": {
    "city": "Bengaluru",
    "country": "India",
    "district": "Bangalore Division",
    "formatted_address": "4th Cross Rd, Sector 5, HSR Layout, Bengaluru, Karnataka 560102, India",
    "locality": "HSR Layout",
    "postal_code": "560102",
    "state": "Karnataka"
  },
  "longitude": 77.6445923,
  "merchant_id": "40589",
  "merchants": [
    {
      "fulfillment_types": [
        "instant"
      ],
      "id": "35940"
    },
    {
      "fulfillment_types": [
        "express"
      ],
      "id": "40589"
    },
    {
      "fulfillment_types": [
        "longtail"
      ],
      "id": "42814"
    }
  ],
  "resolution": "pincode_representative_point",
  "serviceable": true
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `city` | `string` | Bengaluru |
| `latitude` | `number` | 12.911862 |
| `locality` | `string` | HSR Layout |
| `location_info` | `object` | 7 fields |
| `location_info.city` | `string` | Bengaluru |
| `location_info.country` | `string` | India |
| `location_info.district` | `string` | Bangalore Division |
| `location_info.formatted_address` | `string` | 4th Cross Rd, Sector 5, HSR Layout, Bengaluru, Karnataka 560102, India |
| `location_info.locality` | `string` | HSR Layout |
| `location_info.postal_code` | `string` | 560102 |
| `location_info.state` | `string` | Karnataka |
| `longitude` | `number` | 77.6445923 |
| `merchant_id` | `string` | 40589 |
| `merchants` | `array` | 3 items |
| `merchants` | `array` | 3 items |
| `resolution` | `string` | pincode_representative_point |
| `serviceable` | `boolean` | true |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
