The webhook uses heartbeats to indicate presence. Servers send periodic heartbeats, which identify a merchant's presence.When enabling the webhook, presence requests start in the next heartbeat cycle (up to 30 seconds). There are two types of heartbeat: per application and per merchant, for detailed presence control.
Requests per application
For integrations that don't have fine-grained presence control, we have the configuration to perform a single periodic heartbeat request for the application, making all merchants of the application go online.In this case, requests with 202 Accepted response cause the heartbeat message to be generated, and any other response prevents the heartbeat from being generated. The response body will be ignored.
In practice, this means that all merchants with order scope from the integration will be open in the listing, as long as they meet the other criteria.
We send only relevant information for the integration and maintain compatibility with order events.
Requests per merchant
When the integration uses fine-grained presence control, the system sends heartbeat requests for groups of merchants. Each request can include up to 1000 merchants.The response must have 202 Accepted status and list the online merchants in the response body. The system generates heartbeats only for those merchants.