novinzodevelopers
Resellers

Sell from your own website

Mint a key from the store you resell for at the moment your own customer pays, with no stock and nothing paid upfront.

A reseller does not need to buy keys in advance. The Resellers plugin keeps no stock: every purchase mints new keys from the store's key provider while the request is answered. With credit terms, the purchase does not need a prepaid balance either.

So your website can sell a key first and buy it afterwards. When your customer pays, your server places a purchase through the Reseller API. The response carries the minted key, which you deliver to your customer. The store bills what you bought on your next statement.

You need no Novinzo store of your own. The store you resell for runs the plugin, and your website talks to it. If you do sell on a Novinzo store, it can buy the keys for you instead. See Resell from your own Novinzo store.

What the seller sets up

The seller decides how much you can owe and which orders wait for them. These settings are in the Resellers plugin screen of their dashboard.

SettingWhereEffect on API orders
Credit limitSettings (default terms), Invites (custom credit terms), or the reseller's Profile under ResellersPurchases go through while balance plus credit limit covers them. 0 means prepaid only.
Ask me to approve orders overPricing tab (tier policy), or a reseller overrideA purchase above it waits for approval, so your customer gets no key until it is approved. For a sub-reseller, the upline that set their policy approves at that threshold.
Monthly purchase capPricing tab (tier policy), or a reseller overridePurchases past it are refused for the rest of the UTC month.
Max keys per orderPricing tab (tier policy), or a reseller overrideLarger purchases are refused.
Grace period, auto-suspendCredit terms, where the credit limit is setAn overdue statement blocks purchases; past auto-suspend, the account is suspended.

For instant delivery, leave Ask me to approve orders over empty or set it above any single order. An empty threshold never waits.

Set it up

Accept the seller's invite. It opens your reseller area at /dashboard/reselling.

Under API keys, create a key with the Manager role. Only a manager can buy keys; a support or viewer key is refused. Store the rsk_… secret on your server. It is shown once.

Call GET /storefront-public/api/v1/catalog to list what you can sell, with each SKU's skuId and your unitPriceMinor. Map your own products to those skuIds.

Optionally, add an endpoint under Webhooks to receive purchase.fulfilled. See Purchases that do not finish at once.

Every call goes to the domain of the store you resell for: its .mynovinzo.com subdomain or its custom domain.

https://<store domain>/plugins/resellers/storefront-public/api/v1/…
Authorization: Bearer rsk_…

One key works on every store your account resells for, unless you limited it to some of them. Amounts are integers in the store currency's minor units.

The whole API is described as an OpenAPI document, served without a key next to the endpoints:

curl "https://$STORE_DOMAIN/plugins/resellers/storefront-public/api/v1/openapi.json"

Import it into Postman, Insomnia or a client generator. The Reseller API reference shows the same document. Its examples fill the store domain with your-store.mynovinzo.com and ids with string: replace both before you send a request.

Buy the key when your customer pays

Place the purchase from your server once your own payment succeeds:

curl -X POST "https://$STORE_DOMAIN/plugins/resellers/storefront-public/api/v1/purchases" \
  -H "Authorization: Bearer $RESELLER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "idempotencyKey": "order-10482",
    "lines": [{ "skuId": "7d5c4a7e-1f0b-4c35-9a52-1b2f0e8d9c41", "quantity": 1 }],
    "note": null,
    "expectedTotalMinor": 1500
  }'
  • idempotencyKey is 8 to 100 characters of your choosing. Use your own order id. Keys are scoped to your membership in the store. Sending the same key again returns the purchase it created, so a retried payment webhook on your side never buys twice. The same key with different lines, note or tags is refused with 409 IdempotencyConflictError; expectedTotalMinor is not compared.
  • expectedTotalMinor is optional. Given, a purchase whose price changed since you quoted it is refused with 409 QuoteChangedError, carrying the new totalMinor, and nothing is held. POST /quote prices lines without buying.
  • A purchase holds at most 20 lines and 1000 keys.

A 200 answers with the purchase and its keys:

{
  "purchase": {
    "id": "…",
    "status": "fulfilled",
    "totalMinor": 1500,
    "chargedMinor": 1500,
    "…": "…"
  },
  "licenses": [
    { "id": "…", "code": "XXXX-XXXX-XXXX", "skuName": "Pro 30 days", "status": "unused", "…": "…" }
  ]
}

Deliver each license's code to your customer. The plugin emails you, never your customer.

Purchases that do not finish at once

Check purchase.status before you deliver:

StatusMeaningWhat to do
fulfilledEvery key was minted.Deliver the licenses.
processingThe key provider could not be reached. The funds stay held.Read GET /purchases/{purchaseId} again later. Reading it retries minting.
pending_approvalThe order is above the approval threshold.Wait for the approver. Read the purchase again, or wait for purchase.fulfilled.
partially_fulfilledSome lines were minted; failed lines were released and not charged.Deliver what was minted and refund or retry the rest. chargedMinor is what you pay.
failed, rejectedThe provider refused the order, or the seller declined it. Keys that were not minted are not charged.Tell your customer and refund them. chargedMinor is what you pay.

purchase.fulfilled is sent when a purchase ends fulfilled or partially_fulfilled. Its data carries purchaseId, status, keys, totalMinor and currency, not the keys themselves: read the purchase for them. Webhooks are signed in X-Novinzo-Signature with the same scheme as store webhooks, keyed with your endpoint's whsec_… secret.

A failed webhook delivery is retried when you next open the reseller area, not on a schedule. Do not rely on the webhook alone: poll purchases that are still processing or pending_approval.

Errors that refuse a purchase

Nothing is bought or held when a purchase is refused:

StatusErrorCause
402InsufficientFundsErrorBalance plus credit limit does not cover requiredMinor.
400InvalidRequestErrorThe request is malformed.
403PurchasesBlockedErroroverdue-statement: a statement is past its due date and grace period. Pay it to buy again. upline-unavailable: for a sub-reseller, a reseller you buy through is suspended, blocked or at its own monthly purchase limit. upline-insufficient-funds: for a sub-reseller whose own funds cover the order, a reseller you buy through does not have enough balance for it.
404ResourceNotFoundErrorSomething the request names was not found for your account.
409IdempotencyConflictErrorThe idempotency key names a purchase with different lines, note or tags.
409QuoteChangedErrorThe price differs from expectedTotalMinor.
422PurchaseNotAllowedErrorsku-unavailable, below-min-quantity, above-max-keys-per-order or monthly-cap.

Every endpoint can also fail authentication: 401 ApiKeyRejectedError for a key that is not live, 403 ApiKeyStoreNotAllowedError for a key limited to other stores, 403 NotResellerError, 403 MembershipSuspendedError, 403 PermissionDeniedError for a key whose role lacks the permission, 400 MissingStoreIdError and 500 UnexpectedError.

Treat these as "cannot deliver now". Do not charge your customer for a key you could not buy, or charge them only after the purchase succeeds.

After the sale

The rest of the API covers what your customers ask for later:

  • GET /me answers the account the key belongs to and its standing in this store.
  • GET /catalog gives each SKU its product's productStatus, as the provider describes it (key, label, a tone of success, warning, danger, info or neutral, and a message or null), or null when the provider gives none. A status is information only: it changes nothing you may buy. When publishesChangelog is true, GET /catalog/{productId}/changelog answers the provider's release notes for the product, newest first, at most 50, each with an id, a version or null, a title, a Markdown body and publishedAt. It answers not found for a product you cannot buy.
  • GET /keys and GET /keys/{licenseId} look keys up.
  • POST /keys/{licenseId}/actions/quote and POST /keys/{licenseId}/actions reset an HWID, extend, freeze, unfreeze, revoke, ban or unban a key, as the seller's policy allows. See Reset an HWID and other support actions.
  • GET /trials lists the provider products you can mint trial keys of, with each one's longest trial. POST /trials mints one from a connectionId, a productId and a note, which can be null but not left out. Optional minutes shortens the trial.
  • GET /balance, GET /ledger and the statement document show what you owe.

Each endpoint is listed with its schemas in the Reseller API reference.

Reset an HWID and other support actions

Support actions need a Manager or Support key. They apply to your own keys in this store; anyone else's key answers 404.

The path names a key by its id, a UUID, not by the code your customer has. A purchase answers each key's id in licenses[].id. To find it from a code, search your keys:

curl "https://$STORE_DOMAIN/plugins/resellers/storefront-public/api/v1/keys?q=$KEY_CODE" \
  -H "Authorization: Bearer $RESELLER_API_KEY"

q matches the start of a code, so the full code finds one key. Take its id from items.

Quoting an action tells you what it would cost without running it. It is refused for the same reasons running it would be, so it also tells you whether the action is allowed now:

curl -X POST "https://$STORE_DOMAIN/plugins/resellers/storefront-public/api/v1/keys/$LICENSE_ID/actions/quote" \
  -H "Authorization: Bearer $RESELLER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "_tag": "HwidReset" }'
{ "kind": "hwid_reset", "costMinor": 0, "refundMinor": 0 }

A quote changes nothing on the key. To reset the HWID, send the same body to /actions:

curl -X POST "https://$STORE_DOMAIN/plugins/resellers/storefront-public/api/v1/keys/$LICENSE_ID/actions" \
  -H "Authorization: Bearer $RESELLER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "_tag": "HwidReset" }'
{
  "action": {
    "id": "…",
    "kind": "hwid_reset",
    "status": "succeeded",
    "costMinor": 0,
    "error": null,
    "…": "…"
  },
  "license": { "id": "…", "code": "XXXX-XXXX-XXXX", "status": "active", "…": "…" }
}

The body's _tag names the action:

_tagOther fieldsEffect
HwidResetFrees the key's hardware binding.
Extendminutes: 1 to 5256000Adds time to the key.
FreezePauses the key's time.
UnfreezeResumes it.
RevokeEnds the key. Its quote's refundMinor is what you get back.
Banreason: why you ban itBlocks the key.
UnbanLifts the ban.

action.status is succeeded or failed, with the provider's reason in action.error. It is pending when the key provider did not answer: the action is asked again when the key is next read, and its charge stays held until then.

StatusErrorCause
400InvalidRequestErrorThe key is not in a state the action applies to, for example a lifetime key to extend.
403ActionNotAllowedErrorThe seller's policy does not allow this action.
429QuotaExceededErrorYou used this action's quota for the period and the seller set no overage price. limit, period and resetsAt say how many and until when. Past the quota with an overage price, the action is charged that price instead.
402InsufficientFundsErrorThe action is priced and your balance plus credit limit does not cover it. A quote is never refused for it.
403PurchasesBlockedErrorFor a sub-reseller: upline-unavailable when a reseller you buy through is suspended, upline-insufficient-funds when the action is priced, your funds cover it and theirs do not.
404ResourceNotFoundErrorNo key of yours in this store has this id.

Do not read a 200 from /actions/quote as a done action: only /actions runs it.

Find a purchase

GET /purchases lists your purchases in this store, newest first. It includes your own orders and what you pay for your sub-resellers' orders. Any key role can call it.

QueryMatches
q1 to 200 characters: the start of a purchase id, or part of its note or of a product name.
skuIdPurchases with a line of this SKU.
kindown for the orders you placed, whose keys are yours. resale for what you pay for sub-resellers' orders, whose keys are the buyer's.
subResellerIdWhat you pay for one direct sub-reseller's orders and those of anyone below them. Any other membership answers 404.
cursor, limitPaging. limit is 1 to 200. Pass the response's nextCursor to read the next page; it is null on the last page.

Search by your own order id with q when you put it in the purchase's note.

Retry a stuck purchase

A purchase stays processing while the key provider cannot be reached. POST /purchases/{purchaseId}/retry tries to mint what it still lacks and answers with the purchase and its keys, like GET /purchases/{purchaseId}.

It needs a Manager key. A purchase in any other status is refused with 409 PurchaseStateError, whose status field gives the purchase's current status.

Notes and tags on keys

Every key and purchase carries a note and a list of tags. Use them to group keys by batch, channel or customer, and to find them again with GET /keys?tag=<tag>.

CallEffect
tags on POST /purchasesGives every key the purchase mints these tags. The tags are part of what the idempotency key names.
PUT /keys/{licenseId}/annotationsReplaces one key's note (at most 500 characters, or null) and tags. Repeated tags are kept once.
POST /keys/tagsAdds and removes tags on up to 200 keys at once, leaving their notes alone. Every key changes or none does.
GET /keys/tagsLists the distinct tags on your keys with how many keys carry each, most used first, up to 500.

A tag is 1 to 32 characters after trimming, and a key carries at most 20. POST /keys/tags refuses a key that would pass 20 tags with 422 TagLimitExceededError, and a request that adds and removes the same tag, or names no tag, with 400 InvalidRequestError.

Annotating and tagging need a Manager or Support key. They apply only to your own keys in this store; anyone else's key answers 404. They are not support actions and cost nothing.

Reseller webhooks

The account owner adds webhook endpoints under Webhooks in the reseller area. Each endpoint has an https:// URL, the events it receives and the stores it covers, which can be every store. Its whsec_… signing secret is shown once, when the endpoint is created or its secret is rotated.

EventSent whendata
purchase.fulfilledA purchase ends fulfilled or partially_fulfilled.purchaseId, status, keys (the number minted), totalMinor, currency
license.activatedThe key provider reports that one of your keys was activated.licenseId, code, skuId (null for a trial key), activatedAt
balance.lowA purchase or reversed top-up takes your balance below the store's low-balance threshold. It fires once per crossing.balanceMinor, thresholdMinor, creditLimitMinor
topup.reversedA top-up order was refunded in full and its credit was taken back.orderId, variantId, paymentId, units, amountMinor, bonusMinor, reversedMinor, currency, balanceMinor

balance.low is sent only when the store has set a low-balance threshold.

Each delivery is a POST with this JSON body:

{
  "id": "…",
  "type": "purchase.fulfilled",
  "storeId": "…",
  "createdAt": "2026-10-22T10:15:00.000Z",
  "data": {
    "purchaseId": "…",
    "status": "fulfilled",
    "keys": 1,
    "totalMinor": 1500,
    "currency": "USD"
  }
}
HeaderValue
X-Novinzo-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256> over <t>.<raw body>, as for store webhooks.
X-Novinzo-EventThe event type.
X-Novinzo-DeliveryThe delivery id, the same as the body's id.

Answer with any 2xx within five seconds. A retried delivery keeps its id, so use it to ignore a delivery you already handled.

The first attempt is made when the event happens. After the nth failed attempt, the next waits 2n minutes: 2, 4, 8, and so on up to 128 minutes. A delivery is marked failed after 8 attempts.

A due retry is sent only when someone from the account uses the reseller area, or when the account owner redelivers it. API calls with an rsk_… key do not send retries. A disabled endpoint receives no new events. Deliveries already queued for it wait until it is enabled again.

Resell from your own Novinzo store

If you own a Novinzo store, you can sell a product of a store you resell for in it, and Novinzo delivers the keys for you. You need no server and no rsk_ key.

In Reselling, open the store and its Buy tab, then choose Sell in my store on the product. Set your price and choose Put on sale. The price starts at the product's list price when both stores sell in the same currency. The product is created in your store, live, under the product's name. Change its name, pictures or price under Products like any other product.

When a customer pays for it, your keys are bought from the store you resell for, at your price, through the same workflow as the Reseller API, once per order line. Your credit limit, approval threshold and monthly cap still apply. While a purchase waits for approval or minting, delivery is retried. A purchase that cannot be made, for example because your balance and credit do not cover it, shows its reason under Suppliers in your store's Resellers screen. Unlinking the product there stops buying its keys; hide or delete it under Products to stop selling it.

Only a store's owner can put products on sale in it, and your role in your reseller account must be able to buy. A store cannot sell its own keys this way, and a product sold only several keys at a time cannot be sold one by one.

Rate limit

Requests to /plugins/* on a store domain share a limit of 60 per minute, counted per client IP address and store domain in fixed 60-second windows. The reseller API counts toward it, together with the store's cart, order and other plugin routes called from the same address.

Over the limit, the store answers 429 with a Retry-After header. Wait that many seconds before you send more requests.

API changes

Changes to the Reseller API that a working integration may notice, newest first. A new value of an error's reason is added without a new API version, so handle a reason you do not know like the error it belongs to.

  • 2026-11-26: PurchasesBlockedError gains the reason upline-insufficient-funds. A sub-reseller's purchase, or priced support action on a key, that its own balance covers but a reseller it buys through cannot was refused with upline-unavailable and is now refused with upline-insufficient-funds. upline-unavailable no longer covers a reseller you buy through being short of funds.

On this page