Ecommerce: Products
Create digital product
Create a published digital product with a single variant and an optional external download link.
post/api/ecommerce/v1/stores/{store_id}/products/digital
Path parameters
store_idstring required
Example:store_01J8Z5F8W9K8M4A7B3C2D1E0FG
The ID of the store to create the product in.
Request body
Example request
{
"name": "My eBook",
"price": 999,
"description": "A digital download.",
"currency": "usd",
"download_url": "https://example.com/downloads/ebook.pdf"
}Response
Created response
Example response
{
"product": {
"id": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG",
"title": "My Product",
"type": "physical",
"status": "published",
"price": 1000,
"currency_code": "usd"
},
"admin_url": "https://admin.example.com/store_01.../products/edit?product=prod_01..."
}