v2

latestOpenAPI 3.1.02026-07-26102336742.6 KB
Digital Products

Request a presigned upload URL for a digital file

Rate limit: 100 requests / 10 seconds per shop. See Rate limiting.

Returns a presigned URL to upload a digital file to. After receiving the response, PUT the file bytes directly to the uploadUrl, then call the confirm endpoint to link the file to the product.

post/open-api/v1.0/products/{productId}/digital-files/upload-url

Path parameters

productIdstring required

Request body

fileNamestring required

Name of the file

contentTypestring required

MIME type of the file

sizeinteger required

Size of the file in bytes. Must match the x-goog-content-length-range header sent when uploading the bytes to uploadUrl.

Example request

{
  "fileName": "artwork.png",
  "contentType": "image/png",
  "size": 1048576
}

Response

Created

uploadUrlstring required

Presigned URL to upload the file to via HTTP PUT

fileUrlstring required

The file URL reference to use when confirming the upload