Skip to main content

customerProductVariant

顧客向け商品バリエーション情報取得

customerProductVariant(
customerId: String!
productId: String!
sellingPlanId: String!
): ResultCustomerProductVariant

Arguments

customerProductVariant.customerId ● String! non-null scalar

顧客ID ※必須

  • 説明: 処理対象顧客の globally-unique ID.
  • 例: "gid://shopify/Customer/123456789"

customerProductVariant.productId ● String! non-null scalar

商品バリエーションID ※必須

  • 説明: 処理対象商品の globally-unique ID.
  • 例: "gid://shopify/Product/123456789"

customerProductVariant.sellingPlanId ● String! non-null scalar

プランID ※必須

  • 説明: 処理対象プランの globally-unique ID.
  • 例: "gid://shopify/SellingPlan/123456789"

Type

ResultCustomerProductVariant object

顧客向け商品バリエーション情報

Example

{
customerProductVariant(
customerId: "gid://shopify/Customer/7209218670705"
productId: "gid://shopify/Product/123456789"
sellingPlanId: "gid://shopify/SellingPlan/123456789"
) {
planGroupId
merchantCode
name
plans {
planId
name
billingPolicyInterval
billingPolicyIntervalCount
billingPolicyMinCycles
billingPolicyMaxCycles
firstPricingPolicyAdjustmentType
firstPricingPolicyAdjustmentValue
}
products {
productId
title
onlineStorePreviewUrl
hasOnlyDefaultVariant
images {
id
width
height
originalSrc
transformedSrc
}
variants {
id
title
displayName
sku
price
requiresShipping
availableForSale
image {
id
width
height
originalSrc
transformedSrc
}
selectedOptions {
name
value
}
}
}
}
}