Skip to main content

customerGiftUrl

顧客向けギフトの受取URL取得

customerGiftUrl(
subscriptionContractId: String!
customerId: String!
subscriptionBillingAttemptId: String!
): ResultCustomerGiftUrl

Arguments

customerGiftUrl.subscriptionContractId ● String! non-null scalar

定期購買契約ID ※必須

  • 説明: 処理対象定期購買契約の globally-unique ID.
  • 例: "gid://shopify/SubscriptionContract/1234567890"

customerGiftUrl.customerId ● String! non-null scalar

顧客ID ※必須

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

customerGiftUrl.subscriptionBillingAttemptId ● String! non-null scalar

請求試行ID ※必須

  • 説明: SubscriptionBillingAttempt の globally-unique ID.
  • 例: "gid://shopify/SubscriptionBillingAttempt/1234567890"

Type

ResultCustomerGiftUrl union

顧客向けギフトの受取URL取得

Example

{
customerGiftUrl(
subscriptionContractId: "gid://shopify/SubscriptionContract/1234567890"
customerId: "gid://shopify/Customer/1234567890"
subscriptionBillingAttemptId: "gid://shopify/SubscriptionBillingAttempt/1234567890"
) {
... on CustomerGiftUrl {
giftReceiverPageUrl
giftExpiredAt
}
... on CustomerGiftUrlAccepted {
status
message
code
}
}
}