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

Signature header
None (unsigned)
How events are identified
None from Zuora: the template chooses the body
Body format
JSON
Other headers
zuora-request-id, zuora-notification-id, x-amzn-trace-id
Agent skill
npx skills add hookdeck/webhook-skills --skill zuora-webhooks

Verify Zuora webhooks →

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/zuora gives you a public HTTPS URL for the Request URL. Check a past delivery, or resend it, on the Callout History tab.

Delivery behaviour

  1. Credentials never arrive

    By default Zuora sends the first request without credentials and waits for a 401 with WWW-Authenticate. Tick Enable Preemptive Authentication on the template so they arrive on the first request.

    Send credentials up front →
  2. 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 →
  3. A failed callout is never sent again

    Zuora counts only a 200 as success but retries only 1xx, 403, 408, 429, 5xx and negative codes, and only if Retriable is ticked. A 400, 404 or 201 is a failure with no retry, so return a 5xx for a temporary problem.

    Choose your response codes →
  4. A retry is processed twice

    Each retry has a new Zuora-Request-Id and the same Zuora-Notification-Id. Record Zuora-Notification-Id and skip a value you've already handled.

    Deduplicate retries →

Zuora webhook best practices

  • Return exactly 200, quickly. Zuora counts only a 200 as 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, while Zuora-Request-Id changes 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.

Not affiliated with Zuora. Facts are compiled from public sources and linked inline.