# Product detail

Refresh a Ocado product by its ID or official URL with published shelf prices, unit prices and offers.

- Platform: [Ocado](https://docs.upscrape.com/docs/platforms/ocado)
- Capability ID: `ocado.product.detail.get`
- 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": {
    "product_id": "606356011"
  },
  "capability": "ocado.product.detail.get"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `product_id` | `string` | No | Product identifier. |
| `url` | `string` | No | Official Ocado product URL. |

### Example input

```json
{
  "product_id": "606356011"
}
```

## 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
{
  "product": {
    "available": true,
    "brand": "Arla",
    "gtin": null,
    "image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/eeab8dca-610d-4f2f-8e42-31e353192a13/300x300.jpg",
    "member_prices": [],
    "name": "Arla BOB Semi-Skimmed Milk that Tastes like Whole",
    "pack_size": "2L",
    "price": {
      "amount": 2.5,
      "currency": "GBP"
    },
    "promotions": [
      {
        "buy_quantity": 2,
        "description": "Buy any 2 for £4",
        "end": "2026-10-06",
        "for_price": {
          "amount": 4,
          "currency": "GBP"
        },
        "id": "706e4ca7-e9da-4100-82b5-75107fa08a98",
        "start": null,
        "type": "multibuy"
      }
    ],
    "retailer_product_id": "606356011",
    "unit_price": {
      "amount": 1.25,
      "currency": "GBP",
      "unit": "per_litre"
    },
    "url": "https://www.ocado.com/products/arla-bob-semi-skimmed-milk-that-tastes-like-whole/606356011"
  }
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `product` | `object` | 12 fields |
| `product.available` | `boolean` | true |
| `product.brand` | `string` | Arla |
| `product.gtin` | `null` | null |
| `product.image` | `string` | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/ee… |
| `product.member_prices` | `array` | 0 items |
| `product.name` | `string` | Arla BOB Semi-Skimmed Milk that Tastes like Whole |
| `product.pack_size` | `string` | 2L |
| `product.price` | `object` | 2 fields |
| `product.promotions` | `array` | 1 items |
| `product.retailer_product_id` | `string` | 606356011 |
| `product.unit_price` | `object` | 3 fields |
| `product.url` | `string` | https://www.ocado.com/products/arla-bob-semi-skimmed-milk-that-tastes-l… |

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