Products > Product Variants > productVariants
Commerce APIProductsProduct VariantsproductVariants
productVariants
GET:product_variants.json

Description

Get all or specific product variants.

Permission bit: "product_variants.read"

Topic: Product Variants

Arguments

ids: [String!]

List of product variant ids. See also: Unique Identifiers

Example: ["va_EQzGqWoY"]


loose: Boolean

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


product_id: String

Unique product identifier. See also: Unique Identifiers

Example: "pd_EQzGqWoY"


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Result

[ProductVariant!]

Preview (typescript)

Loading module