Skip to main content

customerUpsertCustomerMetafields

顧客向けメタフィールド追加更新

customerUpsertCustomerMetafields(
customerId: String!
metafields: [MetafieldInput!]!
): ResultCustomerUpsertCustomerMetafields

Arguments

customerUpsertCustomerMetafields.customerId ● String! non-null scalar

顧客ID ※必須

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

customerUpsertCustomerMetafields.metafields ● [MetafieldInput!]! non-null input

メタフィールド ※必須

  • 説明: 追加更新するメタフィールド
  • 例: [{"type": single_line_text_field, "key": "Key", "value": "Value"}]

Type

ResultCustomerUpsertCustomerMetafields object

顧客向けメタフィールド追加更新のレスポンス

Example

mutation {
customerUpsertCustomerMetafields(
customerId: "gid://shopify/Customer/123456789"
metafields: [{type: single_line_text_field, key: "Key", value: "Value"}]
) {
success
}
}