1
Make a key
In the dashboard, open Developers, then API Keys, and press Add API Key. Name it after what will use it, tick the permissions that thing needs (for this page, Read products), and save.The key starts
shoply_sk_ and is shown once. It belongs where your server keeps its secrets, and nowhere a browser or a repository can read it.2
Ask the key what it is
A key is all you need to begin: it knows which store it belongs to.The answer names the key, its permissions, and the store with its ID.
api is where that store’s routes begin.3
Read your products
data is the list. Each product has its variants, and each variant its ID, price and how many license keys it has in stock.Next
Add stock
Send a variant its license keys.
Hear about paid orders
Add a webhook for
order.paid instead of asking.Raise an invoice
Make an order for a buyer and get the page to pay it on.
Send a change safely
Make a retry do nothing twice.

