v1

latestOpenAPI 3.0.02026-07-226950132.6 KB
product-variations

Get product variations

Gets variations for a variable product.

get/products/{id}/variations

Path parameters

idinteger required

Unique identifier for the variable product.

Query parameters

pageinteger

Current page of the collection.

per_pageinteger

Maximum number of items to return per page.

Response

Product variations retrieved successfully.

idinteger

Unique identifier for the variation

parent_idinteger

Product parent ID (the variable product this variation belongs to)

namestring

Variation name

slugstring

Variation slug

permalinkstring

Variation URL

skustring

Unique identifier (SKU)

descriptionstring

Variation description

featuredboolean

Whether the variation is featured

total_salesinteger

Total number of sales for this variation