logo

Important:

This API is designed for experienced developers only and is provided as a self-service tool with minimal support.

Please be aware that currently, this API only supports legacy checkouts and classic customer accounts. It does not support integration with New Customer Accounts & new Checkout Extensibility. Shopify has not yet enabled app integration capabilities for New Customer Accounts. It is anticipated that these Shopify features will become available later in 2024. See Shopify’s consideration guide.

Fileflare API

Attaching assets to products

For this, you will need to have the asset ID and the product ID (s). You can find products on this API page.


Attach

Use the product ID(s) and send a POST request with the asset ID to:

https://app.digital-downloads.com/api/v1/assets/:id/attach

Example

https://app.digital-downloads.com/api/v1/assets/82664d96-6dfd-4343-96b0-05c46f412a5b/attach

Request

JSON
{
    "products": [
        "82664d96-6dfd-4343-96b0-05c46f412a51", 
        "82664d96-6dfd-4343-96b0-05c46f412a52", 
        "82664d96-6dfd-4343-96b0-05c46f412a53"
    ]
}

Response

You will receive a 201 response code.


Removing attached products

Use the product ID(s) you wish to remove and send a POST request with the asset ID to:

https://app.digital-downloads.com/api/v1/assets/:id/detach

Example

https://app.digital-downloads.com/api/v1/assets/82664d96-6dfd-4343-96b0-05c46f412a5b/detach

Request

JSON
{
    "products": [
        "82664d96-6dfd-4343-96b0-05c46f412a51", 
        "82664d96-6dfd-4343-96b0-05c46f412a53"
    ]
}

Response

You will receive a 201 response code.