WooCommerce · Schema

OrderRefund

A refund associated with an order.

WooCommerceE-CommerceOpen SourceOrderProductWordPress

Properties

Name Type Description
id integer Refund unique identifier.
date_created string Date the refund was created.
amount string Refund amount as a decimal string.
reason string Reason for the refund.
refunded_by integer User ID of the person who issued the refund.
line_items array Line items included in the refund.
meta_data array Custom metadata.
View JSON Schema on GitHub

JSON Schema

woocommerce-order-refund-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woocommerce/json-schema/woocommerce-order-refund-schema.json",
  "title": "OrderRefund",
  "description": "A refund associated with an order.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woocommerce-order-refunds-api-openapi.yml#/components/schemas/OrderRefund",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Refund unique identifier."
    },
    "date_created": {
      "type": "string",
      "format": "date-time",
      "description": "Date the refund was created."
    },
    "amount": {
      "type": "string",
      "description": "Refund amount as a decimal string."
    },
    "reason": {
      "type": "string",
      "description": "Reason for the refund."
    },
    "refunded_by": {
      "type": "integer",
      "description": "User ID of the person who issued the refund."
    },
    "line_items": {
      "type": "array",
      "description": "Line items included in the refund.",
      "items": {
        "$ref": "#/$defs/LineItem"
      }
    },
    "meta_data": {
      "type": "array",
      "description": "Custom metadata.",
      "items": {
        "$ref": "#/$defs/MetaData"
      }
    }
  },
  "$defs": {
    "LineItem": {
      "type": "object",
      "description": "A product line item within an order.",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Line item unique identifier."
        },
        "name": {
          "type": "string",
          "description": "Product name at time of purchase."
        },
        "product_id": {
          "type": "integer",
          "description": "Product ID."
        },
        "variation_id": {
          "type": "integer",
          "description": "Variation ID (0 if not a variation)."
        },
        "quantity": {
          "type": "integer",
          "description": "Quantity ordered."
        },
        "tax_class": {
          "type": "string",
          "description": "Tax class used for this line item."
        },
        "subtotal": {
          "type": "string",
          "description": "Line subtotal (before discounts) as a decimal string."
        },
        "subtotal_tax": {
          "type": "string",
          "description": "Line subtotal tax as a decimal string."
        },
        "total": {
          "type": "string",
          "description": "Line total (after discounts) as a decimal string."
        },
        "total_tax": {
          "type": "string",
          "description": "Line total tax as a decimal string."
        },
        "sku": {
          "type": "string",
          "description": "Product SKU."
        },
        "price": {
          "type": "number",
          "description": "Product price at time of purchase."
        },
        "meta_data": {
          "type": "array",
          "description": "Metadata for the line item (e.g. variation attributes).",
          "items": {
            "$ref": "#/$defs/MetaData"
          }
        }
      }
    },
    "MetaData": {
      "type": "object",
      "description": "Custom metadata key-value entry.",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Metadata unique identifier."
        },
        "key": {
          "type": "string",
          "description": "Metadata key."
        },
        "value": {
          "type": "string",
          "description": "Metadata value."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 Schema
curl "https://apis.io/api/v1/json-schemas/woocommerce-order-refund"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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