Ostorya dev docs

Admin API/Customers/Mutations

customerWhatsAppMarketingConsentUpdate

mutation

Returns CustomerWhatsAppMarketingConsentUpdatePayload!

mutation CustomerWhatsAppMarketingConsentUpdate($input: CustomerWhatsAppMarketingConsentUpdateInput!) {
  customerWhatsAppMarketingConsentUpdate(input: $input) {
    customer {
      id
      email
      phone
      createdAt
      blocked
      blockedReason
    }
    userErrors {
      code
      message
      field
    }
  }
}

# Variables
{
  "input": {
    "customerId": "gid://ostorya/Customer/0f8c5b1e-…",
    "marketingConsent": {
      "marketingState": "NOT_SUBSCRIBED"
    }
  }
}

Arguments

Payload

customerCustomer
userErrors[UserError!]!required