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

# Conventions

> Environments, identifiers, errors, pagination, idempotency, rate limits, and versioning.

## Environments

| Environment | Base URL |
| - | - |
| Production | `https://api.lulacommerce.com/v1` |
| Sandbox | `https://sandbox.api.lulacommerce.com/v1` |

The sandbox mirrors production behavior with sample stores and a simulated order stream. Channel pushes in the sandbox are simulated, so nothing reaches a live marketplace.

## Identifiers

* **Stores** have a Lula `id`. You can also address a store by your own store number with the `ext:` prefix, for example `/stores/ext:0142`.
* **Products and items** are addressed by your `external_id` (SKU, item code, or UPC). You never need to store Lula product IDs.
* **Everything else** (orders, jobs, events) uses prefixed IDs such as `ord_`, `job_`, `evt_`.

## Money and time

* Money is an object with an integer `amount` in minor units and a `currency`: `{ "amount": 249, "currency": "USD" }` is \$2.49.
* Timestamps are ISO 8601 in UTC. Store hours are local to the store's `timezone`.

## Errors

Errors return a consistent body:

```json theme={null}
{
  "error": {
    "type": "invalid_request",
    "code": "unknown_external_id",
    "message": "No product with external_id 028400090999.",
    "request_id": "req_01J9ZS2B6C8D",
    "details": [{ "field": "external_ids[0]", "message": "not found" }]
  }
}
```

| Status | Type |
| - | - |
| 400, 422 | `invalid_request` |
| 401 | `authentication_error` |
| 403 | `permission_error` |
| 404 | `not_found` |
| 409 | `conflict` |
| 429 | `rate_limited` |
| 5xx | `server_error` |

Include `request_id` when contacting support.

## Pagination

List endpoints are cursor-paginated. Pass `limit` (up to 500) and the `next_cursor` from the previous response as `cursor`. Continue while `has_more` is `true`.

## Idempotency

Send an `Idempotency-Key` header (a UUID works well) on any `POST` or `PATCH`. Repeating a request with the same key within 24 hours returns the original result instead of applying the change twice, so retries after a timeout are always safe.

## Rate limits

| Endpoint group | Limit per credential |
| - | - |
| Availability and store item updates | 1,200 requests per minute |
| All other endpoints | 600 requests per minute |

Every response includes `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset` headers. When limited, you receive `429` with a `Retry-After` header. For high-volume changes, prefer the batch endpoints, which accept up to 5,000 items per request.

## Versioning

The major version is in the path (`/v1`). Within a version, Lula only makes additive changes: new endpoints, new optional fields, new enum values, and new event types. Build clients that ignore unknown fields and values. Breaking changes ship as a new major version, with at least 12 months of overlap.


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