Your store, from your own server, with keys you scope and webhooks you can verify.
Every Novinzo store has an API and webhooks, at no charge: Novinzo has no monthly price, no paid plan and takes no percentage of a sale. Your server calls the same operations the dashboard uses with a store API key, such as listing orders, creating products, restocking keys or reading customers.
The store calls your server back in two ways. Event webhooks tell it that an order was paid or completed, a headless checkout ended, or a subscription changed. A product delivery webhook asks your server what to give the buyer for each paid order line. Every request is signed. The store API docs and the webhook docs have the details.
- 16
- event webhook endpoints per store
- 8
- retries at most, 5 by default
- 600
- API calls a minute per key or IP
Checked
Setting up a key and a webhook
Create a store API key
In Settings, open Developers and choose Create API key, with the Store API key type. Only the store owner can create or revoke keys.
Choose what it may do
Full access is everything you can do as the owner, except what no key can do. Teammate access is what a teammate can do, in the areas you choose: Products, Theme, Apps and Sales. Read only, with either, never changes anything.
Choose when it expires and copy it
30 days, 90 days, 1 year or Never. The key is shown once, so store it on your server.
Add a webhook endpoint
Under Event webhooks on the same page, choose Add endpoint, give an https URL, pick its events, and copy its signing secret, which starts with whsec_ and is shown once.
What the API and webhooks cover
- The store's own records
- Products, keys and stock, orders with their logs and refunds, customers, subscriptions, analytics, webhook endpoints, unpaid checkouts and the store itself.
- Apps through their own key
- Coupons, reviews, license key settings and affiliate links belong to apps. A store API key does not reach them: an App API key, granted the apps you choose, does. It lasts 7 to 365 days.
- Eight events to subscribe to
- Order paid, Order completed, Checkout completed, Checkout expired, Subscription started, Subscription renewed, Subscription past due and Subscription ended. The two Checkout events are sent only while the Headless checkout app is installed. Send test event sends a test to an endpoint.
- Signed and retried
- Each request carries a Novinzo-Signature header, an HMAC-SHA256 of the timestamp and the body. A failed attempt is retried after waits from 1 minute to 10 hours, up to 8 times as you set it; with the default of 5, the last try comes about seven and a half hours after the first.
- Delivery from your server
- A variant can use Deliver from your own server, under What the buyer gets. Once the order is paid, your server answers each order line with up to 1,000 lines of plain text, such as license keys, and the buyer gets them. Developers lists every variant delivered this way.
- Allowed sites for browser calls
- To let a page on your own site read the store's storefront API from the browser, add the site under Allowed sites in Developers. A store allows at most 20 sites.
What it does not do
- Some things stay in the dashboard
- No key manages the team, creates an API key or revokes a store API key, connects a payment provider, sets where crypto payouts go, uses the dashboard's agent, or creates a webhook endpoint. Those stay with the owner, signed in.
- No keys in the browser
- A key is a password for your store. The API refuses browser requests from other sites, so send the key only from your server.
- Thin event bodies
- An order or subscription event names the record and its new status. Read the rest through the API. Events can arrive more than once or out of order, so use the event id to drop duplicates.
Questions people ask
- Does Novinzo have an API?
- Yes. Every store has one, at no charge. Your server calls it at dashboard.novinzo.com/api/rpc with a store API key that acts on that one store only.
- How do I know when an order is paid?
- Add an event webhook endpoint and subscribe it to Order paid. It is sent once the payment is confirmed, and order events reach your endpoint within about a minute.
- Is there a rate limit?
- Yes. More than 600 calls in a minute with one key, or with any key from one IP address, are answered 429 with a Retry-After header.
- Can I deliver products from my own server?
- Yes. Set Deliver from your own server on the variant. Novinzo sends a signed request for each paid order line. A timeout, a failed connection or a 5xx answer is tried again, up to six attempts in all. A variant delivered this way has no other delivery. License keys and software are the usual cases.
- Can a teammate create API keys?
- No. Creating and revoking keys, and adding or changing webhook endpoints, are for the store owner. A key with Teammate access can only do what a teammate can.
Read on
More in Features
- License keysGenerate keys or sell your own, and let your software check them.
- ResellersLet other people sell your keys, on a balance or on credit.
- AffiliatesShare links that count clicks and orders for each partner.
- CouponsCodes and volume discounts, for the whole cart or chosen products.
- ReviewsStars and words from your buyers, with your reply beside them.
- Fraud protectionScores card and PayPal checkouts, and refuses risky ones once you say so.
- Custom domainsYour store on a domain of your own, with the certificate issued for you.
- Headless checkoutCreate checkouts from your own site and send buyers to pay.
- The agentAsk how, or have it prepare the change for you to approve.
