GET:product_variants/page.json
Commerce APIGET:product_variants/page.json

GET:product_variants/page.json

Description

Get all product variants.

See also: Pagination.

Permission bit: "product_variants.read"

Topic: Product Variants

Query Parameters

ignore_bundles: Boolean

Ignore bundle type variants

Example: ?ignore_bundles=true


last_key: String

Key of the last item from previous page. See also: Pagination

Example: ?last_key=str


limit: Int

Return up to N entries (pagination). See also: Pagination

Example: ?limit=5


no_inventory: Boolean

Show only variants which have no inventory entry

Example: ?no_inventory=true


offset: Int

Skip N entries (pagination). See also: Pagination

Example: ?offset=5


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY


sort_by: ProductVariantsPageSortBy

Whether to sort output in some specific way. See also: Pagination

Example: ?sort_by=created_at


sort_desc: Boolean

Whether to use descending sort order. See also: Pagination

Example: ?sort_desc=true

Response Body

ProductVariantPage

Response Body Type

Loading module