REST API endpoint for digital goods

We’d like to be able to upload digital goods on the fly when a customer orders.

Background: we need to add watermarks to our PDF and ePub files before we distribute them so we can track their usage across the web.

Envisioned workflow:

  1. our app adds individual watermarks to PDF and ePub files when a customer orders
  2. upload file through Snipcart API to digital goods and retrieve file GUID on success
  3. add file guid to product data
  4. customer can download file with custom watermark
  5. remove file from digital goods via API