Environments
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 theext: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
amountin minor units and acurrency:{ "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:
Include
request_id when contacting support.
Pagination
List endpoints are cursor-paginated. Passlimit (up to 500) and the next_cursor from the previous response as cursor. Continue while has_more is true.
Idempotency
Send anIdempotency-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
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.
