GET:product_variants.json
Commerce APIGET:product_variants.json

GET:product_variants.json

Description

Get all or specific product variants.

Permission bit: "product_variants.read"

Topic: Product Variants

Query Parameters

ids: Comma-separated array of String, required

List of product variant ids. See also: Unique Identifiers

Example: ?ids=va_EQzGqWoY,va_EQzGqWoY


loose: Boolean

When asking for multiple items, allow returning less than was asked (in case some are missing)

Example: ?loose=true


product_id: String

Unique product identifier. See also: Unique Identifiers

Example: ?product_id=pd_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Response Body

Array of ProductVariant

Response Body Type

Loading module