Skip to main content
GET
/
api
/
v2
/
storefront
/
digitals
/
{token}
Download a Digital Asset
const options = {method: 'GET'};

fetch('https://demo.spreecommerce.org/api/v2/storefront/digitals/{token}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{}

Path Parameters

token
string
required

Use the token from the digital link.

Example:

"4WaA5vjMbnivskav2rMPGKzt"

Response

200 Success - Returns the digital asset.

The response is of type object.