Skip to content

For developers · checked against the product 7 Oct 2026

A signed, versioned events and actions API for custom-built stores.

Dvaarik's Custom Commerce API lets a store that is not on Shopify, WooCommerce or Magento work with the AI agent in both directions. Your store sends events, such as a checkout left open, a cash-on-delivery order waiting for confirmation, a cancellation or a failed delivery, as HTTPS POSTs signed with HMAC-SHA256 under version 2026-08-30. The agent contacts the customer the way the business chose, on WhatsApp or by phone, and records the answer. With an actions URL saved, Dvaarik then sends your store a signed action under version 2026-10-06 to carry that decision out.

Free signup, no card. The connection URL and signing key are created in your dashboard.

One event: a cash-on-delivery order to confirm

POST <connection URL from your dashboard>
Content-Type: application/json
X-Webhook-Api-Version: 2026-08-30
X-Webhook-Topic: order/cod_pending
X-Webhook-Event-Id: 2a1f0d7e-1c4b-4b6e-9f5a-3f2b1c0d9e8a
X-Webhook-Timestamp: 1791300000
X-Webhook-Signature: sha256=<hex>

{"order_id":"ORD-1042","order_number":"#1042",
 "customer_phone":"+919876543210","amount":"2499.00",
 "currency":"INR","item_count":2}

Which events can a custom store send to Dvaarik?

Dvaarik's Custom Commerce API accepts six event topics: three for checkouts, two for cash-on-delivery orders and one for failed deliveries. Your store reports what happened; the business's own settings decide what the agent does next.

Custom Commerce API event topics, version 2026-08-30
TopicSend it whenWhat Dvaarik does
checkout/updatedA shopper's checkout is still open and something changed: items, amount, phone or their permission to be messaged.Opens or refreshes one cart case. If cart recovery is on, a reminder goes out after the delay you chose, only to the audience you allowed.
checkout/completedThe checkout became an order.Stops every reminder for that checkout.
checkout/cancelledThe checkout was closed for good.Stops every reminder for that checkout.
order/cod_pendingA cash-on-delivery order was placed and nobody has confirmed the customer still wants it.Asks the customer to confirm or cancel, on WhatsApp or by phone as you configured, and records the decision.
order/cancelledThe order stopped being live, for any reason.Stops any follow-up already running for that order.
shipment/ndrA delivery attempt failed. Send the tracking number (AWB) and which attempt it was.Asks the customer whether to try delivery again or send the parcel back, and records the answer.

In short, a custom store sends Dvaarik facts, never instructions: there is no “send a WhatsApp now” event. Each topic reads a short list of fields, such as the order id, the customer's phone, the amount and the item count, and ignores everything else. Checkout events also carry a rising revision number and the customer's own link back to your checkout.

How are custom store events and actions signed?

Every Custom Commerce API request is signed with HMAC-SHA256 using your business's one private signing key: your store signs the events it sends, and Dvaarik signs the actions it sends back, with “action.” in front so a signature is only ever valid in one direction.

  • Sign and verify the raw bytes, not a re-serialised copy. A different key order or number format changes the signature.
  • The timestamp is inside the signature. A request more than five minutes from the receiver's clock, either way, is refused.
  • The business is identified by the key the event was signed with. An id in the body is ignored.
  • Partner clients receive a connection URL on their partner's own verified domain.

The signature, in both directions

events:  signed_payload = timestamp + "." + raw_request_body
actions: signed_payload = "action." + timestamp + "." + raw_request_body
signature = "sha256=" + hex(HMAC_SHA256(signing_key, signed_payload))

Event headers start with X-Webhook-: Api-Version, Topic, Event-Id, Timestamp and Signature. Events are limited to 64 KB each and 600 a minute for one business. Actions carry Api-Version, Action-Id, Timestamp and Signature.

How does the custom store API handle retries and duplicates?

Your store sends a new lower-case UUID for each genuine event and repeats the same one on every retry, so Dvaarik stores each event once. Duplicates are also collapsed on the order id, or on the tracking number and attempt for a failed delivery, so the customer is not asked twice.

Custom Commerce API event responses
ResponseMeaning and what to do
202Stored durably. The event is Dvaarik's now; nothing else to do.
400Malformed: unsupported version or topic, bad event id or a timestamp outside the window. Fix the request; do not retry it.
401The signature did not verify. Check the key and that you signed the exact bytes you sent.
409That event id was already used for a different event. Use a new UUID for each genuine event.
429Too many deliveries this minute. Back off and retry.
503The event could not be stored. Retry with the same event id.

The custom store API asks you to retry only on 503, 429 or a timeout. A 202 means the event is stored, not that the customer has been contacted: the business's workflow, calling hours, the customer's permission and Do Not Contact decide that.

What happens after your store sends an event?

Dvaarik turns each event into one case on the business's COD confirmations, Failed deliveries or Cart recovery page, and the owner's settings decide whether the agent messages, calls or leaves it for the team.

  1. 01The owner picks the contact strategy for each workflow: WhatsApp then a call, a call first, WhatsApp only, or manual review.
  2. 02The agent waits for the delay the owner chose. Customers who opted out of the business's WhatsApp messages are not messaged, and calls wait for calling hours and skip the Do Not Contact list.
  3. 03Cart reminders go only to shoppers who agreed to messages, unless the owner chooses everyone who left a number. Calls go only to customers whose consent to be called is recorded.
  4. 04The customer answers with a WhatsApp button, in chat or on the call. The decision is saved on the case and, when an actions URL is saved, sent to your store as a signed action.

How does Dvaarik carry out a decision in your store?

Dvaarik sends each customer decision to the actions URL your developer exposes and the owner saves under Order actions: one signed JSON POST per delivery, under its own version, 2026-10-06. Your store carries it out and answers applied, rejected or pending.

Custom Commerce API action types, version 2026-10-06
ActionSent whenWhat your store does
order.confirm_codThe customer confirmed a cash-on-delivery order.Marks the order confirmed and releases it for shipping. Takes no payment.
order.cancelThe customer does not want the order.Cancels it and restocks. If it has shipped or been paid, answers rejected.
order.update_addressThe customer gave a new delivery address before shipping.Replaces the order's shipping address with the address in the body, or answers rejected once it has shipped.
shipment.reattemptA delivery failed and the customer wants another attempt.Asks its courier to deliver again, using the AWB and shipment id in the body.
shipment.returnA delivery failed and the customer does not want the parcel.Asks its courier to return the parcel.

In short, the custom store API sends five kinds of action: two for a cash-on-delivery order's confirmation or cancellation, one for its new address, and two for a parcel after a failed delivery. Each refers only to ids your store sent in its events, carries the new address only on order.update_address and the AWB and shipment id only on the shipment actions, and never asks the store to charge or refund anyone.

  • Answer within 8 seconds, in JSON of at most 4 KB: applied when it is done or was already true, rejected with a short reason code when it will not be done, or pending while your store is still working.
  • Every delivery of one decision repeats the same X-Webhook-Action-Id with a fresh timestamp and signature. Save your outcome per action id, answer a repeat with it, and never act twice or refuse a repeat as a replay.
  • Applied closes the case, and only then is the customer told the change is done. Rejected goes to the owner with your reason code.
  • No final answer, a timeout or a 5xx? The same action is delivered again about 1, 2, 4 and up to 512 minutes after the first: 11 deliveries over about eight and a half hours. If there is still no final answer, the owner gets the case marked uncertain and it is never sent again.
  • The actions URL is public HTTPS of at most 2,048 characters, with no login details in it. Redirects are never followed.

Customer confirmations and cancellations go out once the owner's COD workflow is on, a new address before shipping needs no approval, and deliver-again or return requests follow the owner's automatic-reattempt and return switches. Send test action in the dashboard posts test.ping, which names no order and must change nothing. Without an actions URL, every decision waits on the owner's dashboard, and changing or removing the URL sends decisions on orders received before the change to the owner.

One action: the customer confirmed a COD order

POST <your actions URL>
Content-Type: application/json
X-Webhook-Api-Version: 2026-10-06
X-Webhook-Action-Id: 6f1c2a3e-9b7d-4c1e-8a2f-0d5e4b3c2a19
X-Webhook-Timestamp: 1791300000
X-Webhook-Signature: sha256=<hex>

{"action_id":"6f1c2a3e-9b7d-4c1e-8a2f-0d5e4b3c2a19",
 "api_version":"2026-10-06","channel":"whatsapp",
 "order_id":"ORD-1042","order_number":"#1042",
 "requested_at":"2026-10-06T09:30:15Z",
 "type":"order.confirm_cod"}

Your answer, within 8 seconds:
{"status":"applied","reference":"CNF-1042"}

What else can a custom store connect?

Besides events and actions, a custom store can let the Dvaarik agent search its live catalogue and answer with product photos and links, while every message goes out from the business's own WhatsApp number.

Live product search from your own software

Point the agent at a search URL your inventory software already exposes. It searches live when a customer asks, with no catalogue sync, and only the catalogue fields you select reach the AI.

Product photos and links in answers

When your feed includes a product's image and page address, the agent's answers in chat can show the photo with a link to that product on your own site.

Your own WhatsApp number

Confirmation, failed-delivery and cart messages go out from your own WhatsApp Business number. Meta bills its message charges to that account, and Dvaarik adds no markup.

How do I get the full custom store API guide?

The Dvaarik dashboard gives your developer everything needed to connect: on the COD confirmations, Failed deliveries or Cart recovery page, open the follow-up settings and choose Connect my own checkout or delivery software.

  1. 1.Create your connection to get the connection URL and a private signing key.
  2. 2.Copy or download the setup guide for your developer: event and action versions, signing steps, supported events and actions, and an example.
  3. 3.Send a signed test event and check that it appears in the right queue.
  4. 4.When your actions endpoint is ready, save its address under Order actions and press Send test action.
  5. 5.Choose the contact method, waiting time and expiry, then switch the workflow on.

Prefer to read the contract before signing up? Ask us for the API guide and we will send it to your developer.

What does the custom store API not do yet?

Dvaarik's custom store connection takes events and carries out customer decisions today; placing orders and reading delivery status through your own API are not switched on yet.

  • Placing orders directly into your own order system. A versioned order API (create, status and cancel) exists, but it is switched on only for individual stores in a controlled rollout. Ask us before you build against it.
  • Live delivery-status lookup from your own API. The connection can be saved and tested, but status sync is not switched on yet.
  • Prepaid order or shipment-status events. The events API carries checkout, cash-on-delivery, cancellation and failed-delivery events only.
  • A new address after a failed delivery as an action. It goes to the owner, who passes it to the courier.
  • A public documentation site. The full guide comes from your dashboard or from us on request.

Custom store API questions

Dvaarik's Custom Commerce API is described below as the product works on 7 Oct 2026. Prices in force from 5 October 2026.

No. Any store that can send an HTTPS POST when a checkout changes, a cash-on-delivery order is placed, an order is cancelled or a delivery fails can use Dvaarik's Custom Commerce API. Shopify, WooCommerce and Magento stores can connect directly instead, and WooCommerce stores can use this API for cart events.

Each request is signed with HMAC-SHA256 over the timestamp, a dot and the raw request body, using the private signing key your dashboard creates for your business. Dvaarik rejects a timestamp more than five minutes from its own clock in either direction, and the business is identified by the key, never by anything in the body. Requests also carry the API version, 2026-08-30, the topic and a unique event id.

Yes, once your developer builds an actions endpoint and the owner saves its HTTPS address under Order actions on the store connection. Dvaarik then sends each customer decision there as a signed action, version 2026-10-06: confirm a cash-on-delivery order, cancel it, change its address, deliver again or return the parcel. Your store carries it out and answers applied, rejected or pending. Without an actions URL, every decision waits on the owner's dashboard to be carried out by hand.

Actions use the same signing key as your events, with the text “action.” in front of the timestamp: the HMAC-SHA256 covers “action.” + timestamp + “.” + the raw body. That prefix makes every signature valid in one direction only, so an action can never pass as an event or an event as an action. Each action carries the headers X-Webhook-Signature, X-Webhook-Timestamp, X-Webhook-Action-Id and X-Webhook-Api-Version.

A customer's confirmation or cancellation of a cash-on-delivery order is sent once the owner's COD confirmations workflow is on, and a customer's new address before shipping needs no approval. Deliver-again and return requests after a failed delivery are sent automatically only if the owner switched on automatic reattempts or returns; otherwise they wait for the owner's OK. A decision the owner makes in the dashboard is sent directly.

Send the same event id on every retry and Dvaarik stores the event once. As a second safeguard, duplicates are also collapsed on the order id, or on the tracking number and attempt for a failed delivery, so a queue that retries with a fresh id still does not ask the customer twice. Reusing one event id for a different event returns 409.

No. A 202 means Dvaarik has stored the event durably. Whether and when the customer is contacted depends on the workflow the business has switched on: the contact method, the waiting time, calling hours, the customer's permission and Do Not Contact.

Inside the dashboard. On the COD confirmations, Failed deliveries or Cart recovery page, open the follow-up settings and use Connect my own checkout or delivery software. It creates your connection URL and private signing key and gives your developer a guide to copy or download, with the event and action versions, signing steps, supported events and actions and an example. You can also write to hello@dvaarik.com for the full guide; there is no public documentation site yet.

Nothing per event or action. Dvaarik's usual usage prices apply when the agent works: ₹0.05 per successful AI reply and ₹0.50 a call minute in 30-second steps, with no monthly fee. WhatsApp template messages are billed by Meta to your own WhatsApp Business account.

Your store reports it. The agent follows up.

Sign up as a D2C brand, create your connection, send a test event and a test action, and watch them land before you switch anything on.