WooCommerce · JSON Structure

Woocommerce Rest Api Customer Download Structure

A downloadable file accessible to a customer.

Type: object Properties: 10
E-CommerceOpen-SourceOrderProductWordPress

CustomerDownload is a JSON Structure definition published by WooCommerce, describing 10 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

download_id download_url product_id product_name download_name order_id order_key downloads_remaining access_expires file

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woocommerce/refs/heads/main/json-structure/woocommerce-rest-api-customer-download-structure.json",
  "name": "CustomerDownload",
  "description": "A downloadable file accessible to a customer.",
  "type": "object",
  "properties": {
    "download_id": {
      "type": "string",
      "description": "Download unique identifier.",
      "example": "500123"
    },
    "download_url": {
      "type": "uri",
      "description": "URL where the customer can download the file.",
      "example": "https://example.com/path"
    },
    "product_id": {
      "type": "int32",
      "description": "Product ID associated with this download.",
      "example": 1
    },
    "product_name": {
      "type": "string",
      "description": "Product name at time of purchase.",
      "example": "Example Name"
    },
    "download_name": {
      "type": "string",
      "description": "Name of the downloadable file.",
      "example": "Example Name"
    },
    "order_id": {
      "type": "int32",
      "description": "Order ID for this download.",
      "example": 1
    },
    "order_key": {
      "type": "string",
      "description": "Order key for verification.",
      "example": "string-value"
    },
    "downloads_remaining": {
      "type": "string",
      "description": "Number of downloads remaining (empty string for unlimited).",
      "example": "string-value"
    },
    "access_expires": {
      "type": "datetime",
      "description": "Date and time when download access expires.",
      "nullable": true,
      "example": "2026-05-03T14:30:00Z"
    },
    "file": {
      "type": "object",
      "description": "File information.",
      "properties": {
        "name": {
          "type": "string",
          "description": "File name."
        },
        "file": {
          "type": "uri",
          "description": "File URL."
        }
      },
      "example": {
        "name": "Example Name",
        "file": "https://example.com/path"
      }
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/woocommerce-rest-api-customer-download-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.