AddSubscriptionLineInput
定期購買契約の商品追加
input AddSubscriptionLineInput {
variantId: String!
sellingPlanId: String!
quantity: Int!
customAttributes: [SubscriptionLineCustomAttributeInput!]
}
Fields
AddSubscriptionLineInput.variantId
● String!
non-null scalar
商品バリエーションID ※必須
- 説明: 追加する商品のバリエーションID
- 例:
"gid://shopify/ProductVariant/123456789"
AddSubscriptionLineInput.sellingPlanId
● String!
non-null scalar
プランID ※必須
- 説明: 追加する商品のプランID
- 例:
"gid://shopify/SellingPlan/123456789"
AddSubscriptionLineInput.quantity
● Int!
non-null scalar
数量 ※必須
- 説明: 追加する商品の数量
- 例:
1
AddSubscriptionLineInput.customAttributes
● [SubscriptionLineCustomAttributeInput!]
list input
カスタム属性
- 説明: 追加する商品のカスタム属性
- 例:
[{key: "custom_attribute_key", value: "custom_attribute_value"}]
Example
{
"variantId": "gid://shopify/ProductVariant/123456789",
"sellingPlanId": "gid://shopify/SellingPlan/123456789",
"quantity": 1,
"customAttributes": [
{
"key": "custom_attribute_key",
"value": "custom_attribute_value"
}
]
}