Skip to content
EN

How to deliver unique license keys on ecwid

Updated By Keysender Team

Short answerOn Ecwid, its help on digital products covers file downloads and does not describe a unique license key per order. So key stores deliver from outside the product. An order webhook reports each new order, and a delivery service assigns one unused key from your stock and emails it to the buyer.
Key takeaways
  • Ecwid's digital products are files, the same for every buyer.
  • Unique keys need an outside delivery step driven by order webhooks.
  • Ecwid retries a failed webhook for a day, so a short outage does not lose an order.
  • The API allows a fixed number of requests per minute per token.
  • Assign each key once, so a repeated webhook never sends a second one.

A key leaving a store for a buyer, representing unique license key delivery for each Ecwid order

Ecwid is a quick way to open a store, and its digital products deliver files well. A license key, game code or gift card is different: each buyer needs their own, and no key may ever go out twice. This guide explains how stores deliver unique keys on Ecwid and what to build in so it works every time.

Can Ecwid deliver a unique key per order?

Ecwid's own help does not cover it: its help on digital products covers file downloads and does not describe a unique license key per order. Ecwid's digital products attach files to a product, and every buyer of that product gets the same files. For how file products work and what plan they need, see selling digital products on Ecwid.

How does unique key delivery work on Ecwid?

  1. Keep keys outside Ecwid, in a stock pool that knows which keys are unused.
  2. Listen for orders. Ecwid sends order.created when a new order is placed and order.updated when any order data changes.
  3. Check the order is paid before delivering. An order can be created before payment completes.
  4. Assign one unused key and mark it used at once.
  5. Email the key to the buyer and record the dispatch.
  6. Update the order in Ecwid, so you and the buyer both see it was fulfilled.

What if a webhook fails?

Ecwid retries: up to 27 more attempts over the next 24 hours, starting 15 minutes after a failure. So a short outage on the receiving side does not lose orders, but a long one can. Retries also mean the same order can arrive more than once, which is why step 4 matters: a key already assigned to an order is never assigned again.

How many API calls can a key store make?

Ecwid's API allows up to 600 requests per minute per token, and over that a 429 error with a Retry-After header. Order delivery needs only a few calls per order. Stock and price syncs for big catalogs are what use the budget, so send only changes and respect the Retry-After header.

What else should a key store on Ecwid do?

Where does Keysender fit?

Keysender connects to Ecwid and does this delivery for you: one unique key, code or file per paid order, branded emails and a dispatch log, from a stock pool shared with your other channels. See Keysender for Ecwid.

Sources and last checks

  • Unique key per order: its help on digital products covers file downloads and does not describe a unique license key per order (support.ecwid.com, checked )
  • Order webhooks: order.created when a new order is placed and order.updated when any order data changes (docs.ecwid.com, checked )
  • Webhook retries: up to 27 more attempts over the next 24 hours, starting 15 minutes after a failure (docs.ecwid.com, checked )
  • REST API rate limit: up to 600 requests per minute per token, and over that a 429 error with a Retry-After header (docs.ecwid.com, checked )

Quick answers

Can Ecwid send a different license key to each buyer?

Ecwid's own help does not cover it: its help on digital products covers file downloads and does not describe a unique license key per order. Stores deliver keys with an outside service that listens to Ecwid's order webhooks.

Does Ecwid retry failed webhooks?

Yes. Ecwid makes up to 27 more attempts over the next 24 hours, starting 15 minutes after a failure.

What is the Ecwid API rate limit?

Ecwid's API allows up to 600 requests per minute per token, and over that a 429 error with a Retry-After header.

Tonight's orders can deliver themselves.

Set up in minutes. 20 free credits, no card.

Rather talk it through? Talk to us