When selling digital products that require real-time code generation or licensing, you can use the dynamicurl
delivery type. This lets you integrate your own API to dynamically respond with download links, license keys, or any custom digital content after an order is placed.
🚀 How It Works
When you set a product's Type
to "dynamicurl"
, and specify a fulfillment endpoint in , our system will automatically:
Send a POST request to that URL when a digital order is fulfilled.
Include the product’s ID as a query parameter:
POST https://your-domain.com/generate?id=<productId>
Expect a JSON response that includes a
data
field.
The data
you return will be delivered to the customer as their digital product (shown in the order's tracking and fulfillment data).
⚙️ How to Set It Up
Step 1: Configure your product
Set the product's Type To
DynamicUrl
like this:
Enter Your Endpoint and save the product now u are all Set
Step 2: Create your fulfillment endpoint
Here’s an example of how to build the fulfillment API using Node.js + Express:
🧪 Example Response (what your API must return)
{ "status": 200, "message": "License generated successfully", "data": "LICENSE-KEY-12345" }
✅ The key is the data
field which is mandatory in response — this value will appear in the customer’s order under trackingNumber
🔐 Security Recommendations
Validate the incoming
productId
to ensure the request is legitimate u can add a new product and take productid from the url in your product view from here
Here Product id is - 11ee3102-74c1-488f-8676-62a26350a8c4
Limit rate of code generation if applicable.
💡 Use Cases
License key generation for SaaS or software.
Dynamic file generation (e.g., personalized PDFs).
Subscription token creation.
3rd-party integration with licensing/fulfillment platforms.
📦 What the Customer Receives
The customer will see:
Tracking number:
Product Name: DOWNLOAD-LINK-123
Still need help?
Contact us