> ## Documentation Index
> Fetch the complete documentation index at: https://platform.lulacommerce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pricebook sync

> Keep prices, quantities, and status in step with your pricebook as changes happen.

Lula can pull your catalog on a schedule through native back-office integrations. When your pricebook lives in your own system, or you want changes reflected the moment they happen, push them through the API instead. There is no limit on how often you push.

## Products and store items

* A **product** is a catalog entry shared by every store: name, brand, UPC, images, category. Lula enriches products with nutrition, allergen, and dietary attributes.
* A **store item** is a product at a specific store: price, quantity, and status.

Both are keyed by your `external_id`.

## Event-driven updates, one item at a time

When a single price or count changes, send just that change.

```bash theme={null}
curl -X PATCH https://api.lulacommerce.com/v1/stores/ext:0142/items/028400090858 \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "price": { "amount": 249, "currency": "USD" }, "quantity": 18 }'
```

The response returns the updated store item, including the final price on each channel after your channel pricing rules.

## Batch updates

For a price change across many items, or a nightly true-up, send up to 5,000 items in one request.

```bash theme={null}
curl -X POST https://api.lulacommerce.com/v1/stores/ext:0142/items/batch \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      { "external_id": "028400090858", "price": { "amount": 249, "currency": "USD" } },
      { "external_id": "028400090865", "quantity": 0 },
      { "external_id": "012000161155", "status": "inactive" }
    ]
  }'
```

Batch requests return a job. Poll `GET /jobs/{job_id}` or subscribe to `job.completed`. Items you leave out of a batch are never changed or removed.

## New products

Create or update catalog entries with `POST /products/batch`. Lula matches on `external_id` and fills in imagery and attributes from its product content partners where available.

## Channel pricing

You send one base price per store item. Your channel pricing rules, configured in the Lula dashboard, produce the final marketplace prices. `channel_prices` on each store item shows the result for every channel, so your systems always know what the customer sees.

## Recommended pattern

1. On each pricebook or POS event, send a `PATCH` for that item and store.
2. Once a day, send a batch for each store as a safety net.
3. Subscribe to `channel.sync_completed` to see items a marketplace rejected (for example, a missing image or a restricted category) and fix them at the source.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.