# Categories List

List categories available in a Nana store.

- Platform: [Nana Express](https://docs.upscrape.com/docs/platforms/nana)
- Capability ID: `nana.categories.list`
- 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 YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "store_id": "STR00002232"
  },
  "capability": "nana.categories.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `store_id` | `string` | Yes | Known Nana store ID supplied by the caller; this temporary release does not dynamically resolve store IDs. |

### Example input

```json
{
  "store_id": "STR00002232"
}
```

## 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
{
  "categories": [
    {
      "children": [
        {
          "id": "COL2065829044",
          "name": "Minced Meat",
          "product_count": 2
        },
        {
          "id": "COL3303748058",
          "name": "Boneless Meat",
          "product_count": 8
        },
        {
          "id": "COL6485448451",
          "name": "Bone-in Meat",
          "product_count": 8
        }
      ],
      "id": "COL7214322072",
      "image": "https://storage.googleapis.com/catalog-pim/misc/fb012fd2-6181-420c-8326-6716c320482c.png",
      "name": "Chilled Meat"
    },
    {
      "children": [
        {
          "id": "COL3926903428",
          "image": "https://storage.googleapis.com/catalog-pim/misc/012c7446-d595-40d3-adec-b94d8f4fb6c8.png",
          "name": "Flavoured Water",
          "product_count": 2
        },
        {
          "id": "COL5382064033",
          "image": "https://storage.googleapis.com/catalog-pim/misc/f9fd2e4c-c9d2-440b-82f1-7d154a492f55.png",
          "name": "Sparkling Water",
          "product_count": 11
        },
        {
          "id": "COL5879282482",
          "image": "https://storage.googleapis.com/catalog-pim/misc/b8be7b11-4514-4c37-95a3-bbc6890a1d50.png",
          "name": "Mineral Water",
          "product_count": 13
        }
      ],
      "id": "COL1139197048",
      "image": "https://storage.googleapis.com/catalog-pim/misc/7c4f6918-d1af-4784-b629-463f8d0a8c95.jpg",
      "name": "Water & Ice",
      "product_count": 39
    },
    {
      "children": [
        {
          "id": "COL8999711492",
          "name": "Basmati Rice",
          "product_count": 67
        },
        {
          "id": "COL1100958934",
          "name": "Assorted Rice",
          "product_count": 10
        },
        {
          "id": "COL1600616172",
          "name": "Pasta",
          "product_count": 120
        }
      ],
      "id": "COL6082763880",
      "image": "https://storage.googleapis.com/catalog-pim/misc/3543e0d6-7d0c-45bb-b276-2d657f52114f.png",
      "name": "Rice, Pasta & Grains",
      "product_count": 129
    }
  ]
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `categories` | `array` | 3 items |
| `categories` | `array` | 3 items |

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