products_add_download
Add a digital file to a product. Money is integer minor units (cents). Calling this changes nothing: it returns a preview of what would change and a confirmation link. Only the merchant, on that page, can make it happen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A public http(s) address of the file the buyer gets once paid: pdf, zip, epub, mp3, wav, mp4, png, jpg, webp, txt or csv, up to 10 MB. A product with a file is digital: checkout asks no address or delivery, and the receipt carries a download link. | |
| name | No | The file name the buyer sees, with its extension. Defaults to the name in the address. | |
| product | Yes | The product, by handle or by (enough of) its title. |