The order is not final at checkout
A COD checkout is a request, not a sale. The order still has to be confirmed by phone or in an admin panel, and a share of them never are. A purchase fired at checkout reports revenue that may never be collected.
A COD checkout shows an order-received page, but the sale is only real once your team confirms it — often by phone, days later. A purchase event fired at checkout counts a sale that has not happened yet. COD Order Protection holds the order, waits for your confirmation, and only then dispatches the purchase to Meta, TikTok, GA4 and Google Ads.
BonicBD Tracker ships a Purchase trigger setting. Choose Completed and the plugin does the COD path by itself: the order payload is captured at checkout, no purchase is sent while the order sits unconfirmed, and Purchase fires the moment you mark it Completed. Cancelled, refunded and failed orders never fire. No PHP snippet, no webhook, no backend work.
The hold-and-webhook API described on this page is for everyone else: a custom or headless storefront, an ERP or courier panel outside WooCommerce, or a team that wants an explicit confirm/reject decision instead of relying on one status. If you run WooCommerce and mark delivered orders Completed anyway, start with the plugin setting.
A COD checkout is a request, not a sale. The order still has to be confirmed by phone or in an admin panel, and a share of them never are. A purchase fired at checkout reports revenue that may never be collected.
Your agent marks the order confirmed in a panel, an ERP, a courier integration or a spreadsheet. None of those places can fire a browser event, so the real confirmation has no way back into the pixel.
When an order is cancelled or returned, a browser-only setup has nothing to send. The ad platform keeps optimising toward a profile that fills forms and then cancels.
Reported purchases move toward the number you actually deliver. Expect reported conversions to fall for a short period while delivery optimisation re-learns, then stabilise against orders that ship.
Post the order to the hold endpoint with the hold key for your container. Nothing is forwarded to an ad platform at this stage.
When your panel, ERP or courier integration records a status, forward it to the webhook endpoint with the webhook secret. The status classifier decides confirm, reject or ignore.
A return needs a return_id. BonicBD emits a refund event under a separate identifier, so it never overwrites or collides with the original purchase.
x-bbd-request-id returns the stored response instead of creating a second order. A different body on the same id is a conflict.| Plan | Confirmed COD orders per block | Monthly price |
|---|---|---|
| Free Trial | 50 | ৳0 |
| GO | 300 | ৳1,000 |
| Starter | 800 | ৳2,500 |
| Pro | 2,500 | ৳5,500 |
| Business | 10,500 | ৳10,000 |
The block is anchored to your billing reset date and runs 30 days from there. It is not a calendar month and not the 30 days before the renewal date. When a block is exhausted the order stays confirmed and its purchase event is held, not discarded, and an explicit retry in a later block revives the same record under the same event identifier.
COD order records carry a default 180-day retention window, configurable per account between 1 and 3,650 days. The purge is a scheduled job with a fixed window, not indefinite storage.
The stored order payload is encrypted, and the encrypted copy written when the order is reserved is not rewritten by a later retry. What you sent is what the retry sends.
The hold key and the webhook secret are separate credentials for a single container. Rotating one does not disturb the other, and neither is reused as a general API token.
Request logs record route, container, outcome and timing. Full URLs, which could carry a credential, and raw request bodies are not logged.
Sign up and pick a plan. COD Order Protection is included on every paid plan; the trial covers 50 confirmed orders so you can test the full path.
Copy the hold key and the webhook secret from the panel. They are separate values and both belong in a server-side environment variable, never in page source.
If your panel uses its own status vocabulary, map it once. Unmapped statuses are ignored rather than guessed, which is the safe default for a sale.
Post the order from your server at checkout: order id, value, currency, payment_method: cod, and hashed user data if you have it.
Whatever records the confirmation posts to the webhook, whether that is panel, ERP or courier, to the webhook. A spreadsheet can do this with a scheduled script.
Place a small test order, confirm it, and follow the record from held to sent in the dashboard before you trust the reporting.
It holds first and dispatches only when an order-status webhook reports a confirming status. Cancelled, failed, refunded, returned and trash close the order without a purchase. Any status on neither list is ignored — never counted as a sale.
It waits and no purchase is sent. Nothing is inferred from a checkout or from elapsed time. Only a status transition moves it forward.
No. Browser tracking can still cover page views and add-to-cart. What changes is the purchase: fire it once, from the confirmation, rather than at checkout. Running both purchase paths without a shared identifier is how duplicate purchases appear in Events Manager.
Not required. The user_data object accepts SHA-256 hashed email, phone, name, city, region, postal code and country, plus an external_id. Sending it improves matching; leaving it out does not block the event.
The order stays confirmed and its purchase event is held with a quota-exceeded marker. An explicit retry in a later 30-day block revives the same record under the same event identifier. It is not silently dropped and it is not billed as overage.
Send type: order.returned with a return_id. A refund event goes out under its own identifier, so it never collides with the purchase. Omitting return_id on a return is rejected.
180 days by default, configurable per account between 1 and 3,650 days. The purge runs on a fixed window.
Whatever your server container forwards to: Meta Conversions API, TikTok Events API, GA4 Measurement Protocol, Google Ads enhanced conversions, LinkedIn, or a custom webhook. The destination configuration lives in your container.
The free trial includes 50 confirmed COD orders, enough to move a real product line through hold, confirm and send before you commit to a plan.