跳转到内容

Webhook 事件目录

本页列出了您可以在 Wink 上订阅的所有 webhook 事件。有关设置说明,请参阅Webhook 集成指南Webhook 管理页面

  1. 在您的门户中导航至 应用 > Webhooks
  2. 创建一个 webhook 并选择您想接收的事件 — 或留空以接收所有事件。
  3. 每当事件发生时,Wink 会向您的端点发送带签名的 HTTP POST。有关信封、头信息、签名验证和重试,请参阅Webhook 集成

此表格由平台事件目录在构建时生成,因此始终与 API 保持一致。 标记为已发送的事件类型链接到其在Webhooks API中的参考页面, 该页面记录了精确的 JSON 正文(WebhookEnvelope,包含事件特定的 object)、Wink-* 头信息和重试策略。 未发送的事件类型存在于内部(支付、账本、渠道管理同步等),但当前不会发送给 webhook 订阅者。

接收者 表示谁会收到事件:SUPPLIER(酒店)、AFFILIATE(与酒店有活跃销售渠道的转售商)、AGENT(完成预订的旅行社)或 SELF(事件所涉及的管理实体)。 每个接收者收到的负载格式相同;角色特定的详细信息位于负载的 links.self URL 后。

account.*

事件描述已发送接收者
account.details.updatedThe account's details changed.未发送
account.managers.updateThe account's manager list changed.✓ 已发送SELF
account.task.completeAn onboarding task was completed.未发送
account.task.createAn onboarding task was created for the account.未发送
account.task.removeAn onboarding task was removed.未发送
account.task.tax_id.completeThe tax-id onboarding task was completed.未发送
account.task.updateAn onboarding task was updated.未发送
account.under_reviewThe account was placed under review.未发送

activity.*

事件描述已发送接收者
activity.createdAn activity was created.✓ 已发送AFFILIATE, SUPPLIER
activity.deletedAn activity was deleted.✓ 已发送AFFILIATE, SUPPLIER
activity.updatedAn activity was updated.✓ 已发送AFFILIATE, SUPPLIER

add_on.*

事件描述已发送接收者
add_on.createdAn add-on was created.✓ 已发送AFFILIATE, SUPPLIER
add_on.deletedAn add-on was deleted.✓ 已发送AFFILIATE, SUPPLIER
add_on.updatedAn add-on was updated.✓ 已发送AFFILIATE, SUPPLIER

booking.*

事件描述已发送接收者
booking.cancelledA booking was cancelled.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.createA booking was created (confirmed).✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.failedA booking attempt failed.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.funds.availableFunds for a booking became available for payout.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.funds.ledgeredFunds for a booking were added to the ledger.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.initialize.completeA booking initialisation completed.未发送
booking.initialize.requestA booking initialisation (checkout) was requested.未发送
booking.payout.completeA payout for a booking completed.未发送
booking.payout.createA payout for a booking was created.未发送
booking.processingA booking is being processed.未发送
booking.refund.errorA booking was refunded because of a processing error.未发送
booking.refund.fullA booking was fully refunded.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.refund.partialA booking was partially refunded.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.refund.requestA refund was requested for a booking.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.review.createdA guest submitted a review for a booking.✓ 已发送SUPPLIER
booking.review.respondedThe hotel responded to a guest review.✓ 已发送AFFILIATE, AGENT, SUPPLIER
booking.sync.failedA booking-to-channel-manager synchronisation failed.未发送
booking.sync.runA booking-to-channel-manager synchronisation run started.未发送

channel-manager.*

事件描述已发送接收者
channel-manager.updateA channel manager pushed an update.未发送
channel-manager.update.availabilityA channel manager pushed an availability update.未发送
channel-manager.update.rateA channel manager pushed a rate update.未发送

email.*

事件描述已发送接收者
email.correspondenceAn email correspondence was recorded.未发送

internal.*

事件描述已发送接收者
internal.payment.failedA payment failed (internal).未发送
internal.payment.processingA payment is processing (internal).未发送
internal.payment.succeededA payment succeeded (internal).未发送

ledger.*

事件描述已发送接收者
ledger.entry.createA ledger entry was created.未发送

managing_entity.*

事件描述已发送接收者
managing_entity.account_representative.updatedThe account representative changed.未发送
managing_entity.agent.email.notificationAn email notification was sent to the account's agent.未发送
managing_entity.agent.updatedThe account's travel-agent details changed.未发送
managing_entity.city.updatedThe account's address or city changed.✓ 已发送SELF
managing_entity.createdA managing entity (account) was created.✓ 已发送SELF
managing_entity.deletedThe account was deleted.✓ 已发送SELF
managing_entity.information.updatedThe account's general information changed.✓ 已发送SELF
managing_entity.logo.updatedThe account's logo changed.✓ 已发送SELF
managing_entity.managed_by.updatedThe entity managing this account on its behalf changed.✓ 已发送SELF
managing_entity.manager.acceptedAn invited manager accepted the invitation.未发送
managing_entity.manager.addedA manager was added to the account.✓ 已发送SELF
managing_entity.manager.email.notificationAn email notification was sent to an account manager.未发送
managing_entity.manager.invitedA manager was invited to the account.✓ 已发送SELF
managing_entity.manager.owner.setThe account owner was set.✓ 已发送SELF
managing_entity.manager.rejectedAn invited manager rejected the invitation.未发送
managing_entity.manager.removedA manager was removed from the account.✓ 已发送SELF
managing_entity.name.updatedThe account's display name changed.未发送
managing_entity.place_id.updatedThe account's Google Place ID changed.✓ 已发送SELF
managing_entity.profile_picture.updatedThe account's profile picture changed.✓ 已发送SELF
managing_entity.status.updatedThe account's platform status changed (e.g. approved, suspended).✓ 已发送SELF
managing_entity.subscription.changedThe account's platform subscription changed.未发送
managing_entity.subscription.invoice.changedThe status of a subscription invoice changed.✓ 已发送SELF
managing_entity.subscription.provisionedA platform subscription was provisioned for the account.✓ 已发送SELF
managing_entity.unique_id.updatedThe account's short unique id changed.✓ 已发送SELF
managing_entity.url_name.updatedThe account's URL name (slug) changed.✓ 已发送SELF

master_rate.*

事件描述已发送接收者
master_rate.createdA master rate was created.✓ 已发送AFFILIATE, SUPPLIER
master_rate.deletedA master rate was deleted.✓ 已发送AFFILIATE, SUPPLIER
master_rate.updatedA master rate was updated.✓ 已发送AFFILIATE, SUPPLIER

meeting_room.*

事件描述已发送接收者
meeting_room.createdA meeting room was created.✓ 已发送AFFILIATE, SUPPLIER
meeting_room.deletedA meeting room was deleted.✓ 已发送AFFILIATE, SUPPLIER
meeting_room.updatedA meeting room was updated.✓ 已发送AFFILIATE, SUPPLIER

payee.*

事件描述已发送接收者
payee.createA payee was created.未发送
payee.create.failureCreating a payee failed.未发送
payee.updateA payee was updated.未发送
payee.update.failureUpdating a payee failed.未发送

perk.*

事件描述已发送接收者
perk.deletedA perk was deleted.未发送
perk.updatedA perk was updated.未发送

property.*

事件描述已发送接收者
property.address.updatedA property's address changed.✓ 已发送AFFILIATE, SUPPLIER
property.createdA property (hotel) was created.✓ 已发送AFFILIATE, SUPPLIER
property.deletedA property was deleted.✓ 已发送AFFILIATE, SUPPLIER
property.geolocation.updatedA property's geolocation changed.✓ 已发送AFFILIATE, SUPPLIER
property.name.updatedA property's name changed.✓ 已发送AFFILIATE, SUPPLIER
property.policy.createdA property policy was created.✓ 已发送AFFILIATE, SUPPLIER
property.policy.updatedA property policy changed.✓ 已发送AFFILIATE, SUPPLIER
property.profile.updatedA property's profile changed.✓ 已发送AFFILIATE, SUPPLIER
property.registeredA property completed registration.✓ 已发送AFFILIATE, SUPPLIER
property.services.updatedA property's services/amenities changed.✓ 已发送AFFILIATE, SUPPLIER
property.status.updatedA property's platform status changed.✓ 已发送AFFILIATE, SUPPLIER
property.updatedA property was updated.未发送
property.welcome_text.updatedA property's welcome text changed.✓ 已发送AFFILIATE, SUPPLIER

rate_modifier.*

事件描述已发送接收者
rate_modifier.updatedA rate modifier was updated.未发送

rate_plan.*

事件描述已发送接收者
rate_plan.createdA rate plan was created.✓ 已发送AFFILIATE, SUPPLIER
rate_plan.deletedA rate plan was deleted.✓ 已发送AFFILIATE, SUPPLIER
rate_plan.updatedA rate plan was updated.✓ 已发送AFFILIATE, SUPPLIER

restaurant.*

事件描述已发送接收者
restaurant.createdA restaurant was created.✓ 已发送AFFILIATE, SUPPLIER
restaurant.deletedA restaurant was deleted.✓ 已发送AFFILIATE, SUPPLIER
restaurant.updatedA restaurant was updated.✓ 已发送AFFILIATE, SUPPLIER

room_type.*

事件描述已发送接收者
room_type.createdA room type was created.✓ 已发送AFFILIATE, SUPPLIER
room_type.deletedA room type was deleted.✓ 已发送AFFILIATE, SUPPLIER
room_type.updatedA room type was updated.✓ 已发送AFFILIATE, SUPPLIER

sales_channel.*

事件描述已发送接收者
sales_channel.createdA sales-channel relationship (supplier ↔ reseller) was created.✓ 已发送AFFILIATE, SUPPLIER
sales_channel.deletedA sales-channel relationship was deleted.✓ 已发送AFFILIATE, SUPPLIER
sales_channel.updatedA sales-channel relationship was updated.✓ 已发送AFFILIATE, SUPPLIER

spa.*

事件描述已发送接收者
spa.createdA spa was created.✓ 已发送AFFILIATE, SUPPLIER
spa.deletedA spa was deleted.✓ 已发送AFFILIATE, SUPPLIER
spa.updatedA spa was updated.✓ 已发送AFFILIATE, SUPPLIER

special_rate.*

事件描述已发送接收者
special_rate.createdA promotion (special rate) was created.✓ 已发送AFFILIATE, SUPPLIER
special_rate.deletedA promotion was deleted.✓ 已发送AFFILIATE, SUPPLIER
special_rate.updatedA promotion was updated.✓ 已发送AFFILIATE, SUPPLIER