customerSubscriptionContractUpdateDeliveryAddress
顧客向け定期購買の配送先を更新するAPI
customerSubscriptionContractUpdateDeliveryAddress(
subscriptionContractId: String!
customerId: String!
deliveryCountryCode: String
deliveryZip: String
deliveryProvinceCode: String
deliveryCity: String
deliveryAddress1: String
deliveryAddress2: String
deliveryLastName: String
deliveryFirstName: String
deliveryCompany: String
deliveryPhone: String
): ResultCustomerExecution
Arguments
customerSubscriptionContractUpdateDeliveryAddress.subscriptionContractId
● String!
non-null scalar
契約情報のShopify管理ID ※必須
- 説明: 処理対象契約の globally-unique ID.
- 例:
"gid://shopify/SubscriptionContract/123456789"
customerSubscriptionContractUpdateDeliveryAddress.customerId
● String!
non-null scalar
顧客ID ※必須
- 説明: 処理対象顧客の globally-unique ID.
- 例:
"gid://shopify/Customer/987654321"
customerSubscriptionContractUpdateDeliveryAddress.deliveryCountryCode
● String
scalar
国/地域
- 説明: 配送先の国/地域. Shopifyの CountryCode enum に準拠
- 例:
"JP"
customerSubscriptionContractUpdateDeliveryAddress.deliveryZip
● String
scalar
郵便番号
- 説明: 配送先の郵便番号
- 例:
"123-4567"
customerSubscriptionContractUpdateDeliveryAddress.deliveryProvinceCode
● String
scalar
都道府県コード
customerSubscriptionContractUpdateDeliveryAddress.deliveryCity
● String
scalar
市区町村
- 説明: 配送先の市区町村
- 例:
"東京都千代田区"
customerSubscriptionContractUpdateDeliveryAddress.deliveryAddress1
● String
scalar
住所
- 説明: 配送先の住所
- 例:
"千代田区永田町1-7-1"
customerSubscriptionContractUpdateDeliveryAddress.deliveryAddress2
● String
scalar
建物名、部屋番号
- 説明: 配送先の建物名、部屋番号
- 例:
"千代田ビル101号室"
customerSubscriptionContractUpdateDeliveryAddress.deliveryLastName
● String
scalar
姓
- 説明: 配送先の姓
- 例:
"山田"
customerSubscriptionContractUpdateDeliveryAddress.deliveryFirstName
● String
scalar
名
- 説明: 配送先の名
- 例:
"太郎"
customerSubscriptionContractUpdateDeliveryAddress.deliveryCompany
● String
scalar
会社名
- 説明: 配送先の会社名
- 例:
"株式会社山田"
customerSubscriptionContractUpdateDeliveryAddress.deliveryPhone
● String
scalar
電話番号
- 説明: 配送先の電話番号
- 例:
"090-1234-5678"
Type
ResultCustomerExecution
object
顧客向け処理結果
Example
mutation {
customerSubscriptionContractUpdateDeliveryAddress(
subscriptionContractId: "gid://shopify/SubscriptionContract/123456789"
customerId: "gid://shopify/Customer/987654321"
deliveryCountryCode: "JP"
deliveryZip: "123-4567"
deliveryProvinceCode: "13"
deliveryCity: "千代田区"
deliveryAddress1: "永田町1-7-1"
deliveryAddress2: "千代田ビル101号室"
deliveryLastName: "山田"
deliveryFirstName: "太郎"
deliveryCompany: "株式会社山田"
deliveryPhone: "090-1234-5678"
) {
success
}
}