BlogIntegrations · October 30, 2026 · 5 min read

Contact Form 7 and HTTP 202: Track Accepted Leads Until Processing Finishes

Handle HTTP 202 responses in custom CF7 lead adapters. Separate acceptance, completion, polling, callbacks and uncertain outcomes without unsafe replay.

A Contact Form 7 lead adapter can receive HTTP 202 and still have no completed CRM record. The request reached an acceptance boundary; the destination may process it later. Reporting that intermediate response as final delivery can leave an inquiry waiting without anyone noticing.

A form card waits beside an hourglass before a path reaches a checked green record.
Generated conceptual illustration; not a product screenshot or measured result.

This guide is for a custom or configurable server-side integration with an asynchronous destination. CF7 does not automatically acquire a queue, status monitor or CRM connection through these steps. The objective is a reviewable delivery record that separates accepted work from a confirmed business outcome.

Read the receiving API’s contract

HTTP Semantics defines 202 as acceptance for processing, with processing still incomplete. The eventual operation can succeed or fail. The code alone does not specify a universal polling endpoint, response body, callback mechanism or completion deadline.

Find the destination’s documentation for the specific endpoint. Determine whether it returns a job reference, a status URL, a resource identifier or an instruction to await a callback. An empty 202 body might be valid for that API. Inventing a field called job_id will not make an undocumented destination observable.

Also establish what acceptance means operationally. Has the request been durably retained, or merely handed to another component? If the documentation is unclear, record that limitation and seek clarification before promising guaranteed recovery. Your connector’s labels should be no stronger than the evidence it can retain.

Create distinct delivery states

A useful internal sequence can distinguish pending transmission, accepted processing, confirmed completion, confirmed failure and uncertain outcome. These are proposed connector states, not standard CF7 statuses. Keep the original form outcome separately so that an external failure does not rewrite what happened at the form.

Illustrative transition record:
submission_reference: "demo-inquiry-a"
delivery_state: "accepted_processing"
destination_job_reference: "demo-job-b"
accepted_at: "record the actual timestamp"
last_checked_at: "record the actual timestamp"
terminal_evidence: null

Use a stable local reference and the destination’s actual job reference where available. They answer different questions. One inquiry may have several delivery attempts, and a destination may issue a new job identifier for each accepted attempt. Preserve that relationship so operators can reconcile a disputed outcome.

Follow the documented completion mechanism

The Azure asynchronous request-reply pattern illustrates status resources and client polling. It is an architecture pattern, not a promise that every API implements its exact headers or state names. Adapt only the behavior documented by your destination.

If polling is supported, persist the next check rather than keeping the original WordPress request open. Bound the checking interval and total observation lifetime. Honor documented pacing advice. A temporary failure to read the status resource should update observation state; it should not automatically create the lead again.

If completion arrives through a callback, verify it using the provider’s supported authenticity mechanism and match it to the retained reference. Define how repeated callbacks are handled. A callback about a different tenant or an unknown job must not mark the current inquiry complete merely because its body contains a success word.

Do not confuse polling with replay

A status check asks what happened to existing work. Replaying the original create request can start new work. That distinction matters when a monitor times out after the CRM already saved the lead. An unreviewed replay can create a second inquiry while the first one’s confirmation is delayed.

Use the destination’s supported idempotency or external-reference lookup when it exists. Record its scope and lifetime. Where neither is available, flag uncertainty for a human review instead of claiming that one header guarantees duplicate prevention. Our rate-limit recovery guide covers bounded retries at the request boundary.

Give stalled work an owner

A dashboard with an ever-growing accepted count is insufficient. Choose who investigates old accepted items, what evidence they inspect and when they contact the receiving system’s operator. The observation deadline should reflect the actual workflow, not a generic timeout copied from an HTTP library.

When the deadline passes, label the item overdue or uncertain according to your policy. Do not silently call it failed if processing may still complete. Keep enough scoped history to distinguish a terminal rejection, a missing confirmation and a monitor that stopped running. A later success should be reconcilable without erasing the earlier delay.

Review a small synthetic lifecycle matrix

Use an approved test receiver or local mock. Cover immediate rejection, acceptance followed by completion, acceptance followed by failure, a temporarily unavailable status endpoint, repeated callbacks and a job that never reaches a terminal state. Check the expected transitions before examining the implementation.

Add a worker restart between acceptance and the next status check. Verify that the stored references and scheduled check survive. Include a late completion after the observation deadline and confirm that a reviewed recovery does not create an extra destination record. These are proposed checks, not firsthand results from a production CRM.

Report the correct milestone

Show accepted, confirmed and unresolved work separately in operational reporting. A technical CF7 mail-sent event does not establish completion in a downstream application. Equally, a confirmed CRM record does not prove that a notification reached an inbox or that the inquiry became qualified.

For implementation choices, our background-job comparison discusses maintained worker components. We publish CF7 Analytics; the free Svetlik Analytics for Contact Form 7 describes submission trends and statistics, not asynchronous delivery reconciliation. Put the completion evidence in the connector that owns that responsibility.

Sources

Reviewed October 30, 2026: the HTTP specification and Azure architecture reference linked above, plus MDN’s 202 explanation and WordPress outbound POST documentation. No native CF7 integration or universal delivery guarantee is implied.