Product delivery webhooks
Issue a variant's deliverables, such as license keys, from your own server when an order is paid.
A product delivery webhook lets your server decide what a buyer receives. Once an order is paid, Novinzo asks your server for each order line of a variant that uses one. The lines you answer with are given to the buyer.
Set it up
Open a product, then the variant's What the buyer gets (a product with one variant shows it below its price), and open Deliver from your own server. Enter your URL under Delivery webhook, click Use webhook, and save the product. The URL follows the endpoint URL rules.
Under Signing secret in the same place, reveal the secret and store it on your server. Every variant delivered by webhook uses this one secret.
Click Send test request next to the URL. Novinzo sends your server a test request and shows how a real order would take your answer.
Place a test order. Its order page shows each line's delivery status, and Retry on a failed one.
Settings → Developers lists every variant delivered by webhook, with a link to each one.
A variant with a delivery webhook has no other delivery: no files, and no delivery plugin. Remove those first.
An order keeps the URL its variant had when the order was placed. Changing the URL later only affects new orders.
Request
Novinzo sends one request per order line:
POST /your/delivery/url HTTP/1.1
Content-Type: application/json
User-Agent: Novinzo-Webhook-Delivery/1
Novinzo-Delivery-Id: 5f0c2b1a-7d3e-4f60-9a8b-1c2d3e4f5a6b
Novinzo-Signature: t=1790000000,v1=<64 lowercase hex characters>
{
"type": "order.item.delivery",
"id": "5f0c2b1a-7d3e-4f60-9a8b-1c2d3e4f5a6b",
"store": { "id": "20000000-0000-4000-8000-000000000001" },
"order": {
"id": "9e2d7b14-5c3a-4b6f-8d01-7a9c2e4f6b85",
"customerEmail": "buyer@example.com",
"createdAt": "2026-10-14T15:04:05.000Z"
},
"item": {
"id": "0b8f6c3e-2a71-4d9e-8f05-6c4b3a2d1e90",
"productId": "3c1e9a52-7b4d-4f80-a6e2-5d0c8b7f1a23",
"productName": "Pro License",
"variantId": "7d5c4a7e-1f0b-4c35-9a52-1b2f0e8d9c41",
"variantName": "1 year",
"quantity": 2,
"unitPrice": { "amountMinorUnits": "499", "currency": "USD" }
}
}type is order.item.delivery for a paid order. Check it: a test request has the type delivery.test and must not issue anything.
id and the Novinzo-Delivery-Id header name the delivery. They stay the same when a delivery is retried, so record them and never issue the same delivery twice.
quantity is the number of units bought on this line. Answer with as many deliverables as the buyer should get.
unitPrice.amountMinorUnits is a string of integer minor units: "499" with USD is $4.99.
The store has one delivery signing secret. Verify Novinzo-Signature as described in Signatures before you issue anything.
Answer
| Your answer | Result |
|---|---|
200 with deliverables | Delivered. Each non-empty line of the body is one deliverable for the buyer. |
404, 408, 429 or 5xx, a timeout, or no connection | Retried. |
A Cloudflare edge error (body error code: <n>) at a 4xx or 5xx status | Retried. Its body is never shown to the buyer. |
A redirect (3xx) | Failed. Novinzo does not follow it. |
200 with no lines, or too many | Failed. |
| Any other status | Failed. The first 500 characters of the body are shown to the buyer. |
Before each attempt, Novinzo resolves your URL's host. A host that resolves to a private, loopback or other non-public address fails the delivery without a request. A host that does not resolve, or that could not be looked up, is retried. See address checks.
A 404 is retried because a route missing during a deploy, or a misrouted host, should not fail a paid order. To refuse a delivery for good, answer with a 4xx status other than 404, 408 or 429.
Deliverables are plain text, not JSON. Novinzo splits the body on line breaks, trims each line, and drops empty ones. An answer holds at most 1,000 lines of at most 2,000 characters each.
HTTP/1.1 200 OK
Content-Type: text/plain
KEY-7F3A-91C2-4D8E
KEY-2B6D-05E1-A9F4Only 200 delivers. Another 2xx status fails the delivery.
To refuse a delivery and tell the buyer why, answer with a 4xx status and a short message:
HTTP/1.1 409 Conflict
Content-Type: text/plain
This license is out of stock. The seller will contact you.Test requests
Send test request, next to the variant's saved URL under Deliver from your own server, sends your server a request now, to that URL. It is sent only when you click it, never when you save the URL.
A test request is signed with the store's delivery secret and has the same headers and the same body shape as a real one, so you can check your signature verification. Its type is delivery.test, and no order is behind it: order.id and item.id are all zeros, order.customerEmail is test@example.com, and quantity is 1. The store, product, variant and price are real. Each test request has a new id.
{
"type": "delivery.test",
"id": "c4a8e1f2-6b3d-4e7a-9f10-2d5c8b7a6e43",
"store": { "id": "20000000-0000-4000-8000-000000000001" },
"order": {
"id": "00000000-0000-0000-0000-000000000000",
"customerEmail": "test@example.com",
"createdAt": "2026-10-16T09:30:00.000Z"
},
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"productId": "3c1e9a52-7b4d-4f80-a6e2-5d0c8b7f1a23",
"productName": "Pro License",
"variantId": "7d5c4a7e-1f0b-4c35-9a52-1b2f0e8d9c41",
"variantName": "1 year",
"quantity": 1,
"unitPrice": { "amountMinorUnits": "499", "currency": "USD" }
}
}Never issue real goods for a delivery.test request: don't take a license key from your stock, and don't record a sale. Verify the signature, then answer as you would for a real order. A 200 with a sample line such as TEST-KEY shows the delivery working. Any other answer is fine too, and Novinzo shows you what a real order would make of it.
The URL rules and the 10-second timeout are the same as for a real request. Novinzo shows whether a real order would be delivered, failed, or retried, with your status code, how long you took, and the first 500 characters of your answer. Nothing is recorded, and a test request is never retried.
Timeouts and retries
Novinzo waits 10 seconds for each answer and reads at most 1 MB of it. A larger body counts as no answer.
The first attempt comes right after payment, and checkout waits only 2 seconds for it. A slower answer does not count as an attempt: the next five-minute relay run calls again with the same id. A retried delivery is tried again about every five minutes, up to six attempts in all, so a server that is down for up to about 25 minutes still delivers.
After the last attempt, or after a final answer, the delivery fails. The order page then offers Retry, which makes one more attempt with the same id.
