删除客户-customerDelete 突变

删除客户。

所需的访问

write_customers 访问范围。


在本页面


互动范例

这是一个示例变异查询。

变异customerDelete ($ input :CustomerDeleteInput !){ customerDelete (输入:$ input ){
  1. <font style="color:#1F61A0;">DeletedCustomerId</font>
  2. <font style="color:#096DD9;">shop</font><font style="color:#555555;">{</font>
  3. <font style="color:#1F61A0;">ID</font>
  4. <font style="color:#555555;">}</font>
  5. <font style="color:#1F61A0;">userErrors </font><font style="color:#555555;">{</font>
  6. <font style="color:#1F61A0;">场地</font>
  7. <font style="color:#1F61A0;">信息</font>
  8. <font style="color:#555555;">}</font>
} } { “输入” :{
  1. <font style="color:#8B2BB9;">“ id” </font><font style="color:#555555;">:</font><font style="color:#D64292;">“ Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE =”</font>
} }

字段

字段 描述
input
() [CustomerDeleteInput!](https://shopify.dev/docs/admin-api/graphql/reference/customers/customerdeleteinput)

必需的
指定要删除的客户。

CustomerDeleteInput字段

  • id([ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)) 必需的
    要删除的客户的ID。

返回字段

  • DeletedCustomerId([ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
    被删除客户的ID。
  • shop([Shop!](https://shopify.dev/docs/admin-api/graphql/reference/store-properties/shop))
    已删除客户的商店。
  • userErrors([[UserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/usererror))
    执行突变时发生的错误列表。