Fileflare API

Pro tip - Build custom tools using this API

Use an AI app builder like Replit to unlock the ability to build your own tools and customisations using the Fileflare API.

Viewing download links

This is the only way to view download links for the files on your account at the moment. Fileflare creates download links when orders are placed, so this is the best method to get access to downloadable assets. If you don’t have any orders, simply place a test order for your files to create download links.

Using this API you can:

  • Access the download links for an order
  • Build your own custom download page
  • If you are using a custom frontend
  • Use in the customer accounts

This APIs does NOT require authentication.

Things to be aware of:


Order Status page download links

The ID used in this API URL is found in the URL on the Shopify Order Status page.

e.g. https://my-store.com/account/orders/0c732eb6fd9802a0821a9d29888baee8

https://app.digital-downloads.com/api/v2/customer-account-orders?id=:id

Example

https://app.digital-downloads.com/api/v2/customer-account-orders?id=0c732eb6fd9802a0821a9d29888baee8

Response

JSON
{
    "order": {
        "order_number": 1050,
        "lines": [
            {
                "product": {
                    "id": "82664d96-6dfd-4343-96b0-05c46f412a5q",
                    "name": "My new Book",
                    "variant_name": "Paper back",
                    "sku": "my-sku",
                    "product_id": 123456,
                    "variant_id": 1234567,
                    "vendor": "my-store",
                    "tags": [
                        "books",
                        "paper-books"
                    ]
                },
                "assets": [
                    {
                        "limits": {
                            "downloaded": 5,
                            "limit": 10
                        },
                        "data": {
                            "id": "82664d96-6dfd-4343-96b0-05c46f412a5b",
                            "filename": "My new book",
                            "size": "10MB",
                            "is_file": false,
                            "is_link": true,
                            "url": "https://www.my-website.com/download/my-book.pdf"
                        }
                    }
                ]
            },
            {
                "product": {
                    "id": "82664d96-6dfd-4343-96b0-05c46f412a5r",
                    "name": "My new Book",
                    "variant_name": "Hard back",
                    "sku": "my-sku",
                    "product_id": 123456,
                    "variant_id": 1234563,
                    "vendor": "my-store",
                    "tags": [
                        "books",
                        "hardback-books"
                    ]
                },
                "assets": []
            }
        ],
        "assets": [
            {
                "limits": {
                    "downloaded": 0,
                    "limit": 10
                },
                "data": {
                    "id": "82664d96-6dfd-4343-96b0-05c46f41sas",
                    "filename": "My new book - part 2",
                    "size": "20MB",
                    "is_file": false,
                    "is_link": true,
                    "url": "https://www.my-website.com/download/my-book-part-2.pdf"
                }
            }
        ]
    },
    "text": {
        "title": "Download files for your orders",
        "text": null
    }
}