# 🌐 Dynamic URL Fulfillment for Digital Products

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:

 1. Send a POST request to that URL when a digital order is fulfilled.

 2. Include the product’s ID as a query parameter:
    POST https://your-domain.com/generate?id=<productId>

 3. 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 DynamicUrllike 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