Using this API you can:
- Access the download links for an order
- Build your own custom download page
- If you are using a custom frontend
- Use in the customer accounts
These APIs do NOT require authentication.
Order Status page download links
The ID used in this API URL is found in the URL on the Shopify Order Status page.
e.g. https://my-store.com/account/orders/0c732eb6fd9802a0821a9d29888baee8
https://app.digital-downloads.com/api/v2/customer-account-orders?id=:id
Example
https://app.digital-downloads.com/api/v2/customer-account-orders?id=0c732eb6fd9802a0821a9d29888baee8
Response
JSON
{
"order": {
"order_number": 1050,
"lines": [
{
"product": {
"id": "82664d96-6dfd-4343-96b0-05c46f412a5q",
"name": "My new Book",
"variant_name": "Paper back",
"sku": "my-sku",
"product_id": 123456,
"variant_id": 1234567,
"vendor": "my-store",
"tags": [
"books",
"paper-books"
]
},
"assets": [
{
"limits": {
"downloaded": 5,
"limit": 10
},
"data": {
"id": "82664d96-6dfd-4343-96b0-05c46f412a5b",
"filename": "My new book",
"size": "10MB",
"is_file": false,
"is_link": true,
"url": "https://www.my-website.com/download/my-book.pdf"
}
}
]
},
{
"product": {
"id": "82664d96-6dfd-4343-96b0-05c46f412a5r",
"name": "My new Book",
"variant_name": "Hard back",
"sku": "my-sku",
"product_id": 123456,
"variant_id": 1234563,
"vendor": "my-store",
"tags": [
"books",
"hardback-books"
]
},
"assets": []
}
],
"assets": [
{
"limits": {
"downloaded": 0,
"limit": 10
},
"data": {
"id": "82664d96-6dfd-4343-96b0-05c46f41sas",
"filename": "My new book - part 2",
"size": "20MB",
"is_file": false,
"is_link": true,
"url": "https://www.my-website.com/download/my-book-part-2.pdf"
}
}
]
},
"text": {
"title": "Download files for your orders",
"text": null
}
}