whatsapp.group.status_update 在您的 Webhook 端点处理此事件。
触发条件
在 WhatsApp 群组封禁状态更新时触发。 在您配置 Webhook 端点时订阅whatsapp.group.status_update。
语法
YCloud 会向您配置的 Webhook URL 发送 HTTPPOST 请求。以下结构展示了一种有效载荷变体。尖括号中的值为占位符;它们的类型列在 参数 下。可选字段和其他变体在下文说明。
参数
在处理 JSON 请求体之前,请先验证YCloud-Signature HTTP 请求头。请参阅签名验证。
事件外层
事件载荷
四个通用外层字段为必需字段。有效载荷字段取决于事件变体。在每个对象表格中, 必需 仅在其父对象存在时适用。可选字段可以省略;示例并不表示字段为必需。
whatsappGroup
whatsappGroup.customerProfile
whatsappGroup.customerProfile
whatsappGroup.addedParticipants[]
whatsappGroup.addedParticipants[]
whatsappGroup.addedParticipants[].customerProfile
whatsappGroup.addedParticipants[].customerProfile
whatsappGroup.removedParticipants[]
whatsappGroup.removedParticipants[]
whatsappGroup.removedParticipants[].customerProfile
whatsappGroup.removedParticipants[].customerProfile
whatsappGroup.failedParticipants[]
whatsappGroup.failedParticipants[]
whatsappGroup.failedParticipants[].customerProfile
whatsappGroup.failedParticipants[].customerProfile
whatsappGroup.settings[]
whatsappGroup.settings[]
whatsappGroup.contacts[]
whatsappGroup.contacts[]
whatsappGroup.contacts[].customerProfile
whatsappGroup.contacts[].customerProfile
whatsappGroup.statuses[]
whatsappGroup.statuses[]
whatsappGroup.statuses[].conversation
whatsappGroup.statuses[].conversation
whatsappGroup.statuses[].conversation.origin
whatsappGroup.statuses[].conversation.origin
whatsappGroup.statuses[].pricing
whatsappGroup.statuses[].pricing
示例
以下 JSON 是传递到接收端的请求体。ID、电话号码和其他账户值仅供说明参考。WhatsApp 群组状态更新事件
WhatsApp 群组状态更新事件
WhatsApp 群组暂停状态发生变化时的示例负载
群组已暂停
群组已暂停
群组暂停已解除
群组暂停已解除
2xx 响应。耗时工作请异步处理。

