# Product fulfillment

Read product listings, sellability, serving stores and ETA for a PIN, distinguishing local listings from national catalog presence.

- Platform: [JioMart](https://docs.upscrape.com/docs/platforms/jiomart)
- Capability ID: `jiomart.fulfillment.get`
- Cost: 1 credit per request
- Maximum runtime: 30 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": "560001",
    "product_id": "7511070"
  },
  "capability": "jiomart.fulfillment.get"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `location` | `object` | No |  |
| `location.city` | `string` | No | City name. |
| `location.latitude` | `string` | No | Latitude in decimal degrees. |
| `location.longitude` | `string` | No | Longitude in decimal degrees. |
| `location.pincode` | `string` | No | Postal code (PIN) that sets the delivery location. |
| `location.state` | `string` | No | State or region name. |
| `pincode` | `string` | No | Postal code (PIN) that sets the delivery location. |
| `product_id` | `string` | No | Product identifier. |
| `slug` | `string` | No | Slug from the page URL. |
| `url` | `string` | No | Public URL of the page to fetch. |

### Example input

```json
{
  "pincode": "560001",
  "product_id": "7511070"
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "availability_flags": {
    "kirana_1p": true,
    "kirana_3p": false,
    "rrl_fc": true,
    "rrl_store": true,
    "seller_3p": true
  },
  "delivery_message": "Delivery in 28 mins",
  "delivery_slots": [],
  "eta_minutes": 28,
  "fulfiller": {
    "id": "2147",
    "name": "Reliance Retail Limited (400710)",
    "number": "3PEGURHKFC01"
  },
  "fulfillment_metadata_scope": "national_catalog",
  "inventory_count": null,
  "journey": "quickcommerce",
  "listed": true,
  "pincode": "560001",
  "product_id": "7511070",
  "quick_delivery_tagged": true,
  "sellable": true,
  "serviceable": true,
  "slug": "india-gate-super-basmati-rice-1-kg-mffmvi-7511070",
  "store_ids": [
    "27608"
  ],
  "store_open": null
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `availability_flags` | `object` | 5 fields |
| `availability_flags.kirana_1p` | `boolean` | true |
| `availability_flags.kirana_3p` | `boolean` | false |
| `availability_flags.rrl_fc` | `boolean` | true |
| `availability_flags.rrl_store` | `boolean` | true |
| `availability_flags.seller_3p` | `boolean` | true |
| `delivery_message` | `string` | Delivery in 28 mins |
| `delivery_slots` | `array` | 0 items |
| `eta_minutes` | `integer` | 28 |
| `fulfiller` | `object` | 3 fields |
| `fulfiller.id` | `string` | 2147 |
| `fulfiller.name` | `string` | Reliance Retail Limited (400710) |
| `fulfiller.number` | `string` | 3PEGURHKFC01 |
| `fulfillment_metadata_scope` | `string` | national_catalog |
| `inventory_count` | `null` | null |
| `journey` | `string` | quickcommerce |
| `listed` | `boolean` | true |
| `pincode` | `string` | 560001 |
| `product_id` | `string` | 7511070 |
| `quick_delivery_tagged` | `boolean` | true |
| `sellable` | `boolean` | true |
| `serviceable` | `boolean` | true |
| `slug` | `string` | india-gate-super-basmati-rice-1-kg-mffmvi-7511070 |
| `store_ids` | `array` | 1 items |
| `store_ids` | `array` | 1 items |
| `store_open` | `null` | null |

## 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)
