Upload product file

Upload a new file to the product. Doesn't affect placed paid orders.

POST https://app.ecwid.com/api/v3/{storeId}/products/{productId}/files

Required access scopes

Your app must have the following access scopes to make this request: create_catalog

Path params

All path params are required.

Param
Type
Description

storeId

number

Ecwid store ID.

productId

number

Internal product ID.

Query params

Some query params are required.

Name
Type
Description

fileName

string

Name of the file visible to clients who bought the product with this file. Required

description

string

Text description visible to clients who bought the product with this file.

externalUrl

string

HTTPS link to the file that must be accessible by Ecwid servers. After uploading the file, Ecwid generates its own link for customers, so you may delete the file from your server. Required

Headers

The Authorization header is required.

Header
Format
Description

Authorization

Bearer secret_ab***cd

Access token of the application.

Response JSON

A JSON object with the following fields:

Field
Type
Description

id

number

Internal ID of the uploaded file.

Last updated

Was this helpful?