Add license keys
Adds license keys to a variant’s stock, up to 5,000 in one request. A variant holds up to 5,000 unsold keys and a store 100,000.
A key sent twice is stocked twice, which is how one key is sold to several buyers. duplicates in the answer counts the ones that matched stock the variant already had, so sending the same batch a second time by mistake shows.
Needs the stock.write permission (Change Stock).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Headers
A word of your own for this one change, up to 180 letters, digits, dots, dashes, underscores and colons. Sent again with the same key, the request is not carried out twice: the first answer comes back, with Idempotent-Replay: true.
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
The variant.
Body
The keys, one an entry, each up to 500 characters with no line break in it.

