# Officeworks Availability API Documentation

<p><strong>Officeworks Availability API Documentation</strong> Get stock for one sku at a store and postcode: click and collect, in store and delivery to door, with quantities, dates and the store record. 1 credit per request. Failed requests are never billed.</p>

- **Documentation:** [https://scrappa.co/docs/officeworks-api/officeworks_availability](https://scrappa.co/docs/officeworks-api/officeworks_availability)
- **API group:** Officeworks API
- **Endpoint:** `GET https://scrappa.co/api/officeworks/availability`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `sku` | string | Yes | Sku from a live search |
| `storeId` | string | No | Store id, e.g. W251 |
| `postcode` | string | No | Four digit postcode, e.g. 2000 |

## Example response

```json
{
    "data": {
        "availability": {
            "sku": "HPD90S3PA",
            "store": {
                "id": "W251",
                "name": "Officeworks Melbourne",
                "state": "VIC",
                "status": "OPEN",
                "postcode": "3000"
            },
            "ranged": {
                "online": true,
                "inStore": true
            },
            "inStore": {
                "quantity": 5,
                "available": true
            },
            "productType": "PRODUCT",
            "deliverToDoor": {
                "quantity": 9,
                "available": true
            },
            "clickAndCollect": {
                "quantity": 5,
                "available": true,
                "available_date": null,
                "quick_collect_available": true,
                "relative_available_date": null
            }
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "graphql_availability"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | Supply a valid sku from a live search. Failed requests are not billed. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
