Zuora webhooks
Zuora webhooks, which Zuora calls callouts, are HTTP requests sent to an HTTPS URL you choose when an event fires, built from a callout template whose method, headers and JSON body you define.
How Zuora webhooks work
A callout tells your system that an invoice posted or a payment processed, so you don't have to poll the Zuora API. Three things work together: an event, a callout template that defines the request, and a notification definition that ties the event to one or more templates. A template sends nothing until a notification selects it. Zuora's docs describe callout data as non-sensitive, typically an ID, with the receiver calling the API for the rest.
Zuora defines no event field, envelope or payload version. The body is a JSON object of merge fields you choose, such as {{DataSource.Account.Id}}. Zuora names its standard events, such as Invoice Posted and Payment Processed, but those are options for a template's Related Event, and no field Zuora adds carries them. To tell deliveries apart, give each template its own URL path, or put the system merge field {{Event.Category}} in the body. Every callout also carries Zuora-Request-Id, new on each attempt, Zuora-Notification-Id, the same across retries, and X-Amzn-Trace-Id.
Key facts
Setting up Zuora webhooks
- In Extension Studio > Events & Notifications, open Callout Templates and click + Add New Callout Template. Set the Related Event, the method, an
https://Request URL and a JSON body of merge fields, and switch the template to Active. - Set Authentication Type to Username/Password and tick Enable Preemptive Authentication, which puts the credentials in the first request and which Event Gateway's Zuora source needs. Tick Retriable to turn on retries.
- On the Notifications tab, click + Add New Notification, pick the event, select your template under Delivered By Callout, assign a communication profile and switch the notification to Active.
- To test on your machine,
hookdeck listen 3000 zuora --path /webhooks/zuoragives you a public HTTPS URL for the Request URL. Check a past delivery, or resend it, on the Callout History tab.
Delivery behaviour
25 seconds 10 to connect and 15 for data transfer, and the limit can't be changed Retries 3 attempts, 30 minutes apart by default, only if Retriable is ticked, on 1xx, 403, 408, 429, 5xx or negative codes After retries run out manual resend from the Callout History tab, with Resend access Duplicates same notification ID Zuora-Notification-Id stays the same on every retry Known failure modes
From Hookdeck's Zuora guide →-
Credentials never arrive
By default Zuora sends the first request without credentials and waits for a
Send credentials up front →401withWWW-Authenticate. Tick Enable Preemptive Authentication on the template so they arrive on the first request. -
A template is active but nothing is sent
A callout template sends nothing on its own. An active notification definition has to select it for the event and be assigned to the customer account's communication profile.
Trace a missing callout → -
A failed callout is never sent again
Zuora counts only a
Choose your response codes →200as success but retries only1xx,403,408,429,5xxand negative codes, and only if Retriable is ticked. A400,404or201is a failure with no retry, so return a5xxfor a temporary problem. -
A retry is processed twice
Each retry has a new
Deduplicate retries →Zuora-Request-Idand the sameZuora-Notification-Id. RecordZuora-Notification-Idand skip a value you've already handled.
Zuora webhook best practices
- Return exactly
200, quickly. Zuora counts only a200as success and allows 25 seconds in total. Check the credentials, store the body and respond, then do the work in a background job, as Zuora recommends. - Deduplicate on
Zuora-Notification-Id. It stays the same across retries of a notification, whileZuora-Request-Idchanges on each attempt. - Fetch current state before acting. Retries, concurrency and latency can change the order callouts arrive in. Call the Zuora API for the object's current state instead of trusting arrival order.
- Tick Retriable on every template. Retry rules apply only to templates with it ticked. The defaults are three attempts 30 minutes apart, and Callout Settings allow up to five attempts and a 24-hour interval.
- Name the event in each template.
Give each template its own URL path, or add
{{Event.Category}}to the body. This matters most when a template's Related Event is a parent category shared by several events. - Send IDs and fetch the rest. Merge fields can include more than an ID, so choose what goes in the body. A small body also leaves less sensitive data in logs and stored requests.
In this hub
| MCP events → | How an agent subscribes to Zuora events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill zuora-webhooks |
Keep a failed handler from losing a billing event.
Zuora retries only some failures, three times by default. Event Gateway checks the template's Basic credentials, accepts each callout as it arrives, queues it and retries to your service on your schedule.