Skip to main content

customerSubscriptionContractUpdateSubscription

顧客向け定期購買契約の更新

customerSubscriptionContractUpdateSubscription(
subscriptionContractId: String!
customerId: String!
addLines: [AddSubscriptionLineInput!]
changeLines: [ChangeSubscriptionLineInput!]
removeLines: [RemoveSubscriptionLineInput!]
): [ResultCustomerSubscriptionContractUpdateSubscription!]

Arguments

customerSubscriptionContractUpdateSubscription.subscriptionContractId ● String! non-null scalar

契約情報のShopify管理ID ※必須

  • 説明: 処理対象契約の globally-unique ID.
  • 例: "gid://shopify/SubscriptionContract/123456789"

customerSubscriptionContractUpdateSubscription.customerId ● String! non-null scalar

顧客ID ※必須

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

customerSubscriptionContractUpdateSubscription.addLines ● [AddSubscriptionLineInput!] list input

追加する商品

  • 説明: 追加する商品のリスト
  • 例: [{variantId: "gid://shopify/ProductVariant/123456789", sellingPlanId: "gid://shopify/SellingPlan/123456789", quantity: 1, customAttributes: [{key: "custom_attribute_key", value: "custom_attribute_value"}]}]

customerSubscriptionContractUpdateSubscription.changeLines ● [ChangeSubscriptionLineInput!] list input

変更する商品

  • 説明: 変更する商品のリスト
  • 例: [{lineId: "gid://shopify/SubscriptionLine/123456789", variantId: "gid://shopify/ProductVariant/123456789", sellingPlanId: "gid://shopify/SellingPlan/123456789", quantity: 1}]

customerSubscriptionContractUpdateSubscription.removeLines ● [RemoveSubscriptionLineInput!] list input

削除する商品

  • 説明: 削除する商品のリスト
  • 例: [{lineId: "gid://shopify/SubscriptionLine/123456789"}]

Type

ResultCustomerSubscriptionContractUpdateSubscription object

顧客向け定期購買契約の更新

Example

mutation {
customerSubscriptionContractUpdateSubscription(
subscriptionContractId: "gid://shopify/SubscriptionContract/123456789"
customerId: "gid://shopify/Customer/123456789"
addLines: [{variantId: "gid://shopify/ProductVariant/123456789", sellingPlanId: "gid://shopify/SellingPlan/123456789", quantity: 1, customAttributes: [{key: "custom_attribute_key", value: "custom_attribute_value"}]}]
) {
lineId
productId
variantId
title
variantTitle
onlineStorePreviewUrl
variantImage
sku
quantity
currentPriceAmount
currentPriceCurrencyCode
sellingPlanId
sellingPlanName
}
}