---
title: "proxyNodeProductVariant"
description: "当前接口即将下线，新增接入将无法直接使用。如需申请使用权限，请通过工单系统联系平台。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/queries/proxy-node-product-variant'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/queries/proxy-node-product-variant.md'
---
# proxyNodeProductVariant

当前接口即将下线，新增接入将无法直接使用。如需申请使用权限，请通过工单系统联系平台。

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Type Signature

`[ProductVariant]`

## Arguments

* `id`

  [ID](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  产品变体ID

* `ids`

  [[ID]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  产品变体ID数组

## Returns

* `availableForSale`

  [Boolean](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/boolean.md)

  变体是否可售

* `barcode`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  条形码

* `compareAtPrice`

  [Money](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/money.md)

  原价

* `~~createdAt~~`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/date.md)

  变体创建时间 [Deprecated]

* `~~displayName~~`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  变体显示名，基于商品标题 + 变体标题 [Deprecated]

* `id`

  [ID!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  变体ID

* `image`

  [Image](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/image.md)

  变体图片

* `~~inventoryPolicy~~`

  [ProductVariantInventoryPolicy](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/enums/product-variant-inventory-policy.md)

  缺货时，是否允许超卖 [Deprecated]

* `inventoryQuantity`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/int.md)

  变体可售库存数

* `~~inventoryTracker~~`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  是否追踪库存 T：追踪 F：不追踪 [Deprecated]

* `metafield`

  [Metafield](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/metafield.md)

  关联在商品变体上的元字段

* `metafields`

  [[Metafield]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/metafield.md)

  关联在商品变体上的一组元字段

* `parentProduct`

  [Product](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product.md)

  变体的父级商品对象

* `price`

  [Money](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/money.md)

  售价

* `product`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  所属商品ID

* `requiresShipping`

  [Boolean](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/boolean.md)

  客户在订购产品型号时是否需要提供送货地址

* `selectedOptions`

  [[SelectedOption]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/selected-option.md)

  应用于该变体的产品选项列表

* `sku`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  SKU码

* `taxable`

  [Boolean](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/boolean.md)

  产品变体销售时是否征税

* `title`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  变体标题

* `~~updatedAt~~`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/date.md)

  变体更新时间 [Deprecated]

* `weight`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  重量

* `weightUnit`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  重量单位

## Code Example

```graphql
 {
	proxyNodeProductVariant(id, ids ) 
		 {
			# ProductVariant fields
		}
}
```

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

