Products

Attach delivery file to product

Changed on

Attaches the distributable file delivered after a purchase of this product. Purchase events then expose it as download.url / download.name. Accepts the internal product id or, for Commerce API products, your productId.

put/products/{productId}/delivery

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/products/{productId}/delivery
  • Auth
    HTTP bearer

Path parameters

productIdstring required

Internal product id, or your own productId for products pushed via the Commerce API.

Request body

urlstring required

Public http(s) URL of the file.

source'upload' | 'url'
fileNamestring
fileSizeBytesinteger
mimeTypestring

Response

Delivery attached

successboolean

Example response

{
  "product": {
    "id": "prod_internal_1",
    "providerProductId": "prod_ABC123",
    "title": "The Indie Hacker Guide",
    "price": 4900,
    "currency": "USD",
    "digitalDelivery": {
      "url": "https://images.sequenzy.com/product-files/comp_123/9f2.../guide.pdf",
      "fileName": "guide.pdf",
      "mimeType": "application/pdf"
    }
  }
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status