downloadables

Resource: downloadable

This link relationship returns a collection of downloadables. You can paginate through this collection using the hypermedia links provided and the link relationships of first, prev, next, and last.

Required Scopes

Full store_full_access
Read downloadables_read
Write downloadables_write

Collection Resource

downloadable

Actions

GET View a list of downloadables
POST Create a new downloadable
HEAD Get just the header response
OPTIONS Get a response explaining which HTTP methods are supported

Properties (5)

_embedded Object · Read-only

Contains fx:downloadables[] — array of downloadable resources

total_items String · Read-only

Total number of resources in this collection.

returned_items Number · Read-only

Number of resources returned in this page.

limit Number · Read-only

Maximum number of resources per page.

offset Number · Read-only

Number of resources skipped.

Link Relations (5)

self This Collection
first First Page of this Collection
prev Previous Page of this Collection
next Next Page of this Collection
last Last Page of this Collection
https://api.foxycart.com/stores/{store_id}/downloadables
Available via fx:downloadables on item_category·fx:downloadables on store

Example Representation

{
  "_links": {
    "curies": [
      {
        "name": "fx",
        "href": "https://api.foxycart.com/rels/{rel}",
        "templated": true
      }
    ],
    "self": {
      "href": "https://api.foxycart.com/stores/123/downloadables",
      "title": "This Collection"
    },
    "first": {
      "href": "https://api.foxycart.com/stores/123/downloadables?offset=0",
      "title": "First Page of this Collection"
    },
    "prev": {
      "href": "https://api.foxycart.com/stores/123/downloadables?offset=0",
      "title": "Previous Page of this Collection"
    },
    "next": {
      "href": "https://api.foxycart.com/stores/123/downloadables?offset=20",
      "title": "Next Page of this Collection"
    },
    "last": {
      "href": "https://api.foxycart.com/stores/123/downloadables?offset=20",
      "title": "Last Page of this Collection"
    }
  },
  "_embedded": {
    "fx:downloadables": [
      {
        "_links": {
          "curies": [
            {
              "name": "fx",
              "href": "https://api.foxycart.com/rels/{rel}",
              "templated": true
            }
          ],
          "self": {
            "href": "https://api.foxycart.com/downloadables/456",
            "title": "This Downloadable"
          },
          "fx:store": {
            "href": "https://api.foxycart.com/stores/456",
            "title": "This Store"
          },
          "fx:item_category": {
            "href": "https://api.foxycart.com/item_categories/999",
            "title": "Item Category for this downloadable"
          },
          "fx:downloadable_item_categories": {
            "href": "https://api.foxycart.com/stores/456/item_categories?item_delivery_type=downloaded",
            "title": "Downloadable Item Categories for this store"
          }
        },
        "item_category_uri": "https://api-sandbox.foxycart.com/item_categories/307",
        "name": "Unicorn",
        "code": "unicorn",
        "price": 10,
        "file_name": "unicorn_web.png",
        "file_size": 267069,
        "upload_date": "2015-04-16T09:33:28-0700",
        "date_created": "2015-04-16T09:33:28-0700",
        "date_modified": "2015-04-16T09:46:46-0700"
      }
    ]
  },
  "total_items": 1,
  "returned_items": 1,
  "limit": 20,
  "offset": 0
}