customerSubscriptionContractApplyDiscountCoupon
顧客向け定期購買へのクーポン適用API
customerSubscriptionContractApplyDiscountCoupon(
subscriptionContractId: String!
customerId: String!
couponCode: String!
): ResultCustomerSubscriptionContractApplyDiscountCoupon
Arguments
customerSubscriptionContractApplyDiscountCoupon.subscriptionContractId
● String!
non-null scalar
契約情報のShopify管理ID ※必須
- 説明: 処理対象契約の globally-unique ID.
- 例:
"gid://shopify/SubscriptionContract/123456789"
customerSubscriptionContractApplyDiscountCoupon.customerId
● String!
non-null scalar
顧客ID ※必須
- 説明: 処理対象顧客の globally-unique ID.
- 例:
"gid://shopify/Customer/987654321"
customerSubscriptionContractApplyDiscountCoupon.couponCode
● String!
non-null scalar
クーポンコード ※必須
- 説明: 適用するクーポンコード
- 例:
"coupon-code"
Type
ResultCustomerSubscriptionContractApplyDiscountCoupon
object
顧客向け定期購買へのクーポン適用情報
Example
mutation {
customerSubscriptionContractApplyDiscountCoupon(
subscriptionContractId: "gid://shopify/SubscriptionContract/123456789"
customerId: "gid://shopify/Customer/987654321"
couponCode: "coupon-code"
) {
result
}
}