Start a free 14-day trial by December 1 on a wide range of WooCommerce Marketplace extensions and themes. Explore products

ZapBridge webhook hooks

Use this reference to customize the JSON payload or request headers sent by ZapBridge 1.1.0. You need an extension or site plugin that can register WordPress filters. Verify your changes with sample events in a test connection before using live customer data.

Note:

This is a developer-level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customization work. We are unable to provide support for customization under our Support Policy.

Customize the payload and headers

↑ Back to top

Use a per-event filter when a change applies to one payload. Use the outgoing filter for all deliveries. The outgoing filter runs before JSON encoding. The request headers filter runs after ZapBridge builds the headers, including the signature when a signing secret is configured.

zapbridge_payload_{event}      (array payload, context)
zapbridge_outgoing_payload     (array payload, event, connection)
zapbridge_sample_payload       (array payload, event)
zapbridge_request_headers      (array headers, event, connection)

Return the complete payload or headers array from your filter. Preserve the existing signature and delivery headers if the receiver uses them. Avoid adding personal data the receiver doesn’t need.

Manage deliveries and logs

↑ Back to top
zapbridge_request_timeout
zapbridge_is_retryable
zapbridge_connections
zapbridge_log_retention_days
zapbridge_log_retention_rows
zapbridge_admin_capability

Use these filters to adjust the request timeout, retry eligibility, connections, delivery-log retention, and capability required to manage ZapBridge.

Observe delivery actions

↑ Back to top
zapbridge_enqueued
zapbridge_delivery_succeeded
zapbridge_delivery_failed
zapbridge_installed

Monitor these actions in your test environment to confirm your callback runs at the intended point. An accepted sample delivery confirms that the destination accepted the request. Inspect the received JSON and headers to confirm your customizations.

Verify the result

↑ Back to top

Use the ZapBridge test event steps. Compare the received request with the expected fields and headers, and check the delivery response in Logs. If the receiver is configured to verify signatures, confirm it validates the signature against the raw request body.

Questions and support

↑ Back to top

Something missing from this documentation? Still have questions and need assistance?

  • If you have a question about a specific extension or theme you’d like to purchase, contact us to get answers.
  • If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.