COD Confirmation

COD Confirmation by Webhook and API: A Developer Guide (2026)

Add automated COD confirmation calls to a custom store: send a signed order webhook, verify X-Edesy-Signature HMAC-SHA256, and handle confirm or cancel on your action URL. Payloads and code included.

Edesy Team7 min read

Frequently asked questions

What do I need to build to add COD confirmation calls to my own store?

Two things: code that sends a signed webhook when a COD order is placed (and when it is cancelled), and optionally an endpoint, the action URL, that receives confirm or cancel and updates the order. Everything in between, including calling rules, retries and the call itself, runs on our side.

How is the webhook signed?

With a hex HMAC-SHA256 of the timestamp, a dot and the raw request body, using your signing secret. Send the timestamp in X-Edesy-Timestamp and the signature as sha256=<hex> in X-Edesy-Signature. Requests older than 5 minutes are rejected.

What happens if I send the same order twice?

Duplicate events are ignored using event_id, and each order gets only one confirmation journey. Retrying from your side is safe.

Do I have to expose an action URL?

No. Without one, outcomes are recorded in your dashboard and your team acts on them there. With one, your system is updated automatically.

Will the result be delivered more than once?

It can be. If your endpoint times out or returns a 5xx, we retry, so make your handler safe to run twice for the same order.

Is the custom store API available today?

Yes. The webhook connection for custom stores is live. We create your connection and share your webhook URL and signing secret.

Edesy Team

The Edesy engineering team, building voice AI, messaging, and automation products for Indian businesses.

Published

Share

COD ConfirmationWebhooksAPIHMACEcommerceOrder Confirmation Calls
Back to blog