Skip to main content

Troubleshoot webhook delivery failures

Webhook failures mean AtomicPay could not deliver an event to your endpoint, or your endpoint rejected it. This guide focuses on failed deliveries after you have already planned the integration in plan, test, and monitor webhooks.

Use it when logs show failures, when the simulator works but production does not, or when your external system never receives events that exist in Sales.

Failure patterns

SymptomLikely causeFirst place to check
Logs show failed deliveryEndpoint returned an error or timed outWebhook logs
Simulator works, production failsProduction payload, auth, or environment differsEndpoint config and logs
No events received at allWrong URL, disabled webhook, or wrong events selectedWebhook settings
Duplicate actions in external systemEndpoint not idempotent on retriesReceiver application logic
Some events arrive, others do notEvent selection or triggering action missingSelected events and Sales

Investigation workflow

  1. Open the webhook in AtomicPay.

[Screenshot: Webhooks list — target webhook opened.]

  1. Confirm the endpoint URL is correct and publicly reachable.

[Screenshot: Webhook settings — endpoint URL visible and valid.]

  1. Check which events are selected against the workflow you expect. See webhook planning.

[Screenshot: Webhook events — subscribed events match workflow.]

  1. Review delivery logs for status code, attempts, and timestamps.

[Screenshot: Webhook delivery logs — failed attempts with status codes.]

  1. Run the simulator for the failing event type.

[Screenshot: Webhook simulator — test event sent.]

  1. Compare simulator success with the failed production attempt.

[Screenshot: Logs comparison — simulator success vs production failure.]

  1. Fix the external endpoint so it returns a success response quickly.

[Screenshot: External endpoint — returns 2xx success response.]

  1. Trigger a real test sale or subscription event when safe.

[Screenshot: Test sale triggered — webhook delivery retried.]

  1. Confirm the external system processed the event once, not multiple times.

[Screenshot: External system — single event processed, no duplicates.]

  1. If using Zapier or Make, verify the catch URL and automation step separately.

[Screenshot: Zapier or Make — catch URL and automation step verified.]

Endpoint checks

CheckWhy it matters
Return 2xx quicklySlow endpoints cause retries and duplicate risk.
Validate auth or signingSee secure webhook endpoints.
Queue heavy workDo not block the HTTP response on long jobs.
Make handlers idempotentRetries should not duplicate access or CRM updates.
Separate test and production endpointsPrevents simulator success from masking production config errors.

Common event-specific issues

Event typeAlso review
Purchase approvedBuyer access and delivery workflow
Purchase declinedCard declines or PIX failures
PIX generatedIncomplete payments
Cart abandonedRecovery workflow
Refund or chargebackRefunds and chargebacks
Subscription eventsSubscriptions status and timing

Best practices

  • Start with the minimum events your automation needs.
  • Test every production-critical event with the simulator before launch.
  • Monitor logs after pricing, product, or endpoint changes.
  • Keep payload reference in API documentation.
  • Document retry behavior on your side before relying on webhooks for access provisioning.

Common mistakes

  • Rebuilding the webhook without fixing the endpoint.
  • Pointing production webhooks to a local or staging-only URL.
  • Granting access on the wrong event, such as PIX generated instead of approved.
  • Ignoring webhook security until after failures begin.
  • Assuming missing webhook data means missing sales without checking missing data troubleshooting.

FAQ

Should I rebuild the webhook when logs show failures?

Usually not. Fix the endpoint or event handling first. Recreating the webhook without fixing the root cause often repeats the same failure.

Where is the full webhook setup guide?

See plan, test, and monitor webhooks for event selection, simulator use, and monitoring workflow.

Can Zapier or Make cause delivery failures?

Yes, if the catch URL, filter step, or downstream automation fails. Review Zapier or Make webhook patterns.

What evidence should I collect before escalation?

Webhook ID, event type, timestamp, endpoint response, sale ID when relevant, and screenshots from logs and your receiver system.