Run your own Lightning store
The store API needs a paid plan: Agentic Commerce ($49/month) or Business (contact us). The Free Producer Sandbox doesn't include it. View pricing
The Lightning Enable store is a storefront that sells print-on-demand merchandise for Lightning payments, to people and to AI agents. You can run your own copy of it, with your own catalog, your own Printful account, and your own Lightning Enable account. Buyers pay Lightning invoices that your payment provider settles; Lightning Enable does not hold funds.
The storefront app is a separate, self-hosted application. Lightning Enable stores its data (orders, custom-product designs, quotes, listings, and community submissions) through the store API on this page. Setup guides for the storefront app itself are coming.
How your data is kept separate
Every store record belongs to one Lightning Enable account. When your storefront calls the store API with your API key, it reads and writes only your records:
- Another account's order, design, quote, artwork job or submission answers
404 Not Found, whether you look it up by id, payment hash, claim token or idempotency key. - Order ids, design ids, idempotency keys and claim tokens only need to be unique within your account.
- Lightning payment hashes are unique across all accounts, because a payment hash identifies one Lightning payment. Binding a hash that is already in use returns
409 payment_hash_in_use.
Authenticate
Send your merchant API key in the X-API-Key header, the same key you use for POST /api/payments:
curl https://api.lightningenable.com/api/store-orders/ord_123 \
-H "X-API-Key: YOUR_API_KEY"
The store API covers these route prefixes:
| Prefix | What it stores |
|---|---|
/api/store-orders | Catalog and custom-product orders, and each order's timeline |
/api/store-designs | Custom-product designs, artwork versions, mockups and artwork jobs |
/api/store-quotes | Custom-product price quotes |
/api/store-settings | Your store settings: design fee, pricing, publishing rules and offered catalog |
/api/store-listings | Published designs (listings) |
/api/community-submissions | Community design submissions |
An account on the Free Producer Sandbox gets 403 with "error": "plan_required". See Plan Required (store API).
The store API has its own rate budget of 600 requests per minute per API key, separate from the budget for your other API calls such as POST /api/payments. Over the budget, you get 429 Too Many Requests.
Design files
Community design files and previews that you upload through /api/community-submissions/{submissionId}/design-file and /preview are stored under your account, so another account's submission with the same id never shares your files. A submission id used with these routes can contain only A-Z, a-z, 0-9, _ and -. Deleting a submission deletes its files.
Published designs
A buyer's approved custom design can become a listing that other buyers purchase. Publishing is off until you turn it on with PUT /api/store-settings (publishingEnabled: true). The same settings control review (publishingRequiresReview, on by default), open listings per designer (maxPublishedPerDesigner, default 5), listing lifetime (listingExpiryDays, 0 = never expires), and the designer's share of each sale (designerRevenueSharePercent, 0 to 50).
- Request:
POST /api/store-designs/{designId}/publicationwith{"action": "request"}. Only anApproveddesign qualifies. With review on, it waits aspending_review. - Review or take down a listing: the same route with
{"action": "approve" | "reject", "reason": "...", "actor": "operator"}. The reason is required and is never shown on a listing. - Take down a design:
POST /api/store-designs/{designId}/moderation-rejectwith{"reason": "...", "actor": "operator"}. Its listing closes, open quotes are rejected, unpaid orders are cancelled, and paid orders not yet sent to Printful wait for your review. - Sell: buyers quote with
POST /api/store-quotesusinglistingIdinstead ofdesignId, then order withPOST /api/store-orders/custom. Each listing order keeps the revenue share in effect when its quote was made. You pay any designer share from your own payment provider account. - Browse:
GET /api/store-designslists your designs for an admin page;GET /api/store-listingsandGET /api/store-listings/{listingId}return listings. - A closed listing never reopens and answers
409 listing_not_available. TurningpublishingEnabledoff pauses every listing sale with the same error ("reason": "publishing_disabled") until you turn it back on. - Responses include each listing's
designId, which your storefront needs internally. Show buyers only thelistingId.
Payments and claims
Your storefront creates each Lightning invoice with POST /api/payments on your account, so payments settle into your payment provider account. When an invoice is paid, Lightning Enable moves only your own matching order to paid. Your storefront sends buyers their claim links; Lightning Enable sends no email to your buyers.