customerSubscriptionContractChangeSubscriptionLine
顧客向け定期購買契約の定期購買商品変更
customerSubscriptionContractChangeSubscriptionLine(
subscriptionContractId: String!
customerId: String!
lineId: String!
variantId: String!
planId: String!
quantity: Int!
): [ResultCustomerSubscriptionContractChangeSubscriptionLine]!
Arguments
customerSubscriptionContractChangeSubscriptionLine.subscriptionContractId
● String!
non-null scalar
契約情報のShopify管理ID ※必須
- 説明: 処理対象契約の globally-unique ID.
- 例:
"gid://shopify/SubscriptionContract/123456789"
customerSubscriptionContractChangeSubscriptionLine.customerId
● String!
non-null scalar
顧客ID ※必須
- 説明: 処理対象顧客の globally-unique ID.
- 例:
"gid://shopify/Customer/123456789"
customerSubscriptionContractChangeSubscriptionLine.lineId
● String!
non-null scalar
定期購買商品ID ※必須
- 説明: 処理対象定期購買商品の globally-unique ID.
- 例:
"gid://shopify/SubscriptionLine/123456789"
customerSubscriptionContractChangeSubscriptionLine.variantId
● String!
non-null scalar
商品バリエーションID ※必須
- 説明: 処理対象商品バリエーションの globally-unique ID.
- 例:
"gid://shopify/ProductVariant/123456789"
customerSubscriptionContractChangeSubscriptionLine.planId
● String!
non-null scalar
プランID ※必須
- 説明: 処理対象プランの globally-unique ID.
- 例:
"gid://shopify/SellingPlan/123456789"
customerSubscriptionContractChangeSubscriptionLine.quantity
● Int!
non-null scalar
数量 ※必須
- 説明: 追加する商品の数量
- 例:
1
Type
ResultCustomerSubscriptionContractChangeSubscriptionLine
object
顧客向け定期購買契約の定期購買商品変更
Example
mutation {
customerSubscriptionContractChangeSubscriptionLine(
subscriptionContractId: "gid://shopify/SubscriptionContract/123456789"
customerId: "gid://shopify/Customer/123456789"
lineId: "gid://shopify/SubscriptionLine/123456789"
variantId: "gid://shopify/ProductVariant/123456789"
planId: "gid://shopify/SellingPlan/123456789"
quantity: 1
) {
lineId
productId
variantId
title
variantTitle
sku
variantImage
quantity
currentPriceAmount
currentPriceCurrencyCode
lineDiscountedPriceAmount
lineDiscountedPriceCurrencyCode
onlineStorePreviewUrl
}
}