# Get product offers

Return product offers and purchase benefits with their stated conditions.

- Platform: [Flipkart Commerce](https://docs.upscrape.com/docs/platforms/flipkart)
- Capability ID: `flipkart.product.offers`
- Cost: 1 credit per request
- Maximum runtime: 45 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": {
    "include_promoted": true,
    "url": "https://www.flipkart.com/apple-iphone-16-black-128-gb/p/itmb07d67f995271?pid=MOBH4DQFG8NKFRDY"
  },
  "capability": "flipkart.product.offers"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `include_promoted` | `boolean` | No |  |
| `max_pages` | `integer` | No | Maximum number of result pages to fetch. From 1 to 100. |
| `page` | `integer` | No | One-based result page to fetch. From 1 to 1000. |
| `product_id` | `string` | No | Flipkart product id (pid), e.g. MOBGTAGPYYWZRUJX; used when url is not given |
| `url` | `string` | No | Public URL of the page to fetch. |

### Example input

```json
{
  "include_promoted": true,
  "url": "https://www.flipkart.com/apple-iphone-16-black-128-gb/p/itmb07d67f995271?pid=MOBH4DQFG8NKFRDY"
}
```

## 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
{
  "end_page": 1,
  "has_more": false,
  "offers": [
    {
      "benefit": "₹2,995 off",
      "cashback": true,
      "currency": "INR",
      "description": "Flipkart Axis. Credit Card. ₹2,995 off. Cashback offer. Cashback will be credited to your card/bank account after the return period ends.. Valid till Dec 15, 2026, 11:59 PM and until stock lasts.",
      "discount_amount": 2995,
      "is_sponsored": false,
      "offer_id": "nb:mp:08y7h5wl15",
      "offer_type": "bank_offer",
      "payment_method": "Credit Card",
      "provider": "Flipkart Axis",
      "valid_until": "2026-12-15"
    },
    {
      "benefit": "₹2,995 off",
      "cashback": true,
      "currency": "INR",
      "description": "Flipkart SBI. Credit Card. ₹2,995 off. Cashback offer. Cashback will be credited to your card/bank account after the return period ends.. Valid till Sep 30, 2026, 11:59 PM and until stock lasts.",
      "discount_amount": 2995,
      "is_sponsored": false,
      "offer_id": "nb:mp:08b6a9af01",
      "offer_type": "bank_offer",
      "payment_method": "Credit Card",
      "provider": "Flipkart SBI",
      "valid_until": "2026-09-30"
    },
    {
      "benefit": "₹10 off",
      "cashback": true,
      "currency": "INR",
      "description": "BHIM. UPI. ₹10 off. Cashback offer. Cashback will be credited to your card/bank account after the return period ends.. Valid till Oct 7, 2026, 11:59 PM and until stock lasts.",
      "discount_amount": 10,
      "is_sponsored": false,
      "offer_id": "nb:mp:080ke49j23",
      "offer_type": "bank_offer",
      "payment_method": "UPI",
      "provider": "BHIM",
      "valid_until": "2026-10-07"
    }
  ],
  "pages_fetched": 1,
  "product_id": "MOBGTAGPYYWZRUJX",
  "start_page": 1
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `end_page` | `integer` | 1 |
| `has_more` | `boolean` | false |
| `offers` | `array` | 3 items |
| `offers` | `array` | 3 items |
| `pages_fetched` | `integer` | 1 |
| `product_id` | `string` | MOBGTAGPYYWZRUJX |
| `start_page` | `integer` | 1 |

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