Edit in GitHubLog an issue

customerDownloadableProducts query

Use the customerDownloadableProducts query to retrieve the list of purchased downloadable products for the logged-in customer.

Syntax

{customerDownloadableProducts: {CustomerDownloadableProducts}}

Reference

The customerDownloadableProducts reference provides detailed information about the types and fields defined in this query.

Example usage

The following example returns the list of purchased downloadable products for the logged-in customer.

Request:

Copied to your clipboard
{
customerDownloadableProducts {
items {
date
download_url
order_increment_id
remaining_downloads
status
}
}
}

Response:

Copied to your clipboard
{
"data": {
"customerDownloadableProducts": {
"items": [
{
"date": "2019-03-04 20:48:32",
"download_url": "https://<M2_INSTANCE>/downloadable/download/link/id/MC44NTcwMTEwMCAxNTUxNzMyNTEyMTExNTE%2C/",
"order_increment_id": "000000004",
"remaining_downloads": "Unlimited",
"status": "pending"
},
{
"date": "2019-03-04 20:48:32",
"download_url": "https://<M2_INSTANCE>/downloadable/download/link/id/MC44NzM0OTkwMCAxNTUxNzMyNTEyMjEyNTA%2C/",
"order_increment_id": "000000004",
"remaining_downloads": "Unlimited",
"status": "pending"
}
]
}
}
}

Errors

ErrorDescription
The current customer isn't authorized.
The current customer is not currently logged in, or the customer's token does not exist in the oauth_token table.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.