WooCommerce · Schema
ProductVariation
A variation of a variable product with its own pricing and stock.
WooCommerceE-CommerceOpen SourceOrderProductWordPress
Properties
| Name | Type | Description |
|---|---|---|
| id | integer | Variation unique identifier. |
| sku | string | Stock-keeping unit for this variation. |
| price | string | Current price as a decimal string. |
| regular_price | string | Regular price as a decimal string. |
| sale_price | string | Sale price as a decimal string. |
| on_sale | boolean | Whether the variation is on sale. |
| status | string | Variation status. |
| manage_stock | boolean | Whether stock is managed for this variation. |
| stock_quantity | integernull | Stock quantity for this variation. |
| stock_status | string | Stock status. |
| image | object | |
| attributes | array | Specific attribute values that define this variation. |
| meta_data | array | Custom metadata for this variation. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/woocommerce/json-schema/woocommerce-product-variation-schema.json",
"title": "ProductVariation",
"description": "A variation of a variable product with its own pricing and stock.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/woocommerce-product-variations-api-openapi.yml#/components/schemas/ProductVariation",
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Variation unique identifier."
},
"sku": {
"type": "string",
"description": "Stock-keeping unit for this variation."
},
"price": {
"type": "string",
"description": "Current price as a decimal string."
},
"regular_price": {
"type": "string",
"description": "Regular price as a decimal string."
},
"sale_price": {
"type": "string",
"description": "Sale price as a decimal string."
},
"on_sale": {
"type": "boolean",
"description": "Whether the variation is on sale."
},
"status": {
"type": "string",
"description": "Variation status.",
"enum": [
"draft",
"pending",
"private",
"publish"
]
},
"manage_stock": {
"type": "boolean",
"description": "Whether stock is managed for this variation."
},
"stock_quantity": {
"type": [
"integer",
"null"
],
"description": "Stock quantity for this variation."
},
"stock_status": {
"type": "string",
"description": "Stock status.",
"enum": [
"instock",
"outofstock",
"onbackorder"
]
},
"image": {
"$ref": "#/$defs/ProductImage"
},
"attributes": {
"type": "array",
"description": "Specific attribute values that define this variation.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Attribute ID."
},
"name": {
"type": "string",
"description": "Attribute name."
},
"option": {
"type": "string",
"description": "Selected option value for this variation."
}
}
}
},
"meta_data": {
"type": "array",
"description": "Custom metadata for this variation.",
"items": {
"$ref": "#/$defs/MetaData"
}
}
},
"$defs": {
"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."
}
}
},
"ProductImage": {
"type": "object",
"description": "An image associated with a product.",
"properties": {
"id": {
"type": "integer",
"description": "Image unique identifier."
},
"src": {
"type": "string",
"format": "uri",
"description": "Image URL."
},
"name": {
"type": "string",
"description": "Image name."
},
"alt": {
"type": "string",
"description": "Image alternative text."
}
}
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/woocommerce-product-variation"
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.